Template:Infobox: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><div class="infobox" style="width: 300px; float: right; vertical-align: top; display: inline-block; clear: right; position: relative; top: 1.5em;"><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>
<includeonly><div class="infobox" style="width: 300px; float: right; vertical-align: top; display: inline-block; clear: right; position: relative; top: 1.5em;"><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>
{{infobox
|name=Infobox Template}}
== Description ==
== Description ==
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.
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.
Line 18: Line 16:
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</includeonly><noinclude>
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</includeonly><noinclude>
</pre>
</pre>
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
! width=50%|You Type
!You Get
|-
| style="text-align: left; background-color: white; 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>}}
}}<!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</includeonly><noinclude>
</pre>
| style="background-color: white;" |{{infobox
|name=Infobox Template}}
|}
== Articles using Template ==
== Articles using Template ==
:{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
:{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}

Revision as of 19:52, 8 April 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>}}
}}<!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</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>}}
}}<!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</includeonly><noinclude>
Infobox Template

Articles using Template