Template:Icon Link: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
(Created page with '<includeonly>[[Image:{{{1|}}} Icon.png|link={{{1|}}}]] [[{{{1|}}}]]</includeonly><noinclude> {{Documentation}} Category:Wiki Template </noinclude>')
 
imported>Tlosk
(added optional link parameter if the article link differs from the icon name)
Line 1: Line 1:
<includeonly>[[Image:{{{1|}}} Icon.png|link={{{1|}}}]] [[{{{1|}}}]]</includeonly><noinclude>
<includeonly>[[Image:{{{1|}}} Icon.png|link={{#ifeq:{{{link|}}}||{{{1|}}}|{{{link|}}}}}]] [[{{#ifeq:{{{link|}}}||{{{1|}}}|{{{link|}}}}}]]</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Wiki Template]]
[[Category:Wiki Template]]
</noinclude>
</noinclude>

Revision as of 19:25, 8 April 2010

Template Documentation: Link| |_}}/Doc?action=edit Edit Documentation

Related topics: Wiki Templates, {{Icon}}, {{Icon Bullet}}

Syntax

{{Icon Link|<item name>}}
{{Icon Link|<icon name>|link=<link name>}}

Usage

Displays the icon and link for an item.

For example:

{{Icon Link|Pyreal Mote}}

displays as:

Pyreal Mote


You may optionally specify a link parameter if the article you want to link to is different than the icon image you want to use. This means you don't have to upload a duplicate image with the same name as the article if you don't wish to.


For example, while using the nugget icon both the image and the wiki link take you to Atlan Weapons:

{{Icon Link|Pyreal Nugget|link=Atlan Weapons}}

displays as:

Atlan Weapons