Difference between revisions of "Template:API/switch Direct3D"

From PCGamingWiki, the wiki about fixing PC games
(added namespace check for cleanup category)
(removed Semantic MediaWiki property tagging (migrated to Cargo))
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}
 +
|1.0
 +
|1.0=<div title="Error: '{{{1|}}}' not an acceptable value. DirectX 1.0 does not include Direct3D at all." class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 +
|2.0
 +
|2=2{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},2|2}}}}
 +
|3.0
 +
|3=3{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},3|3}}}}
 +
|4.0
 +
|4=<div title="Error: '{{{1|}}}' not an acceptable value as this version was cancelled and its features rolled into Direct3D 5." class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 
|5.0
 
|5.0
|5=[[Direct3D versions::5]]
+
|5=5{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},5|5}}}}
 
|6.0
 
|6.0
|6=[[Direct3D versions::6]]
+
|6=6{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},6|6}}}}
 
|7.0
 
|7.0
|7=[[Direct3D versions::7]]
+
|7=7{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},7|7}}}}
 
|8.0
 
|8.0
|8=[[Direct3D versions::8]]
+
|8=8{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},8|8}}}}
 
|9.0
 
|9.0
|9=[[Direct3D versions::9]]
+
|9=9{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},9|9}}}}
 
|10.0
 
|10.0
|10=[[Direct3D versions::10]]
+
|10=10{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},10|10}}}}
|10.1=[[Direct3D versions::10.1]]
+
|10.1=10.1{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},10.1|10.1}}}}
 
|11.0
 
|11.0
|11=[[Direct3D versions::11]]
+
|11=11{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},11|11}}}}
|11.1=[[Direct3D versions::11.1]]
+
|11.1=11.1{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},11.1|11.1}}}}
 +
|11.2=11.2{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},11.2|11.2}}}}
 +
|11.3=11.3{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},11.3|11.3}}}}
 +
|11.4=11.4{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},11.4|11.4}}}}
 
|12.0
 
|12.0
|12=[[Direct3D versions::12]]
+
|12=12{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},12|12}}}}
 
|6.1
 
|6.1
 
|7.0a
 
|7.0a
 
|8.1
 
|8.1
 
|9.0b
 
|9.0b
|9.0c=[[Direct3D versions::{{{1|}}}]]
+
|9.0c={{{1|}}}{{#vardefine:Direct3D versions|{{#if:{{#var:Direct3D versions}}|{{#var:Direct3D versions}},{{{1|}}}|{{{1|}}}}}}}
|unknown=<div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div>
 
 
|#Default = {{{1|}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (API)]] }}
 
|#Default = {{{1|}}}{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (API)]] }}
 
}}</includeonly><noinclude>{{documentation}}</noinclude>
 
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 02:15, 3 October 2021

Documentation for the above template (sometimes hidden from view).