Difference between revisions of "Template:Tooltip"

From Stoneshard wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>[[{{{1|}}}|{{#tip-text: {{{2|{{{1|}}}}}}|Test}}]]</includeonly><noinclude>{{doc}}
<includeonly>[[{{{1|}}}|{{#tip-text: {{{2|{{{1|}}}}}}|{{Weapon_test|{{{1|}}}}}]]</includeonly><noinclude>{{doc}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 01:47, 26 July 2022

Template-info.png Documentation

Creates a tooltip that displays on mouseover. Shortcut: {{tt}}

Parameters:

  1. Item name.
  2. Item type. (This must be as it appears in the Usage section/ ie. Weapon test)
  3. Link text. If not specified, uses Item name.
  4. Anything. If specified, there won't be a link.


Usage:

{{Tooltip|Footman Sword|Weapon test}}
{{Tooltip|Gambeson|Armor test}}
{{Tooltip|Cleaving Strike|Skill}}
{{Tooltip|Waterskin|Consumable}} (Work in Progress)

[[Footman Sword|{{#tip-text: Weapon test|

Footman Sword
Common Sword
21 Slashing Damage

Armor Penetration: +10%
 
Accuracy: +4%
Counter Chance: +4%
 
Skills Energy Cost: +10%
Spells Energy Cost: +10%
 
Durability: 150/150

Most suitable for a fight in tight formation.
Price1595

Footman Sword
]]

[[Gambeson|{{#tip-text: Armor test|

Gambeson
Common

Physical Resistance: +10%
 
Crushing Resistance: +5%
 
Bleed Resistance: +15%
 
Energy: -4%
Energy Restoration: -1%
 
Durability: /

Data does not exist.
Price

Gambeson

[[Category:]]]] [[Cleaving Strike|{{#tip-text: Skill|

Cleaving Strike
Common

Durability: /

Data does not exist.
Price

Cleaving Strike

[[Category:]]]] [[Waterskin|{{#tip-text: Consumable|

Waterskin
Common

Durability: /

Data does not exist.
Price

Waterskin

[[Category:]]]]

{{Tooltip|Footman Sword|Weapon test|I can write anything as text.}}

[[Footman Sword|{{#tip-text: Weapon test|

Footman Sword
Common Sword
21 Slashing Damage

Armor Penetration: +10%
 
Accuracy: +4%
Counter Chance: +4%
 
Skills Energy Cost: +10%
Spells Energy Cost: +10%
 
Durability: 150/150

Most suitable for a fight in tight formation.
Price1595

Footman Sword
]]


{{Tooltip|Footman Sword|Weapon test|Text that isn't a link can have tooltip too.|nolink}}

[[Footman Sword|{{#tip-text: Weapon test|

Footman Sword
Common Sword
21 Slashing Damage

Armor Penetration: +10%
 
Accuracy: +4%
Counter Chance: +4%
 
Skills Energy Cost: +10%
Spells Energy Cost: +10%
 
Durability: 150/150

Most suitable for a fight in tight formation.
Price1595

Footman Sword
]]