Template:Infobox: Difference between revisions

Created page with "<includeonly><div class="infobox">   <table class="infobox-table">         <tr>       <td colspan="2" class="infobox-header">{{{1|No title provided}}}</td>     </tr>         {{#if: {{{image|}}} |     <tr>       <td colspan="2" class="infobox-image-cell">         <div class="infobox-image-div">           [[File:{{{image}}}|200px|center|alt={{{caption|}}}|{{{caption|}}}]]         </div>       </td>     </tr>     }}         {{#if:..."
 
m Removed background color to allow dynamic color shift in dark mode.
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox">
<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">
== 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">{{{1|No title provided}}}</td>
 
    </tr>
== Usage ==
        {{#if: {{{image|}}} |
<pre>
    <tr>
<includeonly>{{infobox<!--
      <td colspan="2" class="infobox-image-cell">
-->| name = {{{name|}}}<!--
        <div class="infobox-image-div">
-->| 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" class="infobox-caption">{{{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]]