To get rid of this ad please Sign up/Login.
Difference between revisions of "Template:IconLink"
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: | <noinclude>This really easy to use template gives the option to display a little icon left of a link. | ||
| {{#ifexist: Teleporter:{{{ | |||
| [[{{{ | 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:
- existing pages in a distinct namespace
- 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:
- Creature pages
- {{IconLink|Berycled}} gives:
Berycled - {{IconLink|Lemmy Dragon|Lemmy Dragon Young}} gives:
Lemmy Dragon Young
- {{IconLink|Berycled}} gives:
- Teleporter pages
- {{IconLink|White Line Depot}} gives:
White Line Depot
- {{IconLink|Aloode|The beautiful TP of Aloode}} gives:
The beautiful TP of Aloode
- {{IconLink|White Line Depot}} gives:
- Skill pages
- {{IconLink|Agility}} gives:
Agility - I think you lack {{IconLink|Intelligence|some intelligence}} gives: I think you lack
some intelligence - When no skill specific icon available {{IconLink|Bioregenesis}} or {{IconLink|Vehicle Repairing}} gives:
Bioregenesis or
Vehicle Repairing
- {{IconLink|Agility}} gives:
- NPC pages
- Meet {{IconLink|Fujiko Takida}} gives: Meet Fujiko Takida
- {{IconLink|Fujiko Takida|Who the fuck is Fujiko Takida?}} gives: Who the fuck is Fujiko Takida?
- Regular pages
- {{IconLink|Calypso Gateway}} gives: Calypso Gateway
- {{IconLink|Calypso Gateway|Welcome to CG}} gives: Welcome to CG
- Non-existing pages
- {{IconLink|Some Page}} gives: Some Page
- {{IconLink|Some Page|What page?}} gives: What page?