This is a protected template!

Difference between revisions of "Template:Elinks-item"

From Wowpedia
Jump to: navigation, search
m
(tbc support, it is there but unavailable for the moment)
 
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/item={{{1}}}{{#if:{{{bonus|}}}|&bonus={{{bonus}}}}} Wowhead]</li>
+
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|{{#ifeq:{{{tbc|-}}}|-|www|tbc}}|classic}}|ptr}}.wowhead.com/item={{{1}}}{{#if:{{{bonus|}}}|&bonus={{{bonus}}}}} Wowhead]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/items/{{{1}}}{{#if:{{{bonus|}}}|?bonusIDs={{{bonus}}}}} WoWDB]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/items/{{{1}}}{{#if:{{{bonus|}}}|?bonusIDs={{{bonus}}}}} WoWDB]</li>
 
</ul><!--
 
</ul><!--
Line 7: Line 7:
 
--><span class="error">No item ID specified. Please edit this article and add it.</span><!--
 
--><span class="error">No item 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}}#items Wowhead]</li>
+
<li class="wowhead">[https://{{#ifeq:{{{ptr|-}}}|-|{{#ifeq:{{{classic|-}}}|-|{{#ifeq:{{{tbc|-}}}|-|www|tbc}}|classic}}|ptr}}.wowhead.com/search?q={{urlencode:{{PAGENAME}}|QUERY}}#items Wowhead]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/search?search={{urlencode:{{PAGENAME}}|QUERY}}#t1:items WoWDB]</li>
 
<li class="sigrie">[https://{{#ifeq:{{{ptr|-}}}|-|www|ptr}}.wowdb.com/search?search={{urlencode:{{PAGENAME}}|QUERY}}#t1:items WoWDB]</li>
 
</ul>[[Category:Articles which need to have item ID specified]]}}</includeonly></onlyinclude>
 
</ul>[[Category:Articles which need to have item ID specified]]}}</includeonly></onlyinclude>

Latest revision as of 20:52, 6 March 2021

Description
Creates external item links using the item's internal item ID. Also supports an optional "bonus" argument to handle Warlords-and-beyond items.
Syntax
{{Elinks-item|<Item ID>}}
Example
{{Elinks-item|12345}}
Result
Bonus example
{{elinks-item|119309|bonus=570}}
Result

See also