Difference between revisions of "Template:Tooltip/doc"

From Stoneshard wiki
Jump to navigation Jump to search
(Created page with "{{doc/start}} Creates a tooltip that displays on mouseover. Shortcut: {{tl|tt}} Parameters: # Item name. # Link text. If not specified, uses Item name. # Anything. If specified, there won't be a link. Usage: <nowiki>{{Tooltip|Footman Sword}}</nowiki> {{Tooltip|Footman Sword}} <nowiki>{{Tooltip|Footman Sword|I can write anything as text.}}</nowiki> {{Tooltip|Footman Sword|I can write anything as text.}} <nowiki>{{Tooltip|Footman Sword|Text that isn't a link...")
 
 
(9 intermediate revisions by 3 users not shown)
Line 5: Line 5:
Parameters:
Parameters:
# Item name.
# Item name.
# Item type. (This must be as it appears in the Usage section/ ie. Weapon test)
# Link text. If not specified, uses Item name.
# Link text. If not specified, uses Item name.
# Anything. If specified, there won't be a link.
# Anything. If specified, there won't be a link.
Line 11: Line 12:
Usage:
Usage:


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


{{Tooltip|Footman Sword}}
{{Tooltip|Footman Sword|Weapon test}}
{{Tooltip|Gambeson|Armor test}}
{{Tooltip|Cleaving Strike|Skill}}
{{Tooltip|Waterskin|Consumable}}


<nowiki>{{Tooltip|Footman Sword|Weapon test|I can write anything as text.}}</nowiki>


<nowiki>{{Tooltip|Footman Sword|I can write anything as text.}}</nowiki>
{{Tooltip|Footman Sword|Weapon test|I can write anything as text.}}


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


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


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




{{doc/end}}
{{doc/end}}

Latest revision as of 14:16, 19 September 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


Gambeson


Cleaving Strike


Waterskin


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


I can write anything as text.


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


Text that isn't a link can have tooltip too.