Difference between revisions of "Template:Elinks-spell"

From Wowpedia
Jump to: navigation, search
m (https links)
m
 
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/spell={{{1}}} Wowhead]</li>
+
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|{{#ifeq:{{{tbc|-}}}|-|www|tbc}}|classic}}|ptr}}.wowhead.com/spell={{{1}}} Wowhead]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{beta|-}}}|-|www|beta}}|ptr}}.wowdb.com/spells/{{{1}}} WoWDB]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{beta|-}}}|-|www|beta}}|ptr}}.wowdb.com/spells/{{{1}}} WoWDB]</li>
 
</ul>|<!-- no {{{1}}}
 
</ul>|<!-- no {{{1}}}
 
--><span class="error">No spell ID specified. Please edit this article and add it.</span>
 
--><span class="error">No spell 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?q={{urlencode:{{PAGENAME}}|QUERY}} Wowhead]</li>
+
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|{{#ifeq:{{{tbc|-}}}|-|www|tbc}}|classic}}|ptr}}.wowhead.com/search?q={{urlencode:{{PAGENAME}}|QUERY}} Wowhead]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{beta|-}}}|-|www|beta}}|ptr}}.wowdb.com/search?search={{urlencode:{{PAGENAME}}|QUERY}} WoWDB]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{beta|-}}}|-|www|beta}}|ptr}}.wowdb.com/search?search={{urlencode:{{PAGENAME}}|QUERY}} WoWDB]</li>
 
</ul>[[Category:Articles which need to have spell ID specified]]}}</includeonly></onlyinclude>
 
</ul>[[Category:Articles which need to have spell ID specified]]}}</includeonly></onlyinclude>

Latest revision as of 10:23, 14 April 2021

External links - Spell

Description
Creates external spell links using spell ID
Syntax
{{Elinks-spell|<Spell ID>}}
Example
{{Elinks-spell|<1234>}}
Result