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:NpcIconLink"
m (Now handles npcs without icons) |
m (Added alias parameter to enable page redirect) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifexist:File:{{{1| | + | <includeonly>{{#ifexist:File:{{{1|name}}}Icon.png |
− | [[File:{{#replace:{{{1| | + | |{{#if:{{{alias|}}} |
− | |[[File:BlankNpcIcon.png|link={{{1| | + | |[[File:{{#replace:{{{1|name}}}Icon|:|-}}.png|link={{{1|name}}}{{!}}{{{alias|}}}]] |
+ | |[[File:{{#replace:{{{1|name}}}Icon|:|-}}.png|link={{{1|name}}}]] | ||
+ | }} | ||
+ | |{{#if:{{{alias|}}} | ||
+ | |[[File:BlankNpcIcon.png|link={{{1|name}}}{{!}}{{{alias}}}]] | ||
+ | |[[File:BlankNpcIcon.png|link={{{1|name}}}]] | ||
+ | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Usage: | Usage: | ||
<pre>{{NpcIconLink|Niu}} | <pre>{{NpcIconLink|Niu}} | ||
− | {{NpcIconLink|Pai}} | + | {{NpcIconLink|Pai|alias=Pink-Haired Girl}} |
{{NpcIconLink|Navarre}} | {{NpcIconLink|Navarre}} | ||
{{NpcIconLink|Archpriest Beldron}} | {{NpcIconLink|Archpriest Beldron}} | ||
− | {{NpcIconLink|Don Enzo Sipo}} | + | {{NpcIconLink|Don Enzo Sipo|alias=Eye of Dawn}} |
</pre> | </pre> | ||
{{NpcIconLink|Niu}} | {{NpcIconLink|Niu}} | ||
− | {{NpcIconLink|Pai}} | + | {{NpcIconLink|Pai|alias=Pink-Haired Girl}} |
{{NpcIconLink|Navarre}} | {{NpcIconLink|Navarre}} | ||
Line 18: | Line 24: | ||
{{NpcIconLink|Archpriest Beldron}} | {{NpcIconLink|Archpriest Beldron}} | ||
− | {{NpcIconLink|Don Enzo Sipo}} | + | {{NpcIconLink|Don Enzo Sipo|alias=Eye of Dawn}} |
[[Category:Formatting Templates]] | [[Category:Formatting Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 00:08, 5 August 2020
Usage:
{{NpcIconLink|Niu}} {{NpcIconLink|Pai|alias=Pink-Haired Girl}} {{NpcIconLink|Navarre}} {{NpcIconLink|Archpriest Beldron}} {{NpcIconLink|Don Enzo Sipo|alias=Eye of Dawn}}