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.
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox" 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 class="infobox-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" 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>


{{infobox}}
== Usage ==
<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>
 
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
! width=50%|You Type
!You Get
|-
| 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