Difference between revisions of "Template:Armor test"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
old>Realpsojed
(add automatic category)
Line 17: Line 17:
-->{{#if:{{:Data|{{ROOTPAGENAME}}|Image4}}|[[File:{{:Data|{{ROOTPAGENAME}}|Image4}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]}}}}}}
-->{{#if:{{:Data|{{ROOTPAGENAME}}|Image4}}|[[File:{{:Data|{{ROOTPAGENAME}}|Image4}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]}}}}}}
|}
|}
</includeonly><noinclude>{{doc}}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip |[[Category:{{:Data|{{ROOTPAGENAME}}|ArmorType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Data|{{ROOTPAGENAME}}|ArmorType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Data|{{ROOTPAGENAME}}|ArmorType}}]]}}}}|[[Category:{{:Data|{{ROOTPAGENAME}}|ArmorType}}]]}}</includeonly><noinclude>{{doc}}
 
[[Category:Tooltip templates]]</noinclude>
[[Category:Tooltip templates]]</noinclude>

Revision as of 14:07, 23 June 2021

Template-info.png Documentation

This is armor template created for use together with the Template:Tooltip hover box template to display tooltip with item attributes for armor and jewelry.

Usage: Copy this code to any page where you want to display the item tooltip:

{{{{{1|Tooltip hover box}}}|title={{Armor_test}}}}

You can provide the item name as first parameter, otherwise the pagename is used.

By default, the page is also labelled with a category corresponding to the item type (ie. Venemist's Talisman will receive the Category: Amulet). If you don't want to add this category to a page, add the category parameter:

{{{{{1|Tooltip hover box}}}|title={{Armor_test|Venemist's Talisman|category=no}}}}
Armor test
Common
Durability: /

Price

Armor test

[[Category:]]

Armor test
Common
Durability: /

Price

Armor test

[[Category:]]

Armor test
Common
Durability: /

Price

Armor test

[[Category:]]

Armor test
Common
Durability: /

Price

Armor test

[[Category:]]

Armor test
Common
Durability: /

Price

Armor test

[[Category:]]

Armor test
Common
Durability: /

Price

Armor test

[[Category:]]