Template:Infobox/row: Difference between revisions

From Nguhcraft Wiki
Jump to navigation Jump to search
(if there is no label it acts like a center)
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
<onlyinclude>{{#if: {{{2|}}}|<tr style="vertical-align:top">{{#if: {{{1|}}}|<th>{{{1|}}}</th>|}}<td {{#if: {{{1|}}}||colspan="2" style="text-align:center"}}>{{{2|}}}</td></tr>|<nowiki />}}</onlyinclude>
<onlyinclude>{{#if: {{{2|}}}|<tr style="vertical-align:top">{{#if: {{{1|}}}|<th>{{{1|}}}</th>|}}<td {{#if: {{{1|}}}||colspan="2" style="text-align:center"}}>{{{2|}}}</td></tr>|<nowiki />}}</onlyinclude>
<noinclude>{{Documentation}}</noinclude>
<noinclude>[[Category:Infobox templates|*]]
{{Documentation}}</noinclude>

Latest revision as of 07:20, 15 December 2024

Documentation

First value
(label)
Second value
(data)
Only second value
(data)

This is a template for infobox rows. It takes two unnamed arguments: first the label, then the data/information.