Template:Overlay: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:overlay|main}}<noinclude>
{{#invoke:overlay|main}}<noinclude>
==Example==
==Example==
{{overlay
<pre>{{overlay
|image=Players map icon.png
|image=Players map icon.png
|imagehover=Total Players / Human Players
|imagehover=Total Players / Human Players
Line 19: Line 19:
|overlay3top=16
|overlay3top=16
|overlay3left=23
|overlay3left=23
}}
}}</pre>
==Differs from the {{extLink|link=https://en.wikipedia.org/wiki/Template:Overlay|title=original}}==
<span style="float:left;">{{overlay
Added the ability to completely hide the legendbox if you set legendbox=none.
|image=Players map icon.png
|imagehover=Total Players / Human Players
|imagelink=Map Attributes
|width=32
|height=28
|legendbox=none
|border=no
|overlay5=total
|overlay5form=text
|overlay5color=white
|overlay5top=0
|overlay5left=23
|overlay3=human
|overlay3form=text
|overlay3color=white
|overlay3top=16
|overlay3left=23
}}</span>
{{clear|both}}
{{Module:Overlay/doc}}
[[Category:Help templates]]
[[Category:Help templates]]
</noinclude>
</noinclude>

Latest revision as of 05:57, 15 December 2023

Example[edit]

{{overlay
|image=Players map icon.png
|imagehover=Total Players / Human Players
|imagelink=Map Attributes
|width=32
|height=28
|legendbox=none
|border=no
|overlay5=total
|overlay5form=text
|overlay5color=white
|overlay5top=0
|overlay5left=23
|overlay3=human
|overlay3form=text
|overlay3color=white
|overlay3top=16
|overlay3left=23
}}
Total Players / Human Players
3
5

wikipedia.org/wiki/Module:Overlay/doc

Differs from the original[edit]

  1. Added the ability to completely hide the legendbox if you set legendbox=none.
  2. New variables (don't know why the original didn't have these):
    • imagehover (probably need to set to blank if not using, e.g. |imagehover=|...)
    • imagelink (probably need to set to blank if not using, e.g. |imagelink=|...)