Template:SmCost: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Initial creation of shortened cost template)
 
m (Formatting)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| align=center cellspacing=0 cellpadding=0 style="background-color:#{{{bgcolor|}}}; text-align:center; width:100%"
<includeonly>
{| align=center cellspacing=0 cellpadding=5 style="background-color:#{{{bgcolor|}}}; text-align:center"
|- valign=middle align=middle
|- valign=middle align=middle
| width=24 | {{-}}{{{1|}}}
| {{#switch: {{{w|}}}| =style="display: none;"|}} | {{#switch: {{{vert|}}}| y={{W}}<br>{{{w|}}} | {{{w|}}}{{-}}{{W}}}}
| width=21 | {{-}}{{{2|2}}}
| {{#switch: {{{m|}}}| =style="display: none;"|}} | {{#switch: {{{vert|}}}| y={{M}}<br>{{{m|}}} | {{{m|}}}{{-}}{{M}}}}
| width=21 | {{-}}{{{3|3}}}
| {{#switch: {{{o|}}}| =style="display: none;"|}} | {{#switch: {{{vert|}}}| y={{O}}<br>{{{o|}}} | {{{o|}}}{{-}}{{O}}}}
| width=24 | {{-}}{{{4|4}}}
| {{#switch: {{{s|}}}| =style="display: none;"|}} | {{#switch: {{{vert|}}}| y={{S}}<br>{{{s|}}} | {{{s|}}}{{-}}{{S}}}}
| width=21 | {{-}}{{{5|5}}}
| {{#switch: {{{c|}}}| =style="display: none;"|}} | {{#switch: {{{vert|}}}| y={{C}}<br>{{{c|}}} | {{{c|}}}{{-}}{{C}}}}
| width=23 | {{-}}{{{6|6}}}
| {{#switch: {{{gem|}}}| =style="display: none;"|}} | {{#switch: {{{vert|}}}| y={{Gem}}<br>{{{gem|}}} | {{{gem|}}}{{-}}{{Gem}}}}
| width=19 | {{-}}{{{7|7}}}
| {{#switch: {{{g|}}}| =style="display: none;"|}} | {{#switch: {{{vert|}}}| y={{G}}<br>{{{g|}}} | {{{g|}}}{{-}}{{G}}}}
|}<noinclude>
|}</includeonly><noinclude>
== Examples ==
<pre>{{SmCost|vert=y|m=10|g=7500}}</pre>
{{SmCost|vert=y|m=10|g=7500}}
 
<pre>{{SmCost|vert=y|w=100|m=100|o=100|s=100|c=100|gem=100|g=50000}}</pre>
{{SmCost|vert=y|w=100|m=100|o=100|s=100|c=100|gem=100|g=50000}}
 
<pre>{{SmCost|m=10|g=7500}}</pre>
{{SmCost|m=10|g=7500}}
 
<pre>{{SmCost|w=100|m=100|o=100|s=100|c=100|gem=100|g=50000}}</pre>
{{SmCost|w=100|m=100|o=100|s=100|c=100|gem=100|g=50000}}


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

Revision as of 19:52, 15 April 2024

Examples

{{SmCost|vert=y|m=10|g=7500}}
Wood
Mercury
10
Ore
Sulfur
Crystal
Gem
Gold
7500
{{SmCost|vert=y|w=100|m=100|o=100|s=100|c=100|gem=100|g=50000}}
Wood
100
Mercury
100
Ore
100
Sulfur
100
Crystal
100
Gem
100
Gold
50000
{{SmCost|m=10|g=7500}}
 Wood 10 Mercury  Ore  Sulfur  Crystal  Gem 7500 Gold
{{SmCost|w=100|m=100|o=100|s=100|c=100|gem=100|g=50000}}
100 Wood 100 Mercury 100 Ore 100 Sulfur 100 Crystal 100 Gem 50000 Gold