Template:Navbox/IconExternal: Difference between revisions

From The Political Machine - Official Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> {{#if: {{{link|}}} | {{#vardefine:pagelink| {{{link}}} }} | {{#vardefine:pagelink| {{{subpage|{{{text|}}} }}} }} }} <span style="text-align:center; float:left; overflow:hidden; margin-left:1px; margin-right:1px;"> <div> <a href="{{#var:pagelink}}" class="image"> <img src="{{{image}}}" width="{{{width|{{#var:iconwidth}}}}}" height="{{{height|{{#var:iconheight}}}}}" alt="{{{text|}}}" /> </a> </div> {{#if: {{{text|}}} | <div st...")
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if: {{{link|}}} | <span style="text-align:center; float:left; overflow:hidden; margin-left:1px; margin-right:1px;"><div><img src="{{{image}}}" width="{{{width|{{#var:iconwidth}}}}}" height="{{{height|{{#var:iconheight}}}}}" alt="{{{text|}}}" /></div>{{#if: {{{text|}}} | <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">[{{{link}}} {{{text}}}]]</div>}}</span> }}{{!}}</includeonly>
{{#if: {{{link|}}} |  
See {{Tlx|Navbox}} for documentation.
  {{#vardefine:pagelink| {{{link}}} }}
[[Category:Universal]]
|
[[Category:Templates]]</noinclude>
  {{#vardefine:pagelink| {{{subpage|{{{text|}}} }}} }}
}}
<span style="text-align:center; float:left; overflow:hidden; margin-left:1px; margin-right:1px;">
  <div>
    <a href="{{#var:pagelink}}" class="image">
      <img src="{{{image}}}" width="{{{width|{{#var:iconwidth}}}}}" height="{{{height|{{#var:iconheight}}}}}" alt="{{{text|}}}" />
    </a>
  </div>
  {{#if: {{{text|}}} |  
    <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">
      <a href="{{#var:pagelink}}">{{{text}}}</a>
    </div>
  }}
</span>
</includeonly>

Latest revision as of 22:43, 8 March 2024

See {{Navbox}} for documentation.