Template:Ilink: Difference between revisions
Wearetibia (talk | contribs) (Created page with " <noinclude>This template will add an '''i'''mage '''link''', to use it:<br><br/> :<nowiki>{{Ilink|Page|Image}}</nowiki><br/> For example, <code><nowiki>{{Ilink|Armors|Golden...") |
Wearetibia (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
This template will add an '''i'''mage '''link''', to use it:<br/> <br/> : | |||
<nowiki>{{Ilink|Page|Image}}</nowiki> | |||
<br/> For example, <nowiki>{{Ilink|Armors|Golden Armor}}</nowiki> | |||
gives:<br/> <br/> [[File:Golden Armor.gif|link=Armors]]<br">: <nowiki>{{Ilink|Name}}</nowiki> | |||
<br/> This syntax will use the ''Name'' as both the link destination and the file name. Note that the extension must be *.gif. You can freely use this syntax with items because of our naming conventions.</br"> | |||
<br/> Notes:<br/> *Images have to be in the .gif (lowercase extension) format.<br/> *Image links should not be used on unpopular pages, because image links DO NOT LINK to the file, this means if an admin was to delete the file, it wouldn't appear in the "whatlinkshere" list, and the admin would not know what to fix before deletion. | <br/> Notes:<br/> *Images have to be in the .gif (lowercase extension) format.<br/> *Image links should not be used on unpopular pages, because image links DO NOT LINK to the file, this means if an admin was to delete the file, it wouldn't appear in the "whatlinkshere" list, and the admin would not know what to fix before deletion. | ||
The idea behind this template was to cut down on <nowiki><imagemap></nowiki> usage in pages such as [[Items]]. | The idea behind this template was to cut down on | ||
<nowiki><imagemap></nowiki> | |||
usage in pages such as [[Items|Items]].fckLR[[File:{{#if:{{{2|}}}|link={{{1|}}}]]fckLR<br"> </br"> | |||
[[Category:Pages with broken file links]] |
Latest revision as of 17:25, 5 January 2020
This template will add an image link, to use it:
:
{{Ilink|Page|Image}}
For example, {{Ilink|Armors|Golden Armor}}
gives:
File:Golden Armor.gif<br">: {{Ilink|Name}}
This syntax will use the Name as both the link destination and the file name. Note that the extension must be *.gif. You can freely use this syntax with items because of our naming conventions.</br">
Notes:
*Images have to be in the .gif (lowercase extension) format.
*Image links should not be used on unpopular pages, because image links DO NOT LINK to the file, this means if an admin was to delete the file, it wouldn't appear in the "whatlinkshere" list, and the admin would not know what to fix before deletion.
The idea behind this template was to cut down on <imagemap> usage in pages such as Items.fckLR[[File:{{#if:|link=]]fckLR<br"> </br">