Difference between revisions of "Template:IconLink"

From EntropiaPlanets Wiki - Entropia Universe Guides Wiki Info
m (Created page with '{{#ifexist: Skill:{{{Page_Name}}} | [[Image:Skills_thumb_{{lc:{{{Page_Name}}}.jpeg}}|16px]] [[{{{Page_Name}}}]] | {{#ifexist: Teleporter:{{{Page_Name}}} | [[Image:iconTeleporters…')
 
m
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifexist: Skill:{{{Page_Name}}} | [[Image:Skills_thumb_{{lc:{{{Page_Name}}}.jpeg}}|16px]] [[{{{Page_Name}}}]]
<noinclude>This really easy to use template gives the option to display a little icon left of a link.
| {{#ifexist: Teleporter:{{{Page_Name}}} | [[Image:iconTeleporters.JPG|16px|Teleporter]] [[{{{Page_Name}}}]]
 
| [[{{{Page_Name}}}]]
Currently it only works with Creature, Teleporters, Skills and NPCs because it needs the following preconditions to work:
}}
# existing pages in a distinct namespace
# image files usable for Icons
 
<br />
 
The Syntax is
 
* either: <nowiki>{{IconLink|name of the page}}</nowiki>
* or: <nowiki>{{IconLink|name of the page|name of the link}}</nowiki>
 
<br />
 
Examples:
 
*  Creature pages
** <nowiki>{{IconLink|Berycled}}</nowiki> gives: {{IconLink|Berycled}}
** <nowiki>{{IconLink|Lemmy Dragon|Lemmy Dragon Young}}</nowiki> gives: {{IconLink|Lemmy Dragon|Lemmy Dragon Young}}
* Teleporter pages
** <nowiki>{{IconLink|White Line Depot}}</nowiki> gives: {{IconLink|White Line Depot}}
** <nowiki>{{IconLink|Aloode|The beautiful TP of Aloode}}</nowiki> gives: {{IconLink|Aloode|The beautiful TP of Aloode}}
* Skill pages
** <nowiki>{{IconLink|Agility}}</nowiki> gives: {{IconLink|Agility}}
** <nowiki> I think you lack {{IconLink|Intelligence|some intelligence}}</nowiki> gives: I think you lack {{IconLink|Intelligence|some intelligence}}
** When no skill specific icon available <nowiki>{{IconLink|Bioregenesis}} or {{IconLink|Vehicle Repairing}}</nowiki> gives: {{IconLink|Bioregenesis}} or {{IconLink|Vehicle Repairing}}
* NPC pages
** <nowiki>Meet {{IconLink|Fujiko Takida}}</nowiki> gives: Meet {{IconLink|Fujiko Takida}}
** <nowiki>{{IconLink|Fujiko Takida|Who the fuck is Fujiko Takida?}}</nowiki> gives: {{IconLink|Fujiko Takida|Who the fuck is Fujiko Takida?}}
* Regular pages
** <nowiki>{{IconLink|Calypso Gateway}}</nowiki> gives: {{IconLink|Calypso Gateway}}
** <nowiki>{{IconLink|Calypso Gateway|Welcome to CG}}</nowiki> gives: {{IconLink|Calypso Gateway|Welcome to CG}}
* Non-existing pages
** <nowiki>{{IconLink|Some Page}}</nowiki> gives: {{IconLink|Some Page}}
** <nowiki>{{IconLink|Some Page|What page?}}</nowiki> gives: {{IconLink|Some Page|What page?}}
 
 
 
 
 
</noinclude><includeonly>{{#ifexist: Creature:{{{1}}} | [[Image:Moblist_thumb_{{lc:{{{1}}}}}.png|16px|Creature]] [[Creature:{{{1}}}|{{{2|{{{1}}}}}}]]
| {{#ifexist: Teleporter:{{{1}}} | [[Image:iconTeleporters.JPG|16px|Teleporter]] [[Teleporter:{{{1}}}|{{{2|{{{1}}}}}}]]
| {{#ifexist: Skill:{{{1}}} | {{#ifexist: File:Skills_thumb_{{lc:{{{1}}}}}.jpg | [[File:Skills_thumb_{{lc:{{{1}}}}}.jpg|16px]] [[Skill:{{{1}}}|{{{2|{{{1}}}}}}]] | [[File:Skills-Icon-36x36.png|16px]] [[Skill:{{{1}}}|{{{2|{{{1}}}}}}]] }}
| {{#ifexist: NPC:{{{1}}} | [[Image:NPC_Icon_16x16.png|16px|NPC]] [[NPC:{{{1}}}|{{{2|{{{1}}}}}}]]
| [[{{{1}}}|{{{2|{{{1}}}}}}]]
}}
}}
}}
}}
}}</includeonly>

Latest revision as of 17:43, 20 July 2010

This really easy to use template gives the option to display a little icon left of a link.

Currently it only works with Creature, Teleporters, Skills and NPCs because it needs the following preconditions to work:

  1. existing pages in a distinct namespace
  2. image files usable for Icons


The Syntax is

  • either: {{IconLink|name of the page}}
  • or: {{IconLink|name of the page|name of the link}}


Examples: