Wikia

WoWWiki

Changes: Template:Elinks-NPC

Edit this page

Back to page

(support subdomain= for wowdb)
Line 4: Line 4:
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?npc={{{1}}} Wowhead]</li>
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?npc={{{1}}} Wowhead]</li>
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://www.thottbot.com/npc={{{1}}} Thottbot]</li>}}
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://www.thottbot.com/npc={{{1}}} Thottbot]</li>}}
{{#if:{{{subdomain|}}}|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/npcs/{{{1}}} WoWDB]</li>|<li class="sigrie">[http://db.mmo-champion.com/c/{{{1}}} DB MMO-Champion]</li>}}
+
{{#ifeq:{{lc:{{{subdomain|}}}}}|ptr|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/npcs/{{{1}}} WoWDB]</li>|<li class="wowdb">[http://www.wowdb.com/npcs/{{{1}}} WoWDB]</li>}}
 
</ul>{{#if:{{{subdomain|}}}|[[Category:Articles with non-standard external links]]}}<!--
 
</ul>{{#if:{{{subdomain|}}}|[[Category:Articles with non-standard external links]]}}<!--
 
-->|<!-- no {{{1}}}
 
-->|<!-- no {{{1}}}
Line 11: Line 11:
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?search={{PAGENAMEE}} Wowhead]</li>
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?search={{PAGENAMEE}} Wowhead]</li>
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://thottbot.com/search?q={{PAGENAMEE}}#npcs Thottbot]</li>}}
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://thottbot.com/search?q={{PAGENAMEE}}#npcs Thottbot]</li>}}
{{#if:{{{subdomain|}}}|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/search?search={{#replace:{{PAGENAMEE}}|_|+}}#search-results:npcs WoWDB]</li>|<li class="sigrie">[http://db.mmo-champion.com/search/all/{{PAGENAMEE}}/#tab=creature DB MMO-Champion]</li>}}
+
{{#ifeq:{{lc:{{{subdomain|}}}}}|ptr|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/search?search={{#replace:{{PAGENAMEE}}|_|+}}#search-results:npcs WoWDB]</li>|<li class="wowdb">[http://www.wowdb.com/search?search={{#replace:{{PAGENAMEE}}|_|+}}#search-results:npcs WoWDB]</li>}}
 
</ul>[[Category:Articles which need to have NPC ID specified]]}}</includeonly>
 
</ul>[[Category:Articles which need to have NPC ID specified]]}}</includeonly>
 
</onlyinclude>
 
</onlyinclude>

Revision as of 23:49, October 15, 2012

Elinks-NPC creates external NPC links using the NPC ID.

Syntax
{{Elinks-NPC|<NPC ID>}}
Example
{{Elinks-NPC|<1234>}}
Result

Around Wikia's network

Random Wiki