Difference between revisions of "Template:System requirements"
From PCGamingWiki, the wiki about fixing PC games
(moved validity checks inside namespace check) |
(added OS tabs and notes support) |
||
Line 1: | Line 1: | ||
− | <includeonly><div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-sysreqs-{{lc:{{{OSfamily|}}}}}"> | + | <includeonly>{{#if:{{#var:OS tabs}}|{{#if:{{#var:sysreq first}}||{{System requirements/tabs}}}}}}<div class="{{#if:{{#var:OS tabs}}|sysreq_{{urlencode:{{{OSfamily|}}}|WIKI}} sysreq {{#if:{{#var:sysreq first}}|sysreq_hidden|{{#vardefine:sysreq first|true}}}}}} container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-sysreqs-{{lc:{{{OSfamily|}}}}}"> |
− | <tr class="template-infotable-doublehead"> | + | <tr class="template-infotable-doublehead {{#if:{{#var:OS tabs}}|sysreq_hidden}}"> |
<th colspan="3">{{#ifeq: {{NAMESPACE}} | |{{#if: {{{1|}}} | [[Category:Invalid template usage (system requirements)]] }}{{#if: {{#var:{{{OSfamily|}}}}} | | [[Category:Invalid template usage (system requirements)]] }}<!-- | <th colspan="3">{{#ifeq: {{NAMESPACE}} | |{{#if: {{{1|}}} | [[Category:Invalid template usage (system requirements)]] }}{{#if: {{#var:{{{OSfamily|}}}}} | | [[Category:Invalid template usage (system requirements)]] }}<!-- | ||
-->{{#switch:{{{OSfamily|}}} | -->{{#switch:{{{OSfamily|}}} | ||
Line 10: | Line 10: | ||
|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|}}}}}{{{ref|}}}</th> | + | }}|{{{OSfamily|}}}}}{{#if:{{#var:OS tabs}}||{{{ref|}}}}}</th> |
</tr> | </tr> | ||
<tr class="template-infotable-head"> | <tr class="template-infotable-head"> | ||
<th scope="col" style="width: 220px;"></th> | <th scope="col" style="width: 220px;"></th> | ||
− | <th scope="col" style="{{#if: {{{recOS|}}}{{{recCPU|}}}{{{recCPU2|}}}{{{recRAM|}}}{{{recHD|}}}{{{recGPU|}}}{{{recGPU2|}}}{{{recGPU3|}}}{{{recVRAM|}}}{{{recOGL|}}}{{{recDX|}}}{{{recSM|}}}{{{recaudio|}}}{{{reccont|}}}{{{recother|}}} | width: 300px; | width: 600px;}}">Minimum</th> | + | <th scope="col" style="{{#if: {{{recOS|}}}{{{recCPU|}}}{{{recCPU2|}}}{{{recRAM|}}}{{{recHD|}}}{{{recGPU|}}}{{{recGPU2|}}}{{{recGPU3|}}}{{{recVRAM|}}}{{{recOGL|}}}{{{recDX|}}}{{{recSM|}}}{{{recaudio|}}}{{{reccont|}}}{{{recother|}}} | width: 300px; | width: 600px;}}">Minimum{{#if:{{#var:OS tabs}}|{{{ref|}}}}}</th> |
{{#if: {{{recOS|}}}{{{recCPU|}}}{{{recCPU2|}}}{{{recRAM|}}}{{{recHD|}}}{{{recGPU|}}}{{{recGPU2|}}}{{{recGPU3|}}}{{{recVRAM|}}}{{{recOGL|}}}{{{recDX|}}}{{{recSM|}}}{{{recaudio|}}}{{{reccont|}}}{{{recother|}}} | <th style="width: 300px;">Recommended</th> }} | {{#if: {{{recOS|}}}{{{recCPU|}}}{{{recCPU2|}}}{{{recRAM|}}}{{{recHD|}}}{{{recGPU|}}}{{{recGPU2|}}}{{{recGPU3|}}}{{{recVRAM|}}}{{{recOGL|}}}{{{recDX|}}}{{{recSM|}}}{{{recaudio|}}}{{{reccont|}}}{{{recother|}}} | <th style="width: 300px;">Recommended</th> }} | ||
</tr> | </tr> | ||
Line 111: | Line 111: | ||
</tr> | </tr> | ||
}} | }} | ||
− | </table></div></includeonly><noinclude>{{Documentation}}</noinclude> | + | </table> |
+ | {{{notes|}}}</div></includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 22:54, 28 October 2018
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?)