Template:Infobox row: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
optional parameter added
rv. what i coded made NO logical sense what so ever. round 2
Line 1: Line 1:
{{#if: {{{optional|}}} | | {{!}} class="alternatecells" {{!}}-
| 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:50, 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
}}