Template:Infobox row: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Row template. Preview-testing this on Template:Block, expect edits here.
 
optional parameter added
Line 1: Line 1:
| class="alternatecells" |-
{{#if: {{{optional|}}} | | {{!}} class="alternatecells" {{!}}-
| style="white-space: nowrap; font-weight: bold;" | {{ucfirst:{{{label|}}}}}
{{!}} style="white-space: nowrap; font-weight: bold;" {{!}} {{ucfirst:{{{label|}}}}}
| {{{field|}}}<noinclude>
{{!}} {{{field|}}} }}<noinclude>
== Usage ==
== Usage ==
This is a skeleton for infobox rows, for use in infobox common
This is a skeleton for infobox rows, for use in infobox common
Line 8: Line 8:
| label = row label
| label = row label
| field = data
| field = data
| optional = put anything here ("true" would be helpful) to make this row hidden if no data is inputted
}}</pre>
}}</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 17:46, 23 January 2011

| class="alternatecells" |- | style="white-space: nowrap; font-weight: bold;" | |

Usage

This is a skeleton for infobox rows, for use in infobox common

{{infobox row
| label = row label
| field = data
| optional = put anything here ("true" would be helpful) to make this row hidden if no data is inputted
}}