Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:System requirements"

From PCGamingWiki, the wiki about fixing PC games
(improved OS error display)
(added previous section validity check (ensures templates are being used in the correct order on game pages))
(11 intermediate revisions by 2 users 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_{{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)]] }}<!--
 
-->{{#switch:{{{OSfamily|}}}
 
-->{{#switch:{{{OSfamily|}}}
|Booter = [[PC booter]]
+
|PC booter
 
|DOS
 
|DOS
 +
|Windows 3.x
 
|Windows
 
|Windows
 
|Mac OS
 
|Mac OS
 
|Linux = [[{{{OSfamily|}}}]]
 
|Linux = [[{{{OSfamily|}}}]]
 
|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:{{{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>
  
Line 112: Line 118:
 
}}
 
}}
 
</table>
 
</table>
{{{notes|}}}</div></includeonly><noinclude>{{Documentation}}</noinclude>
+
{{#if: {{{notes|}}}|{{{notes|}}}|{{#if:{{#var:{{{OSfamily|}}} 64-bit only}} | {{ii}} A 64-bit operating system is required. }}}}</div></includeonly><noinclude>{{Documentation}}</noinclude>

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 -