Difference between revisions of "Template:Weapon"
Jump to navigation
Jump to search
m |
(add category parameter) |
||
| Line 65: | Line 65: | ||
|style="text-align:center;"|[[File:{{#var:Page}}.png|class=image2x|link=|alt={{#var:TranslateName}}|{{#var:TranslateName}}]] | |style="text-align:center;"|[[File:{{#var:Page}}.png|class=image2x|link=|alt={{#var:TranslateName}}|{{#var:TranslateName}}]] | ||
|} | |} | ||
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{#var:Page}}/Tooltip |[[Category:{{#var:WeaponType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:WeaponType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:WeaponType}}]]}}}}|[[Category:{{#var:WeaponType}}]]}}</includeonly><noinclude>{{doc}} | {{#if: {{{category|}}} ||{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{#var:Page}}/Tooltip |[[Category:{{#var:WeaponType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:WeaponType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:WeaponType}}]]}}}}|[[Category:{{#var:WeaponType}}]]}}}}</includeonly><noinclude>{{doc}} | ||
[[Category:Tooltip templates]]</noinclude> | [[Category:Tooltip templates]]</noinclude> | ||
Revision as of 12:03, 26 June 2023
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. 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|Aldorian Bow|category=no}}}}
Examples:
| Aldorian Bow Bow bow07 |
| 27 Slashing Damage -50 Psionic Damage |
Armor Penetration: +15% Knockback Chance: +20% Stagger Chance: +30% Accuracy: -50% Fumble Chance: -12% Range: 9 Skills Energy Cost: +35% Durability: wood/wood
|
Has enough power to knock a charging knight from his saddle. |
| Templar Sword Sword sword17 |
| 7 Psionic Damage |
Armor Penetration: +15% Bleed Chance: +18% Block Chance: +10% Accuracy: +7% Fumble Chance: -1% Skills Energy Cost: +5% Durability: metal/metal
|
There is an etching on the blade's surface, pledging loyalty to the Host and the court... the usual kind of court. |