FANDOM


This template includes only the logic to define a numeric size by name. It is not a template that should be used with inputs.

{{#vardefine:small_size|24}}<!--
-->{{#vardefine:medium_size|48}}<!--
-->{{#vardefine:big_size|72}}<!--
 
--><!-- Try to get size parameter by size existing size flag -->
<!-- If size parameter has not been set, use "medium" -->
{{#vardefine:current_size
 |{{#var: 
	{{#if: {{{size|}}}|{{{size}}}|medium}}_size
 }}
}}<!--
 
--><!-- If the parameter flag does not correspondent to size flag, use size parameter -->
<!-- For example, "size=44" does not correspondent to previous set flags -->
<!-- So use the parameter of size (44 in our example) as the current size -->
{{#if:
	{{#var:current_size|}}
	 |
	 |{{#vardefine:current_size|{{{size|}}}}}
}}


Community content is available under CC-BY-SA unless otherwise noted.