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/saves"

From PCGamingWiki, the wiki about fixing PC games
m (Undo revision 1043944 by Garrett (talk) broke the automatic note entirely)
Tag: Undo
(changed section order validity check to new, unified method)
Line 14: Line 14:
 
<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>
 
<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}} }}<!--
 +
-->{{#ifeq:{{#var:section}}|Game data/saves||[[Category:Invalid section order]]}}<!--
 
-->{{#ifeq: {{{1|}}} | Windows | {{#set:
 
-->{{#ifeq: {{{1|}}} | Windows | {{#set:
 
Windows save paths test = {{Game data/resolve/windows|{{{2|}}}}}
 
Windows save paths test = {{Game data/resolve/windows|{{{2|}}}}}

Revision as of 02:22, 27 August 2021

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