Template:Extra Effect/doc: Difference between revisions

mNo edit summary
Kuhlau (talk | contribs)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Documentation/Header}}
{{Documentation/Header}}
{{CSS|Gadget-Tooltip.css}}
{{CSS|Gadget-Tooltip}}
{{JS|Common}}
{{JS|Gadget-Tooltip}}
This template is used to create tooltips similar to those that appear in-game when clicking on underlined text.
This template is used to create tooltips similar to those that appear in-game when clicking on underlined text.


==Syntax==
==Syntax==
{{T|Extra Effect|v1=Text|v2=Title|v3=Description}}
{{T|Extra Effect|v1=text|v2=id or text for extra effect, optional if first parameter matches one}}


==Examples==
==Example==
{{T|Extra Effect|p1=Click Me|p2=This is a title|p3=This is a description about clicking me.|_Ybr_=1}}
<pre>
Charge to the opponent farthest away, dealing '''200%'''{{Icon|ATK}} Physical DMG to opponents along the path, and applying or removing {{Extra Effect|Lingering Shade|Lingering Shade|When the Active Skill hits opponents without Lingering Shade, mark them with Lingering Shade for 6s.<br />When the Active Skill hits opponents with Lingering Shade, deals '''310%'''{{Icon|ATK}} Physical DMG and removes it.}}.
</pre>
Charge to the opponent farthest away, dealing '''200%'''{{Icon|ATK}} Physical DMG to opponents along the path, and applying or removing {{Extra Effect|Lingering Shade|Lingering Shade|When the Active Skill hits opponents without Lingering Shade, mark them with Lingering Shade for 6s.<br />When the Active Skill hits opponents with Lingering Shade, deals '''310%'''{{Icon|ATK}} Physical DMG and removes it.}}.


<pre>Charge to the opponent farthest away, dealing '''200%'''{{Icon|ATK}} Physical DMG to opponents along the path, and applying or removing {{Extra Effect|Lingering Shade|Lingering Shade|When the Active Skill hits opponents without Lingering Shade, mark them with Lingering Shade for 6s.<br />When the Active Skill hits opponents with Lingering Shade, deals '''310%'''{{Icon|ATK}} Physical DMG and removes it.}}.</pre>
<pre>
Charge to the opponent farthest away, dealing '''200%'''{{Icon|ATK}} Physical DMG to opponents along the path, and applying or removing {{Extra Effect|Lingering Shade|Lingering Shade|When the Active Skill hits opponents without Lingering Shade, mark them with Lingering Shade for 6s.<br />When the Active Skill hits opponents with Lingering Shade, deals '''310%'''{{Icon|ATK}} Physical DMG and removes it.}}.
After each time the Active Skill is used, cycle to the next topping in the {{Extra Effect|passive|topping list}} in order.
</pre>
After each time the Active Skill is used, cycle to the next topping in the {{Extra Effect|passive|topping list}} in order..


==Template Data==
==Template Data==
Line 19: Line 24:
"1": {
"1": {
"label": "Text",
"label": "Text",
"type": "string",
"description": "The displayed, underlined text.",
"required": true,
"type": "line",
"description": "Text to display outside of tooltip."
"required": true
},
},
"2": {
"2": {
"label": "Title",
"label": "Extra Effect",
"type": "string",
"description": "The case-insensitive name or ID of the Extra Effect to display when the underlined text is clicked.",
"required": true,
"description": "Text to display as title in tooltip."
},
"3": {
"label": "Description",
"type": "string",
"type": "string",
"required": true,
"suggested": true
"description": "Text to display as description in tooltip."
}
}
},
},
"format": "inline",
"description": "This template is used to create tooltips similar to those that appear in-game when clicking on underlined text.",
"description": "Create tooltip for Related Effects in Talents and Constellations."
"format": "inline"
}
}
</templatedata>
</templatedata>