Template:Hoverable: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="hoverable popupid{{{2|{{{1}}}}}}">[[{{{1}}}{{#if:{{{text|}}}|{{!}}{{{text}}}|}}]]</span></includeonly><noinclude>
<includeonly><span style="white-space:nowrap;" class="hoverable popupid{{#invoke:String|replace|{{{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 be left out, in which case the popupid is set to be the same as the link. Spaces are replaced with underscores.'''''
 
<syntaxhighlight lang=mediawiki>{{#invoke:String|replace|Pikeman and Halberdier| |_}}</syntaxhighlight>
{{#invoke:String|replace|Pikeman and Halberdier| |_}}
 
'''''but it might be better to just provide popupids without spaces.'''''


==Usage==
==Usage==
Line 22: Line 17:
{{hv|Archer|text=Archers}}
{{hv|Archer|text=Archers}}
{{Creature/Archer|popupid=Archer}}
{{Creature/Archer|popupid=Archer}}
<syntaxhighlight lang=mediawiki>{{hv|Pikeman and Halberdier}}{{Creatures/Pikeman and Halberdier|popupid=Pikeman and Halberdier}}</syntaxhighlight>
{{hv|Pikeman and Halberdier}}
{{Creatures/Pikeman and Halberdier|popupid=Pikeman and Halberdier}}


==Related==
==Related==
[Template:Popupable]]
[[Template:Popupable]]


[[category:popup templates]]
[[category:popup templates]]
</noinclude>
</noinclude>

Latest revision as of 05:27, 22 August 2025


Note: there can be multiple hoverables for a single popupable.

Note 2: the popupid can be left out, in which case the popupid is set to be the same as the link. Spaces are replaced with underscores.

Usage[edit | hide | hide all]

{{hoverable|Pikeman|123}}{{Creature/Pikeman|popupid=123}}

Pikeman

Pikeman
4
5
1–3
10
4
Move
Ground
Size
1
Growth
14
80
100
Cost

60

Immune to jousting bonus.
{{hv|Pikeman}}{{Creature/Pikeman|popupid=Pikeman}}

Pikeman

Pikeman
4
5
1–3
10
4
Move
Ground
Size
1
Growth
14
80
100
Cost

60

Immune to jousting bonus.
{{hv|Archer|text=Archers}}{{Creature/Archer|popupid=Archer}}

Archers

Archer
6
3
Shots
12
2–3
10
4
Move
Ground
Size
1
Growth
9
126
115
Cost

100

Shoots.
{{hv|Pikeman and Halberdier}}{{Creatures/Pikeman and Halberdier|popupid=Pikeman and Halberdier}}

Pikeman and Halberdier

Pikeman
4
5
1–3
10
4
Move
Ground
Size
1
Growth
14
80
100
Cost

60

Immune to jousting bonus.
Halberdier
6
5
2–3
10
5
Move
Ground
Size
1
Growth
14
115
115
Cost

75

Immune to jousting bonus.

Related[edit | hide]

Template:Popupable