Template:Ilink: Difference between revisions

From WeAreDragons
(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...")
 
No edit summary
 
Line 1: Line 1:


<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 Armor}}</nowiki></code> gives:<br><br/> [[File:Golden Armor.gif|link=Armors|alt="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">
This template will add an '''i'''mage '''link''', to use it:<br/> <br/> &nbsp;:
 
<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]].</noinclude><includeonly>[[File:{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}.gif|link={{{1|}}}|alt="{{{1|}}}]]</includeonly><br">&nbsp;</br">
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">&nbsp;</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">