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:Game data/config"

From PCGamingWiki, the wiki about fixing PC games
m (made template actually readable and understandable)
m (trimmed the output of 2, 3, 4 and 5 parameters)
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><tr class="template-infotable-body table-gamedata-body-row">
<tr class="template-infotable-body">
+
<th scope="row" class="table-gamedata-body-system">{{#switch: {{{1}}} | Windows | Linux | DOS | PC booter = {{{1}}} | Mac OS = Mac OS (Classic)| OS X = macOS (OS X)| GOG.com | Steam | Origin | Uplay | Microsoft Store | Epic Games Store = {{{1}}} | Epic Games Launcher = Epic Games Store | #Default=<div title="Error: OS '{{{1|}}}' is invalid" class="svg-icon svg-25 os-error"></div>}} {{#if:{{#var:Game}}|{{#if:{{#var:{{{1|}}}}}{{#var:{{{1|}}} cancelled}}||{{#switch: {{{1}}}
<th scope="row">
+
|GOG.com
{{#switch: {{{1}}}  
+
|Steam
| Windows  
+
|Origin
| Linux  
+
|Uplay=
| DOS = {{{1}}}
+
|Microsoft Store
{{#if: {{#var:{{{1}}}}}
+
|Epic Games Launcher
|
+
|Epic Games Store = {{#if: {{#var:Windows}} | | <div title="Error: OS 'Windows' not found in infobox" class="svg-icon svg-25 os-error"></div>[[Category:Invalid template usage (Game data)]]}}
| [[Category:Invalid template usage (Game data)]]
+
|Windows={{#if: {{#var:Windows}}{{#var:Windows 3.x}} | | <div title="Error: OS 'Windows' or 'Windows 3.x' not found in infobox" class="svg-icon svg-25 os-error"></div>[[Category:Invalid template usage (Game data)]]}}
}}
+
|#Default=<div title="Error: OS '{{{1|}}}' not found in infobox" class="svg-icon svg-25 os-error"></div>[[Category:Invalid template usage (Game data)]]
| Booter = PC booter
+
}}}}}}</th>
{{#if: {{#var:Booter}}  
+
<td class="table-gamedata-body-location">{{#if:{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}|<span class="template-infotable-monospace">{{Trim|{{{2|}}}}}</span>{{#if: {{{2|}}}|{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}[[Game data::true| ]]{{#switch: {{{1}}} | GOG.com = [[GOGcom config paths::true| ]] | Epic Games Launcher = [[Epic Games Store config paths::true| ]] | #Default = [[{{{1}}} config paths::true| ]] }}|{{#switch: {{{1}}} | GOG.com = [[GOGcom config paths::false| ]] | Epic Games Launcher = [[Epic Games Store config paths::false| ]] | #Default = [[{{{1}}} config paths::false| ]] }}{{#if:{{{3|}}}{{{4|}}}{{{5|}}}|[[Category:Invalid template usage (Game data)]]}}}}{{#if: {{{3|}}}|<br/><span class="template-infotable-monospace">{{Trim|{{{3}}}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{4|}}}|<br/><span class="template-infotable-monospace">{{Trim|{{{4}}}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{5|}}}|<br/><span class="template-infotable-monospace">{{Trim|{{{5}}}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{6|}}}|[[Category:Invalid template usage (Game data)]]}}|{{#if:{{#var:{{{1|}}} DOSBox}}|<span class="template-infotable-monospace">''{{p|game}} (mounted in [[DOSBox]])''</span>{{Game data/note|DOSBox}}}}}}</td>
|  
+
</tr><!--
| [[Category:Invalid template usage (Game data)]]
+
-->{{#ifeq: {{#var:{{{1}}} config}} | true | [[Category:Invalid template usage (Game data)]]|{{#vardefine:{{{1}}} config|true}} }}<!--
}}  
+
-->{{#if:{{#var:saves}}|[[Category:Invalid template usage (Game data)]]}}<!--
| Mac OS = Mac OS (Classic)
+
-->{{#ifeq: {{{1|}}} | Windows | {{#set:
{{#if: {{#var:Mac OS}}  
+
Windows config paths test = {{Game data/resolve/windows|{{{2|}}}}}
|  
+
|Windows config paths test = {{Game data/resolve/windows|{{{3|}}}}}
| [[Category:Invalid template usage (Game data)]]
+
|Windows config paths test = {{Game data/resolve/windows|{{{4|}}}}}
}}
+
|Windows config paths test = {{Game data/resolve/windows|{{{5|}}}}}
| OS X = macOS (OS X)
+
|Windows config paths test = {{Game data/resolve/windows|{{{6|}}}}}
{{#if: {{#var:OS X}}  
+
}}}}</includeonly><noinclude>{{documentation}}</noinclude>
|  
 
| [[Category:Invalid template usage (Game data)]]
 
}}
 
| GOG.com
 
| Steam
 
| Origin
 
| Uplay = {{{1}}}
 
| Microsoft Store = Microsoft Store
 
{{#if: {{#var:Windows}}  
 
|  
 
| [[Category:Invalid template usage (Game data)]]
 
}}  
 
| #Default=
 
{{#ifeq: {{NAMESPACE}}  
 
|
 
| [[Category:Invalid template usage (Game data)]]
 
}}
 
}}
 
</th>
 
<td class="template-infotable-monospace">
 
{{{2|}}}
 
{{#if: {{{2|}}}
 
|[[Game data::true| ]][[{{{1}}} config paths::true| ]]
 
|[[{{{1}}} config paths::false| ]]
 
{{#if:{{{3|}}}{{{4|}}}{{{5|}}}
 
|[[Category:Invalid template usage (Game data)]]
 
}}
 
}}
 
{{#if: {{{3|}}}
 
|<br/>{{{3}}}
 
}}
 
{{#if: {{{4|}}}
 
|<br/>{{{4}}}
 
}}
 
{{#if: {{{5|}}}
 
|<br/>{{{5}}}
 
}}
 
{{#if: {{{6|}}}
 
|[[Category:Invalid template usage (Game data)]]
 
}}
 
</td>
 
</tr>
 
<!--
 
-->
 
{{#if:{{#var:{{{1}}} config}}
 
|[[Category:Invalid template usage (Game data)]]
 
|{{#vardefine:{{{1}}} config|yes}}
 
}}
 
<!--
 
-->
 
{{#if:{{#var:saves}}
 
|[[Category:Invalid template usage (Game data)]]
 
}}
 
<!--
 
-->
 
</includeonly>
 
<noinclude>
 
{{documentation}}
 
</noinclude>
 

Revision as of 12:46, 22 May 2020

Documentation for the above template (sometimes hidden from view).