Difference between revisions of "Template:Sandbox/PrettyVersion"

From wowdev
Jump to: navigation, search
m
m
 
Line 1: Line 1:
<includeonly>{{#vardefine:expansionlevel|{{{expansionlevel|}}}}}{{#vardefine:build|{{{build|}}}}}{{#vardefine:expicon-0|PreVanilla}}{{#vardefine:expicon-1|Vanilla}}{{#vardefine:expicon-2|BC}}{{#vardefine:expicon-3|Wrath}}{{#vardefine:expicon-4|Cata}}{{#vardefine:expicon-5|Mists}}{{#vardefine:expicon-6|WoD}}{{#vardefine:expicon-7|Legion}}{{#vardefine:expicon-8|Battle}}{{#if:{{#var:build}}{{#var:expansionlevel}}|{{#if:{{#var:expansionlevel}}|[[File:{{#var:expicon-{{#var:expansionlevel}}}}-Logo-Small.png|alt={{#var:expicon-{{#var:expansionlevel}}}}]]}}{{#if:{{#var:build}}|{{#if:{{#var:expansionlevel}}|&nbsp;(}}{{#var:build}}{{#if:{{#var:expansionlevel}}|)}}}}|<pre style="color: red">ERROR: give either expansionlevel or build or both</pre>}}</includeonly><noinclude>
+
<includeonly>{{#vardefine:expansionlevel|{{{expansionlevel|}}}}}{{#vardefine:build|{{{build|}}}}}{{#vardefine:expicon-0|PreVanilla}}{{#vardefine:expicon-1|Vanilla}}{{#vardefine:expicon-2|BC}}{{#vardefine:expicon-3|Wrath}}{{#vardefine:expicon-4|Cata}}{{#vardefine:expicon-5|Mists}}{{#vardefine:expicon-6|WoD}}{{#vardefine:expicon-7|Legion}}{{#vardefine:expicon-8|Battle}}{{#vardefine:expicon-9|SL}}{{#if:{{#var:build}}{{#var:expansionlevel}}|{{#if:{{#var:expansionlevel}}|[[File:{{#var:expicon-{{#var:expansionlevel}}}}-Logo-Small.png|alt={{#var:expicon-{{#var:expansionlevel}}}}]]}}{{#if:{{#var:build}}|{{#if:{{#var:expansionlevel}}|&nbsp;(}}{{#var:build}}{{#if:{{#var:expansionlevel}}|)}}}}|<pre style="color: red">ERROR: give either expansionlevel or build or both</pre>}}</includeonly><noinclude>
 
* only expansion level: <pre>{{Template:Sandbox/PrettyVersion|expansionlevel=0}}</pre> {{Template:Sandbox/PrettyVersion|expansionlevel=0}}
 
* only expansion level: <pre>{{Template:Sandbox/PrettyVersion|expansionlevel=0}}</pre> {{Template:Sandbox/PrettyVersion|expansionlevel=0}}
 
* only build: <pre>{{Template:Sandbox/PrettyVersion|build=6.0.1.18179}}</pre> {{Template:Sandbox/PrettyVersion|build=6.0.1.18179}}
 
* only build: <pre>{{Template:Sandbox/PrettyVersion|build=6.0.1.18179}}</pre> {{Template:Sandbox/PrettyVersion|build=6.0.1.18179}}
* both: <pre>{{Template:Sandbox/PrettyVersion|expansionlevel=6|build=6.0.1.18179}}</pre> {{Template:Sandbox/PrettyVersion|expansionlevel=6|build=6.0.1.18179}}
+
* both: <pre>{{Template:Sandbox/PrettyVersion|expansionlevel=9|build=9.0.1.32262}}</pre> {{Template:Sandbox/PrettyVersion|expansionlevel=9|build=9.0.1.32262}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:42, 1 November 2019

  • only expansion level:
    {{Template:Sandbox/PrettyVersion|expansionlevel=0}}
    PreVanilla
  • only build:
    {{Template:Sandbox/PrettyVersion|build=6.0.1.18179}}
    6.0.1.18179
  • both:
    {{Template:Sandbox/PrettyVersion|expansionlevel=9|build=9.0.1.32262}}
    SL (9.0.1.32262)