Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!
Difference between revisions of "Template:IconLink"
(Retrying second parameter, this time without line breaking the <noinclude> -.-) |
(Added additional check of whether file name with (Gender) exists) |
||
Line 1: | Line 1: | ||
− | <includeonly><span style="white-space: nowrap">[[File:{{#replace:{{{1|Name}}}|:|-}}{{#if:{{{2|}}}|_({{{2|}}})}}.png|link={{{1|Name}}}]] [[{{{1|Name}}}]]</span></includeonly><noinclude> | + | <includeonly><span style="white-space: nowrap">[[File:{{#replace:{{{1|Name}}}|:|-}}{{#if:{{{2|}}}|{{#ifexist:File:{{#replace:{{{1|Name}}}|:|-}}_({{{2|}}}).png|_({{{2|}}})}}}}.png|link={{{1|Name}}}]] [[{{{1|Name}}}]]</span></includeonly><noinclude> |
Usage: | Usage: | ||
<pre>{{IconLink|Needle Throw}} | <pre>{{IconLink|Needle Throw}} | ||
− | {{IconLink|Contract: Hodor}} | + | {{IconLink|Contract: Hodor|Male}} |
{{IconLink|Tiger Flash}} | {{IconLink|Tiger Flash}} | ||
{{IconLink|Tiger Flash|Male}}</pre> | {{IconLink|Tiger Flash|Male}}</pre> | ||
{{IconLink|Needle Throw}} | {{IconLink|Needle Throw}} | ||
− | {{IconLink|Contract: Hodor}} | + | {{IconLink|Contract: Hodor|Male}} |
{{IconLink|Tiger Flash}} | {{IconLink|Tiger Flash}} |
Revision as of 09:17, 3 March 2016
Usage:
{{IconLink|Needle Throw}} {{IconLink|Contract: Hodor|Male}} {{IconLink|Tiger Flash}} {{IconLink|Tiger Flash|Male}}