This is a protected template!

Difference between revisions of "Template:Elinks-quest"

From Wowpedia
Jump to: navigation, search
(forgot that doesn't work for wowdb)
Line 2: Line 2:
 
--><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|-}}}|-|{{#ifeq:{{{classic|-}}}|-|www|classic}}|ptr}}.wowhead.com/quest={{{1}}} Wowhead]</li>
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|www|classic}}|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|-}}}|-|{{#ifeq:{{{classic|-}}}|-|www|classic}}|ptr}}.wowhead.com/?search={{urlencode:{{PAGENAME}}|QUERY}}#quests Wowhead]</li>
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|www|classic}}|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>
 
</ul>[[Category:Articles which need to have quest ID specified]]}}</includeonly>
 
</onlyinclude>
 
</onlyinclude>

Revision as of 21:56, 31 May 2020

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