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
(restore previous version for now)
(improved invalid OS handling, added visible error state)
Line 1: Line 1:
 
<includeonly><tr class="template-infotable-body table-gamedata-body-row">
 
<includeonly><tr class="template-infotable-body table-gamedata-body-row">
<th scope="row" class="table-gamedata-body-system">{{#switch: {{{1}}} | Windows | Linux | DOS = {{{1}}}{{#if: {{#var:{{{1}}}}} | | [[Category:Invalid template usage (Game data)]]}} | Booter = PC booter{{#if: {{#var:Booter}} | | [[Category:Invalid template usage (Game data)]]}} | Mac OS = Mac OS (Classic){{#if: {{#var:Mac OS}} | | [[Category:Invalid template usage (Game data)]]}}| OS X = macOS (OS X){{#if: {{#var:OS X}} | | [[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>
+
<th scope="row" class="table-gamedata-body-system">{{#switch: {{{1}}} | Windows | Linux | DOS = {{{1}}} | Booter = PC booter | Mac OS = Mac OS (Classic)| OS X = macOS (OS X)| GOG.com | Steam | Origin | Uplay = {{{1}}} | Microsoft Store = Microsoft Store | #Default=<div title="Error: OS '{{{1|}}}' is invalid" class="svg-icon svg-25 os-error"></div>}} {{#if:{{#var:Game}}|{{#if:{{#var:{{{1|}}}}}||{{#switch: {{{1}}}
 +
|GOG.com
 +
|Steam
 +
|Origin
 +
|Uplay=
 +
|Microsoft 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)]]}}
 +
|#Default=<div title="Error: OS '{{{1|}}}' not found in infobox" class="svg-icon svg-25 os-error"></div>[[Category:Invalid template usage (Game data)]]
 +
}}}}}}</th>
 
<td class="table-gamedata-body-location"><span class="template-infotable-monospace">{{{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| ]] | #Default = [[{{{1}}} config paths::true| ]] }}|{{#switch: {{{1}}} | GOG.com = [[GOGcom 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">{{{3}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{4|}}}|<br/><span class="template-infotable-monospace">{{{4}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{5|}}}|<br/><span class="template-infotable-monospace">{{{5}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{6|}}}|[[Category:Invalid template usage (Game data)]]}}</td>
 
<td class="table-gamedata-body-location"><span class="template-infotable-monospace">{{{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| ]] | #Default = [[{{{1}}} config paths::true| ]] }}|{{#switch: {{{1}}} | GOG.com = [[GOGcom 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">{{{3}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{4|}}}|<br/><span class="template-infotable-monospace">{{{4}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{5|}}}|<br/><span class="template-infotable-monospace">{{{5}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}}}{{#if: {{{6|}}}|[[Category:Invalid template usage (Game data)]]}}</td>
 
</tr><!--
 
</tr><!--

Revision as of 00:08, 11 April 2019

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