Template:Navbox/Row: Difference between revisions

From The Political Machine - Official Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
-->{{#vardefine:textwidth|{{{textwidth|{{#var:iconwidth}}}}}}}<!--
-->{{#vardefine:textwidth|{{{textwidth|{{#var:iconwidth}}}}}}}<!--
-->{{#vardefine:maxlines|{{{maxlines|2.2}}}}}
-->{{#vardefine:maxlines|{{{maxlines|2.2}}}}}
|-
{{#if: {{{rowicon|}}}|
  {{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{rowicon}}}|{{{rowiconsize|50px}}}]]
  |- <!-- Add a new row for the row icon if it exists -->
}}
|-
|-
{{#ifeq: {{lc:{{{hideLabel|false}}}}} | false |
{{#ifeq: {{lc:{{{hideLabel|false}}}}} | false |
   {{!}} width="10%" {{!}} {{#if: {{{icon|}}} | [[File:{{{icon}}}|left|{{{iconsize|20px}}}]]&nbsp; }}{{#if:{{{text|}}}|'''{{{text}}}'''}}  
   {{!}} width="10%" {{!}} {{#if:{{{text|}}}|'''{{{text}}}'''}}  
}}
}}
{{#ifeq: {{lc:{{{hideLabel|false}}}}} | false || {{!}} colspan="2" }}| {{{data|}}}
{{#ifeq: {{lc:{{{hideLabel|false}}}}} | false || {{!}} colspan="2" }}| {{{data|}}}
</includeonly>
</includeonly>
<noinclude>
See {{Tlx|Navbox}} for documentation.
[[Category:Universal]]
[[Category:Universal]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>

Revision as of 21:29, 1 March 2024