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"

From PCGamingWiki, the wiki about fixing PC games
m
(removed Cargo table (not used))
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-gamedata">
{| class="template-infotable slottable wikitable"  
+
<tr class="template-infotable-head table-gamedata-head-row">
! scope="col" width="230" {{!}}&nbsp;
+
<th scope="col" style="width: 230px;" class="table-gamedata-head-system">System</th>
! scope="col" width="490" {{!}}Location&nbsp;
+
<th scope="col" style="width: 590px;" class="table-gamedata-head-location">Location</th>
|-
+
</tr>{{#vardefine:Game data note|}}
{{{1}}}
+
{{#switch:{{#var:section}}
|}</includeonly><noinclude>{{documentation}}</noinclude>
+
|Infobox game
 +
|Introduction
 +
|Availability/done
 +
|Monetization
 +
|DLC/done
 +
|Microtransactions={{#vardefine:section|Game data/config}}
 +
|Game data/config={{#vardefine:section|Game data/saves}}
 +
|#Default = [[Category:Invalid section order]]
 +
}}
 +
{{{content|{{{1}}}}}}
 +
{{#if:{{#var:steam appid}}|
 +
{{#if:{{#var:Proton}}||{{#vardefine:notes|true}}
 +
<tr class="template-infotable-body table-gamedata-body-row">
 +
<th scope="row" class="table-gamedata-body-system">{{abbr|Steam Play (Linux)|Windows version on Steam running through the Proton wrapper of Steam Play on Linux}}</th>
 +
<td class="table-gamedata-body-location"><span class="template-infotable-monospace">{{p|Steam}}/steamapps/compatdata/{{abbr|{{#var:steam appid}}|app ID may differ in some cases}}/pfx/</span>{{#tag:ref|File/folder structure within this directory reflects the path(s) listed for [[#Game data|Windows and/or Steam game data]] (use [https://wiki.winehq.org/Regedit Wine regedit] to access Windows registry paths). Games with [[Store:Steam#Steam Cloud|Steam Cloud]] support may store data in <code>~/.steam/steam/userdata/{{p|uid}}/{{abbr|{{#var:steam appid}}|app ID may differ in some cases|template=yes}}/</code> in addition to or instead of this directory. The app ID ({{#var:steam appid}}) may differ in some cases. Treat backslashes as forward slashes. See the [[Glossary:Game data#Windows data paths|glossary page]] for details.|name="Proton path note"|group=Note}}</td>
 +
</tr>
 +
}}
 +
}}
 +
</table></div>{{#ifeq:{{#var:section}}|Game data/saves|{{#vardefine:section|Game data/done}}}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 08:01, 4 September 2021

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

Specify each row with {{Game data/config| (for configuration files) or {{Game data/saves| (for save game data). The first parameter is for the data type, the second parameter is the path.

Where possible use environmental variables instead of manual paths (e.g. %USERPROFILE%\Saved Games\, not C:\Users\your user name\Saved Games\) since these will automatically expand when used to match the path on the user's end.

Using notes

Add a note if the folder path needs further explanation, e.g. Ultima Underworld: The Stygian Abyss has a SAVE0 folder that isn't actually one of the user's save files.
If the game has a Linux version, specify whether it supports the XDG specification using the Template:XDG.

Example usage

{{Game data|
{{Game data/saves|DOS|{{p|game}}\DATA\SAVEGAME}}
}}

This produces:

System Location
DOS <path-to-game>\DATA\SAVEGAME