Template:Hoverable: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><span class="hoverable popupid{{{2|{{{1}}}}}}">[[{{{1}}}{{#if:{{{text|}}}|{{!}}{{{text}}}|}}]]</span></includeonly><noinclude> | <includeonly><span class="hoverable popupid{{{2|{{{1}}}}}}">[[{{{1}}}{{#if:{{{text|}}}|{{!}}{{{text}}}|}}]]</span></includeonly><noinclude> | ||
'''Note: there can be multiple hoverables for a single popupable.''' | '''''Note: there can be multiple hoverables for a single popupable.''''' | ||
'''Note 2: the popupid can't have any spaces in it. This could be bypassed using:''' | '''''Note 2: the popupid can't have any spaces in it. This could be bypassed using:''''' | ||
<syntaxhighlight lang=mediawiki>{{#invoke:String|replace|Pikeman and Halberdier| |_}}</syntaxhighlight> | <syntaxhighlight lang=mediawiki>{{#invoke:String|replace|Pikeman and Halberdier| |_}}</syntaxhighlight> | ||
{{#invoke:String|replace|Pikeman and Halberdier| |_}} | {{#invoke:String|replace|Pikeman and Halberdier| |_}} | ||
'''but it might be better to just provide popupids without spaces.''' | '''''but it might be better to just provide popupids without spaces.''''' | ||
==Usage== | ==Usage== | ||
Revision as of 06:45, 18 August 2025
Note: there can be multiple hoverables for a single popupable.
Note 2: the popupid can't have any spaces in it. This could be bypassed using:
{{#invoke:String|replace|Pikeman and Halberdier| |_}}
Pikeman_and_Halberdier
but it might be better to just provide popupids without spaces.
Usage
{{hoverable|Pikeman|123}}{{Creature/Pikeman|popupid=123}}
{{hv|Pikeman}}{{Creature/Pikeman|popupid=Pikeman}}
{{hv|Archer|text=Archers}}{{Creature/Archer|popupid=Archer}}

Archer
6
3
Shots
12
2–3
10
4
Move
Ground
Size
1
Growth
9
126
115
Cost
100
Shoots.
Related
[Template:Popupable]]




