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

Difference between revisions of "Template:Game data/saves"

From PCGamingWiki, the wiki about fixing PC games
m (simplified a tiny bit)
(better save data property handling)
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
|#Default=<div title="Error: OS '{{{1|}}}' 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>
 
}}}}}}</th>
<td class="table-gamedata-body-location">{{#if:{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}|<span class="template-infotable-monospace">{{{2|}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}{{#if: {{{2|}}}|[[Game data::true| ]]{{#switch: {{{1}}} | GOG.com = [[GOGcom save paths::true| ]] | Epic Games Launcher = [[Epic Games Store save paths::true| ]] | #Default = [[{{{1}}} save paths::true| ]] }}|{{#switch: {{{1}}} | GOG.com = [[GOGcom save paths::false| ]] | Epic Games Launcher = [[Epic Games Store save paths::false| ]] | #Default = [[{{{1}}} save 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)]]}}|{{#if:{{#var:{{{1|}}} DOSBox}}|<span class="template-infotable-monospace">''{{p|game}} (mounted in [[DOSBox]])''</span>{{Game data/note|DOSBox}}}}}}</td>
+
<td class="table-gamedata-body-location">{{#if:{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}|<span class="template-infotable-monospace">{{Trim|{{{2|}}}}}</span>{{#if:{{#var:Game data note}}|{{Game data/note|{{#var:Game data note}}_{{{1|}}}}}}}{{#if: {{{2|}}}|{{#vardefine:save data|true}}{{#switch: {{{1}}} | GOG.com = [[GOGcom save paths::true| ]] | Epic Games Launcher = [[Epic Games Store save paths::true| ]] | #Default = [[{{{1}}} save paths::true| ]] }}|{{#switch: {{{1}}} | GOG.com = [[GOGcom save paths::false| ]] | Epic Games Launcher = [[Epic Games Store save paths::false| ]] | #Default = [[{{{1}}} save 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)]]}}|{{#ifeq:{{{2|}}}{{#var:save data}}||{{#vardefine:save data|false}}}}{{#if:{{#var:{{{1|}}} DOSBox}}|<span class="template-infotable-monospace">''{{p|game}} (mounted in [[DOSBox]])''</span>{{Game data/note|DOSBox}}}}}}</td>
 
</tr><!--
 
</tr><!--
 
-->{{#ifeq: {{#var:{{{1}}} saves}} | true | [[Category:Invalid template usage (Game data)]] | {{#vardefine:{{{1}}} saves|true}}{{#vardefine:saves|true}} }}<!--
 
-->{{#ifeq: {{#var:{{{1}}} saves}} | true | [[Category:Invalid template usage (Game data)]] | {{#vardefine:{{{1}}} saves|true}}{{#vardefine:saves|true}} }}<!--

Revision as of 10:27, 6 June 2020

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