Difference between revisions of "Template:LinkIcon"
From Unofficial Fantasica Wiki
(Created template) |
m |
||
(16 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{#ifexist: Image:{{{1}}}_icon.png | [[Image:{{{1}}}_icon.png|link={{{1}}}]]<br>[[{{{1}}}]] | {{#ifexist: Image:{{{1}}}_icon.jpg | [[Image:{{{1}}}_icon.jpg|link={{{1}}}]]<br>[[{{{1}}}]] | [[Image:Blank_icon.png| | + | <noinclude> |
+ | DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D | ||
+ | |||
+ | |||
+ | Usage: <nowiki>{{LinkIcon|CardName}}</nowiki></noinclude><includeonly>{{#get_db_data: | ||
+ | db=fantawiki | ||
+ | |from=units | ||
+ | |where=name='{{{1}}}' | ||
+ | |limit=1 | ||
+ | |data=name=`name`,rarity=`rarity` | ||
+ | }}{{#ifexist: Image:{{{1}}}_icon.png | [[Image:{{{1}}}_icon.png|48px|link={{{1}}}]]<br>[[{{{1}}}|{{#external_value:rarity}}★ {{{1}}}]] | {{#ifexist: Image:{{{1}}}_icon.jpg | [[Image:{{{1}}}_icon.jpg|48px|link={{{1}}}]]<br>[[{{{1}}}|{{#external_value:rarity}}★ {{{1}}}]] | [[Image:Blank_icon.png|48px]] }} }}{{#clear_external_data:}}</includeonly> |
Latest revision as of 16:43, 26 January 2016
DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D
Usage: {{LinkIcon|CardName}}