Difference between revisions of "Template:Game data"
(added Steam Proton default row) |
(added note explaining Proton path structure) |
||
Line 6: | Line 6: | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} | ||
{{#if:{{#var:steam appid}}| | {{#if:{{#var:steam appid}}| | ||
− | {{#if:{{#var:Proton}}||<tr class="template-infotable-body"> | + | {{#if:{{#var:Proton}}||{{#vardefine:notes|yes}} |
− | <th scope="row">Linux (<abbr title="Windows version running through Steam Play Proton wrapper">Proton</abbr>)</th> | + | <tr class="template-infotable-body"> |
− | <td class="template-infotable-monospace">{{p|Steam}}/steamapps/compatdata/<abbr title="app ID may differ in some cases">{{#var:steam appid}}</abbr>/pfx/</td> | + | <th scope="row">Linux (<abbr title="Steam Windows version running through Steam Play Proton wrapper">Proton</abbr>)</th> |
+ | <td><span class="template-infotable-monospace">{{p|Steam}}/steamapps/compatdata/<abbr title="app ID may differ in some cases">{{#var:steam appid}}</abbr>/pfx/</span>{{#tag:ref|File/folder structure within this directory reflects the path(s) used for [[#Game data|Windows game data]] (use [https://wiki.winehq.org/Regedit Wine regedit] to access Windows registry paths). The app ID may differ in some cases.|name="Proton path note"|group=Note}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
}} | }} | ||
</table></div><noinclude>{{documentation}}</noinclude> | </table></div><noinclude>{{documentation}}</noinclude> |
Revision as of 10:37, 26 August 2018
System | Location |
---|
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 |