Template:Navbox/Icon: Difference between revisions

From The Political Machine - Official Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{link|}}} | {{#vardefine:pagelink| {{{link}}} }} | {{#vardefine:pagelink| {{#var:gamelink}}/{{{subpage|{{{text}}}}}} }} }}
  {{#if: {{{link|}}} | {{#vardefine:pagelink|{{{link}}} }} | {{#vardefine:pagelink|{{#var:gamelink}}/{{{subpage|{{{text}}}}}} }} }}
<span style="text-align:center; float:left; overflow:hidden; margin-left:1px; margin-right:1px;">
  <span style="text-align:center; float:left; overflow:hidden; margin-left:1px; margin-right:1px;">
  <div>
    <div>
    [[File:{{{image}}} | {{{width|{{#var:iconwidth}}}}}x{{{height|{{#var:iconheight}}}}}px | {{{text|}}} | link={{#var:pagelink}} ]]
      [[File:{{{image}}} | {{{width|{{#var:iconwidth}}}}}x{{{height|{{#var:iconheight}}}}}px | {{{text|}}} | link={{#var:pagelink}} ]]
  </div>
    </div>
  {{#if: {{{text|}}} |  
    {{#if: {{{text|}}} |
  <div style="text-align:center; font-size:{{{textsize|{{#var:textsize}}}}}em; width:{{{textwidth|{{#var:textwidth}}}}}px; margin:auto">
      <div style="line-height:1; text-align:center; font-size:{{{textsize|{{#var:textsize}}}}}em; width:{{{textwidth|{{#var:textwidth}}}}}px; height:{{#var:maxlines}}em; margin:auto">
    [[{{#var:pagelink}} | {{{text}}}]]
        [[{{#var:pagelink}} | {{{text}}}]]
  </div>
      </div>
  }}
    }}
</span>
  </span>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
See {{Tlx|Navbox}} for documentation.
  See {{Tlx|Navbox}} for documentation.
[[Category:Universal]]
  [[Category:Universal]]
[[Category:Templates]]
  [[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 20:26, 1 March 2024


 See {{Navbox}} for documentation.