Difference between revisions of "Template:Weapon"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(added special check for Russian language. Apparently Fire Frost Shock Poison and Caustic are written like "Damage Fire" while the rest are written like "Arcane Damage".)
old>Realpsojed
m
Line 10: Line 10:
|Poison
|Poison
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType1}}|Properties}}
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType1}}|Properties}}
#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType1}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType1}}|Properties}} {{Translate|Damage|Properties}}}}}}<!--
|#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType1}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType1}}|Properties}} {{Translate|Damage|Properties}}}}}}<!--


-->{{#if: {{:{{ROOTPAGENAME}}|Damage2}} | <br>{{c|{{:{{ROOTPAGENAME}}|DamageType2}}|{{:{{ROOTPAGENAME}}|Damage2}} {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | 2}} | ru | {{#switch: {{:{{ROOTPAGENAME}}|DamageType2}}
-->{{#if: {{:{{ROOTPAGENAME}}|Damage2}} | <br>{{c|{{:{{ROOTPAGENAME}}|DamageType2}}|{{:{{ROOTPAGENAME}}|Damage2}} {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | 2}} | ru | {{#switch: {{:{{ROOTPAGENAME}}|DamageType2}}
Line 18: Line 18:
|Poison
|Poison
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType2}}|Properties}}
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType2}}|Properties}}
#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType2}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType2}}|Properties}} {{Translate|Damage|Properties}}}}}}| }}<!--
|#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType2}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType2}}|Properties}} {{Translate|Damage|Properties}}}}}}| }}<!--


-->{{#if: {{:{{ROOTPAGENAME}}|Damage3}} | <br>{{c|{{:{{ROOTPAGENAME}}|DamageType3}}|{{:{{ROOTPAGENAME}}|Damage3}} {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | 2}} | ru | {{#switch: {{:{{ROOTPAGENAME}}|DamageType3}}
-->{{#if: {{:{{ROOTPAGENAME}}|Damage3}} | <br>{{c|{{:{{ROOTPAGENAME}}|DamageType3}}|{{:{{ROOTPAGENAME}}|Damage3}} {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | 2}} | ru | {{#switch: {{:{{ROOTPAGENAME}}|DamageType3}}
Line 26: Line 26:
|Poison
|Poison
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType3}}|Properties}}
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType3}}|Properties}}
#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType3}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType3}}|Properties}} {{Translate|Damage|Properties}}}}}}| }}<!--
|#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType3}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType3}}|Properties}} {{Translate|Damage|Properties}}}}}}| }}<!--


-->{{#if: {{:{{ROOTPAGENAME}}|Damage4}} | <br>{{c|{{:{{ROOTPAGENAME}}|DamageType4}}|{{:{{ROOTPAGENAME}}|Damage4}} {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | 2}} | ru | {{#switch: {{:{{ROOTPAGENAME}}|DamageType4}}
-->{{#if: {{:{{ROOTPAGENAME}}|Damage4}} | <br>{{c|{{:{{ROOTPAGENAME}}|DamageType4}}|{{:{{ROOTPAGENAME}}|Damage4}} {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | 2}} | ru | {{#switch: {{:{{ROOTPAGENAME}}|DamageType4}}
Line 34: Line 34:
|Poison
|Poison
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType4}}|Properties}}
|Caustic = {{Translate|Damage|Properties}} {{Translate|{{:{{ROOTPAGENAME}}|DamageType4}}|Properties}}
#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType4}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType4}}|Properties}} {{Translate|Damage|Properties}}}}}}| }}<!--
|#default = {{Translate|{{:{{ROOTPAGENAME}}|DamageType4}}|Properties}} {{Translate|Damage|Properties}} }} | {{Translate|{{:{{ROOTPAGENAME}}|DamageType4}}|Properties}} {{Translate|Damage|Properties}}}}}}| }}<!--


--><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">
--><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">

Revision as of 18:57, 8 October 2020

Template-info.png Documentation

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

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

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

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. Heavy Aldorian Bow will receive the Category: Bow). If you don't want to add this category to a page, add the category parameter:

{{{{{1|Tooltip hover box}}}|title={{Weapon|Heavy Aldorian Bow|category=no}}}}

Examples: