Wikia

WoWWiki

Changes: Template:Elinks-quest

Edit this page

Back to page

(support subdomain= for wowdb)
Line 3: Line 3:
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?quest={{{1}}} Wowhead]</li>
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?quest={{{1}}} Wowhead]</li>
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://thottbot.com/quest={{{1}}} Thottbot]</li>}}
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://thottbot.com/quest={{{1}}} Thottbot]</li>}}
{{#if:{{{subdomain|}}}|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/quests/{{{1}}} WoWDB]</li>|<li class="sigrie">[http://db.mmo-champion.com/q/{{{1}}} DB MMO-Champion]</li>}}
+
{{#ifeq:{{lc:{{{subdomain|}}}}}|ptr|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/quests/{{{1}}} WoWDB]</li>|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/quests/{{{1}}} WoWDB]</li>}}
 
</ul>{{#if:{{{subdomain|}}}|[[Category:Articles with non-standard external links]]}}|<!-- no {{{1}}}
 
</ul>{{#if:{{{subdomain|}}}|[[Category:Articles with non-standard external links]]}}|<!-- no {{{1}}}
 
--><span class="error">No quest ID specified. Please edit this article and add it.</span>
 
--><span class="error">No quest ID specified. Please edit this article and add it.</span>
Line 9: Line 9:
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?search={{#sub:{{PAGENAMEE}}|6|0}} Wowhead]</li>
 
<li class="wowhead">[http://{{{subdomain|www}}}.wowhead.com/?search={{#sub:{{PAGENAMEE}}|6|0}} Wowhead]</li>
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://www.thottbot.com/search?q={{#sub:{{PAGENAMEE}}|6|0}} Thottbot]</li>}}
 
{{#if:{{{subdomain|}}}||<li class="thottbot">[http://www.thottbot.com/search?q={{#sub:{{PAGENAMEE}}|6|0}} Thottbot]</li>}}
{{#if:{{{subdomain|}}}|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/http://www.wowdb.com/search?search={{#replace:{{PAGENAMEE}}|_|+}}#search-results:quests WoWDB]</li>|<li class="sigrie">[http://db.mmo-champion.com/search/all/{{#sub:{{PAGENAMEE}}|6|0}}}/#tab=quest DB MMO-Champion]</li>}}
+
{{#ifeq:{{lc:{{{subdomain|}}}}}|ptr|<li class="wowdb">[http://{{{subdomain|}}}.wowdb.com/http://www.wowdb.com/search?search={{#replace:{{PAGENAMEE}}|_|+}}#search-results:quests WoWDB]</li>|<li class="wowdb">[http://www.wowdb.com/http://www.wowdb.com/search?search={{#replace:{{PAGENAMEE}}|_|+}}#search-results:quests WoWDB]</li>}}
 
</ul>[[Category:Articles which need to have quest ID specified]]}}</includeonly>
 
</ul>[[Category:Articles which need to have quest ID specified]]}}</includeonly>
 
</onlyinclude>
 
</onlyinclude>

Revision as of 23:46, October 15, 2012

Description
Creates external quest links using quest ID. See {{elinks-quest/faction}} for a template that shows links for quests of the same name but different IDs for different factions.
Syntax
{{Elinks-quest|<quest_ID>}}
Parameters
1 = Quest ID
id = Optional Quest id. Shows superscript links to DBs.
subdomain = Optional WowDB or Wowhead subdomain. Used when id = used.
Currently supports subdomain=beta (for WowDB Warlords-Logo-Small DB, but point to correct Wowhead link also), or subdomain=wod (for Wowhead Warlords-Logo-Small DB, but point to correct WowDB link also). Only used for WoWDB (beta for Warlords-Logo-Small or ptr) and Wowhead (ptr or wod for Warlords-Logo-Small; subdomain=ptr just redirects to www, so isn't needed; old no longer works).
Example
{{Elinks-quest|4321}}
Result

Around Wikia's network

Random Wiki