Difference between revisions of "Template:System requirements"

From PCGamingWiki, the wiki about fixing PC games
(added previous section validity check (ensures templates are being used in the correct order on game pages))
(added check to skip cleanup categorization for non-game pages)
 
Line 1: Line 1:
<includeonly>{{#switch:{{#var:section}}
+
<includeonly>{{#if: {{#var:Game}}|{{#switch:{{#var:section}}
 
|API
 
|API
 
|Middleware
 
|Middleware
 
|System requirements={{#vardefine:section|System requirements}}
 
|System requirements={{#vardefine:section|System requirements}}
 
|#Default = [[Category:Invalid section order]]
 
|#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|}}}}}">
+
}}{{#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 09:18, 11 November 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 -