Template:Infobox row: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
optional parameter added
m 23 revisions imported
 
(21 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{#if: {{{optional|}}} | | {{!}} class="alternatecells" {{!}}-
<includeonly>{{ #if: {{{1|}}}{{{label|}}} |
{{!}} style="white-space: nowrap; font-weight: bold;" {{!}} {{ucfirst:{{{label|}}}}}
! {{ucfirst: {{{1|{{{label|}}}}}} }} }}
{{!}} {{{field|}}} }}<noinclude>
| {{#if: {{{class|}}} | class="{{{class}}}" }} {{ #if: {{{1|}}}{{{label|}}} || colspan="2" }} |
== Usage ==
{{{2|{{{field|}}}}}}
This is a skeleton for infobox rows, for use in infobox common
<code class="history-json">{"label": "{{JsonEscape|{{ucfirst: {{{1|{{{label|}}}}}} }}}}", "field": "{{JsonEscape|{{{2|{{{field|}}}}}}}}"}</code>
 
|-</includeonly><noinclude>
<pre>{{infobox row
{{documentation}}
| label = row label
<!-- Put categories/interwiki on the documentation page -->
| field = data
</noinclude>
| optional = put anything here ("true" would be helpful) to make this row hidden if no data is inputted
}}</pre>
[[Category:Templates]]</noinclude>

Latest revision as of 07:52, 4 July 2024

[create] [refresh]Documentation
This template has no documentation. If you know how to use this template, please create it.