Template:Scenario player count: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{overlay
<includeonly><span style="display:inline-block; vertical-align:top; float:left; width:32px; height:28px;"><div style="position:absolute;z-index:5;">[[File:Players map icon.png|{{{total}}} Total {{#invoke:scenario|players|{{{total|}}}}} / {{{human}}} Human {{#invoke:scenario|players|{{{human|}}}}}|link=Map Attributes]]</div>
|image=Players map icon.png
<div style="position:absolute;width:32px"><div style="font-weight:bold; color: #FFFFFF; text-shadow: 0px 1px 1px black; position:absolute; right:0px; z-index:10; top:-6px; text-align:right">{{{total}}}</div></div>
|imagehover={{{total}}} Total {{#invoke:scenario|players|{{{total|}}}}} / {{{human}}} Human {{#invoke:scenario|players|{{{human|}}}}}
<div style="position:absolute;width:32px"><div style="font-weight:bold; color: #FFFFFF; text-shadow: 0px 1px 1px black; position:absolute; right:0px; z-index:10; top:10px; text-align:right">{{{human}}}</div></div></span></includeonly><noinclude>
|imagelink=Map Attributes
==Usage==
|width=32
* <nowiki>{{scenario player count|total=5|human=3}}</nowiki>
|height=28
 
|legendbox=none
|border=no
|overlay{{{total}}}=total
|overlay{{{total}}}form=text
|overlay{{{total}}}color=white
|overlay{{{total}}}top=-3
|overlay{{{total}}}left=25
|overlay{{#ifeq:{{{total}}}|{{{human}}}||{{{human}}}}}=human
|overlay{{#ifeq:{{{total}}}|{{{human}}}||{{{human}}}}}form=text
|overlay{{#ifeq:{{{total}}}|{{{human}}}||{{{human}}}}}color=white
|overlay{{#ifeq:{{{total}}}|{{{human}}}|{{{human}}}top2|{{{human}}}top}}=13
|overlay{{#ifeq:{{{total}}}|{{{human}}}|{{{human}}}left2|{{{human}}}left}}=25
}}</includeonly><noinclude>
==Examples==
==Examples==
* Shows both if different:
{{scenario player count|total=5|human=3}}
** <nowiki>{{scenario player count|total=5|human=3}}</nowiki>
** <span style="float:left;">{{scenario player count|total=5|human=3}}</span>
{{clear|both}}
* <s>Shows only one if the same:</s> (just kidding i fixed it)
** <nowiki>{{scenario player count|total=5|human=5}}</nowiki>
** <span style="float:left;">{{scenario player count|total=5|human=5}}</span>


[[Category: Map templates]]</noinclude>
[[Category: Map templates]]</noinclude>

Latest revision as of 01:51, 11 March 2025

Usage[edit | hide | hide all]

  • {{scenario player count|total=5|human=3}}

Examples[edit | hide]

5 Total Players / 3 Human Players
5
3