Difference between revisions of "Template:System requirements"
From PCGamingWiki, the wiki about fixing PC games
m (system requirements -> System requirements) |
(added previous section validity check (ensures templates are being used in the correct order on game pages)) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{#var:OS tabs}}|{{#if:{{#var:sysreq first}}||{{System requirements/tabs}}{{#vardefine:sysreq first|true}}}}}}<div class="sysreq sysreq_{{#ifeq:{{{OSfamily|}}}|Windows 3.x|Windows_3x|{{urlencode:{{{OSfamily|}}}|WIKI}}}} container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-sysreqs-{{lc:{{{OSfamily|}}}}}"> | + | <includeonly>{{#switch:{{#var:section}} |
+ | |API | ||
+ | |Middleware | ||
+ | |System requirements={{#vardefine:section|System requirements}} | ||
+ | |#Default = [[Category:Invalid section order]] | ||
+ | }}{{#vardefine:System requirements|present}}{{#if:{{#var:OS tabs}}|{{#if:{{#var:sysreq first}}||{{System requirements/tabs}}{{#vardefine:sysreq first|true}}}}}}<div class="sysreq sysreq_{{#ifeq:{{{OSfamily|}}}|Windows 3.x|Windows_3x|{{urlencode:{{{OSfamily|}}}|WIKI}}}} container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-sysreqs-{{lc:{{{OSfamily|}}}}}"> | ||
<tr class="template-infotable-doublehead sysreq_heading table-sysreqs-head-row"> | <tr class="template-infotable-doublehead sysreq_heading table-sysreqs-head-row"> | ||
<th colspan="3" class="table-sysreqs-head-OS">{{#ifeq: {{NAMESPACE}} | |{{#if: {{{1|}}} | [[Category:Invalid template usage (System requirements)]] }}<!-- | <th colspan="3" class="table-sysreqs-head-OS">{{#ifeq: {{NAMESPACE}} | |{{#if: {{{1|}}} | [[Category:Invalid template usage (System requirements)]] }}<!-- | ||
Line 11: | Line 16: | ||
|OS X = [[Mac OS{{!}}macOS (OS X)]] | |OS X = [[Mac OS{{!}}macOS (OS X)]] | ||
|#Default = [[Category:Invalid template usage (System requirements)]] | |#Default = [[Category:Invalid template usage (System requirements)]] | ||
− | }}|{{{OSfamily|}}}}}{{#if:{{#var:OS tabs}}||{{{ref|}}}}} {{#if: {{#var:Game}}|{{#if: {{#var:{{{OSfamily|}}}}} | | <div title="Error: OS '{{{OSfamily|}}}' not found in infobox" class="svg-icon svg-25 os-error"></div>[[Category:Invalid template usage (System requirements)]] }}}}</th> | + | }}|{{{OSfamily|}}}}}{{#if:{{#var:OS tabs}}||{{{ref|}}}}} {{#if: {{#var:Game}}|{{#if: {{#var:{{{OSfamily|}}}}}{{#var:{{{OSfamily|}}} cancelled}} | | <div title="Error: OS '{{{OSfamily|}}}' not found in infobox" class="svg-icon svg-25 os-error"></div>[[Category:Invalid template usage (System requirements)]] }}}}</th> |
</tr> | </tr> | ||
Revision as of 02:36, 27 August 2021
Documentation for the above template (sometimes hidden from view).
- Syntax
{{System requirements |OSfamily = |minOS = |minCPU = |minCPU2 = |minRAM = |minHD = |minGPU = |minGPU2 = |minGPU3 = |minVRAM = |minOGL = |minDX = |minSM = |minaudio = |mincont = |minother = |recOS = |recCPU = |recCPU2 = |recRAM = |recHD = |recGPU = |recGPU2 = |recGPU3 = |recVRAM = |recOGL = |recDX = |recSM = |recaudio = |reccont = |recother = }}
- Arguments
- OSfamily -
- minOS -
- minCPU -
- minCPU2 -
- minRAM -
- minHD -
- minGPU -
- minGPU2 -
- minGPU3 -
- minVRAM -
- minOGL -
- minDX -
- minSM -
- minaudio -
- mincont -
- minother -
- recOS -
- recCPU -
- recCPU2 -
- recRAM -
- recHD -
- recGPU -
- recGPU2 -
- recGPU3 -
- recVRAM -
- recOGL -
- recDX -
- recSM -
- recaudio -
- reccont -
- recother -
Visit Template:System requirements/Documentation to edit this text. (How does this work?)