Difference between revisions of "Template:Portal icons"
(Created page with "<noinclude> ==Template usage== Creates a row of portal icons. The only parameter is the height of the icons in pixels. The default height is 51, which makes the row of icon...") |
|||
Line 4: | Line 4: | ||
Creates a row of portal icons. | Creates a row of portal icons. | ||
− | The | + | The first parameter is the width of each icon in pixels. The default width is 51, which makes the whole row of icons a suitable width for an infobox. |
+ | |||
+ | The optional noicon parameter, if set to 1, produces words only and leaves the icons out. | ||
==Examples== | ==Examples== | ||
Line 11: | Line 13: | ||
{{Portal icons|20}} | {{Portal icons|20}} | ||
− | {{Portal icons|70}} | + | {{Portal icons|70|noicon=1}} |
</pre> | </pre> | ||
Line 18: | Line 20: | ||
{{Portal icons|20}} | {{Portal icons|20}} | ||
− | {{Portal icons|70}} | + | {{Portal icons|70|noicon=1}} |
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
− | -->[[File:Button-events.png|link=Portal:Events|Events| | + | -->[[File:Button-events{{#ifeq:{{{noicon|}}}|1|-noicon}}.png|link=Portal:Events|Events|{{{1|51}}}px]]<!-- |
− | -->[[File:Button-story.png|link=Portal:Story|Story| | + | -->[[File:Button-story{{#ifeq:{{{noicon|}}}|1|-noicon}}.png|link=Portal:Story|Story|{{{1|51}}}px]]<!-- |
− | -->[[File:Button-planeswalkers.png|link=Portal:Planeswalkers|Planeswalkers| | + | -->[[File:Button-planeswalkers{{#ifeq:{{{noicon|}}}|1|-noicon}}.png|link=Portal:Planeswalkers|Planeswalkers|{{{1|51}}}px]]<!-- |
− | -->[[File:Button-cards.png|link=Portal:Cards|Cards| | + | -->[[File:Button-cards{{#ifeq:{{{noicon|}}}|1|-noicon}}.png|link=Portal:Cards|Cards|{{{1|51}}}px]]<!-- |
− | -->[[File:Button-guides.png|link=Portal:Guides|Guides| | + | -->[[File:Button-guides{{#ifeq:{{{noicon|}}}|1|-noicon}}.png|link=Portal:Guides|Guides|{{{1|51}}}px]]<!-- |
--></includeonly> | --></includeonly> |
Latest revision as of 10:13, 6 January 2020
Template usage
Creates a row of portal icons.
The first parameter is the width of each icon in pixels. The default width is 51, which makes the whole row of icons a suitable width for an infobox.
The optional noicon parameter, if set to 1, produces words only and leaves the icons out.
Examples
This shorthand:
{{Portal icons|20}} {{Portal icons|70|noicon=1}}
Produces: