Difference between revisions of "Template:System requirements"

From PCGamingWiki, the wiki about fixing PC games
m (added exception to {{#var:{{{OSfamily|}}} cancelled}})
(added previous section validity check (ensures templates are being used in the correct order on game pages))
 
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)]] }}<!--

Latest 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 -