This is a protected template!

Difference between revisions of "Template:Elinks-quest"

From Wowpedia
Jump to: navigation, search
(wowhead expects the trailing / now)
 
Line 1: Line 1:
 
{{documentation}}<onlyinclude><includeonly>{{#if:{{{1|}}}|<!--
 
{{documentation}}<onlyinclude><includeonly>{{#if:{{{1|}}}|<!--
 
--><ul class="elinks">
 
--><ul class="elinks">
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|www|classic}}|ptr}}.wowhead.com/quest={{{1}}}/ Wowhead]</li>
+
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#switch:{{{classic|x}}}{{{tbc|y}}}|y=classic|x=tbc|www}}|ptr}}.wowhead.com/quest={{{1}}}/ Wowhead]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/quests/{{{1}}} WoWDB]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/quests/{{{1}}} WoWDB]</li>
 
</ul>|<!-- no {{{1}}}
 
</ul>|<!-- 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>
 
<ul class="elinks">
 
<ul class="elinks">
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|www|classic}}|ptr}}.wowhead.com/?search={{urlencode:{{PAGENAME}}|QUERY}}#quests Wowhead]</li>
+
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#switch:{{{classic|-}}}|-=www|tbc=tbc|classic}}|ptr}}.wowhead.com/?search={{urlencode:{{PAGENAME}}|QUERY}}#quests Wowhead]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/search?search={{urlencode:{{PAGENAME}}|QUERY}}#t1:quests WoWDB]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/search?search={{urlencode:{{PAGENAME}}|QUERY}}#t1:quests WoWDB]</li>
 
</ul>[[Category:Articles which need to have quest ID specified]]}}</includeonly></onlyinclude>
 
</ul>[[Category:Articles which need to have quest ID specified]]}}</includeonly></onlyinclude>

Latest revision as of 01:32, 18 April 2021

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>}}
Example
{{Elinks-quest|<1234>}}
Result

See also