Template:Infobox: Difference between revisions

From The Reed and Rite
mNo edit summary
m Removed background color to allow dynamic color shift in dark mode.
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="width: 300px; background: #f8f9fa; border: 1px solid #aaa; padding: 0.5em; float: right; margin: -1.5em 0 1.5em 1em; vertical-align: top; display: inline-block; clear: right; position: relative; top: 1.5em;">
<includeonly><div class="infobox infobox-float"><table class="infobox-table"><tr><td colspan="2" class="infobox-header">{{{name|No name provided}}}</td></tr>{{#if: {{{image|}}} |<tr><td colspan="2" class="infobox-image"><div class="infobox-image-container">[[File:{{{image}}}|200px|center|alt={{{caption|}}}|{{{caption|}}}]]</div></td></tr>}}{{#if: {{{caption|}}} |<tr><td colspan="2" class="infobox-caption">{{{caption}}}</td></tr>}}{{{data_rows|}}}</table></div></includeonly><noinclude>
  <table style="width: 100%; border-spacing: 0; margin: 0; background-color: #f8f9fa;">
== Description ==
        <tr>
This template provides a foundation on which other all other [[:Category:Infoboxes|Infoboxes]] are based. Use of this template on it's own is advised against.
      <td colspan="2" style="text-align: center; background-color: #f8f9fa; font-size: 120%; font-weight: bold; padding: 0;">{{{1|No title provided}}}</td>
 
    </tr>
== Usage ==
        {{#if: {{{image|}}} |
<pre>
    <tr>
<includeonly>{{infobox<!--
      <td colspan="2" style="text-align: center; padding: 0; background-color: #f8f9fa;">
-->| name = {{{name|}}}<!--
        <div style="display: block; margin: auto; padding: 0.5em 0; background-color: #f8f9fa;">
-->| image = {{{image|}}}<!--
          [[File:{{{image}}}|200px|center|alt={{{caption|}}}|{{{caption|}}}]]
-->| caption = {{{caption|}}}<!--
        </div>
 
      </td>
-->| data_rows =<!--
    </tr>
-->{{#if: {{{DATAROW1|}}} |<tr class="infobox-data-row"><th>Data Row Header 1</th><td>{{{DATAROW1}}}</td></tr>}}<!--
    }}
-->{{#if: {{{DATAROW2|}}} |<tr class="infobox-data-row"><th>Data Row Header 2</th><td>{{{DATAROW2}}}</td></tr>}}<!--
        {{#if: {{{caption|}}} |
-->{{#if: {{{DATAROW3|}}} |<tr class="infobox-data-row"><th>Data Row Header 3</th><td>{{{DATAROW3}}}</td></tr>}}<!--
    <tr>
-->}}</includeonly><noinclude>
      <td colspan="2" style="text-align: center; font-size: 80%; font-style: italic; color: #000000; background-color: #f8f9fa; padding: 0.1em 0;">{{{caption}}}</td>
</pre>
    </tr>
 
    }}
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
        {{{content|}}}
|-
  </table>
! width=50%|You Type
</div></includeonly><noinclude>
!You Get
{{infobox}}
|-
| style="text-align: left; vertical-align: top;" |<pre>
<includeonly>{{infobox<!--
-->| name = {{{name|}}}<!--
-->| image = {{{image|}}}<!--
-->| caption = {{{caption|}}}<!--
-->| data_rows =<!--
 
-->{{#if: {{{DATAROW1|}}} <!--
-->|<tr class="infobox-data-row"><!--
--><th>Data Row Header 1</th><!--
--><td>{{{DATAROW1}}}</td></tr>}}<!--
 
-->{{#if: {{{DATAROW2|}}} <!--
-->|<tr class="infobox-data-row"><!--
--><th>Data Row Header 2</th><!--
--><td>{{{DATAROW2}}}</td></tr>}}<!--
 
-->{{#if: {{{DATAROW3|}}} <!--
-->|<tr class="infobox-data-row"><!--
--><th>Data Row Header 3</th><!--
--><td>{{{DATAROW3}}}</td></tr>}}
}}</includeonly><noinclude>
</pre>
|{{infobox
|name=Infobox Template}}
|}
 
== Articles using Template ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10|limit=100}}
 
[[Category:Infoboxes]]

Latest revision as of 22:39, 27 May 2025

Description

This template provides a foundation on which other all other Infoboxes are based. Use of this template on it's own is advised against.

Usage

<includeonly>{{infobox<!--
-->| name = {{{name|}}}<!--
-->| image = {{{image|}}}<!--
-->| caption = {{{caption|}}}<!--

-->| data_rows =<!--
-->{{#if: {{{DATAROW1|}}} |<tr class="infobox-data-row"><th>Data Row Header 1</th><td>{{{DATAROW1}}}</td></tr>}}<!--
-->{{#if: {{{DATAROW2|}}} |<tr class="infobox-data-row"><th>Data Row Header 2</th><td>{{{DATAROW2}}}</td></tr>}}<!--
-->{{#if: {{{DATAROW3|}}} |<tr class="infobox-data-row"><th>Data Row Header 3</th><td>{{{DATAROW3}}}</td></tr>}}<!--
-->}}</includeonly><noinclude>
You Type You Get
<includeonly>{{infobox<!--
-->| name = {{{name|}}}<!--
-->| image = {{{image|}}}<!--
-->| caption = {{{caption|}}}<!--
-->| data_rows =<!--

-->{{#if: {{{DATAROW1|}}} <!--
-->|<tr class="infobox-data-row"><!--
--><th>Data Row Header 1</th><!--
--><td>{{{DATAROW1}}}</td></tr>}}<!--

-->{{#if: {{{DATAROW2|}}} <!--
-->|<tr class="infobox-data-row"><!--
--><th>Data Row Header 2</th><!--
--><td>{{{DATAROW2}}}</td></tr>}}<!--

-->{{#if: {{{DATAROW3|}}} <!--
-->|<tr class="infobox-data-row"><!--
--><th>Data Row Header 3</th><!--
--><td>{{{DATAROW3}}}</td></tr>}}
}}</includeonly><noinclude>
Infobox Template

Articles using Template