Difference between revisions of "Template:Game data"
(added previous section validity check (ensures templates are being used in the correct order on game pages)) |
m (improved Steam Play (Linux) note) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-gamedata"> | + | <includeonly><div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-gamedata"> |
<tr class="template-infotable-head table-gamedata-head-row"> | <tr class="template-infotable-head table-gamedata-head-row"> | ||
<th scope="col" style="width: 230px;" class="table-gamedata-head-system">System</th> | <th scope="col" style="width: 230px;" class="table-gamedata-head-system">System</th> | ||
Line 5: | Line 5: | ||
</tr>{{#vardefine:Game data note|}} | </tr>{{#vardefine:Game data note|}} | ||
{{#switch:{{#var:section}} | {{#switch:{{#var:section}} | ||
+ | |Infobox game | ||
+ | |Introduction | ||
|Availability/done | |Availability/done | ||
|Monetization | |Monetization | ||
Line 10: | Line 12: | ||
|Microtransactions={{#vardefine:section|Game data/config}} | |Microtransactions={{#vardefine:section|Game data/config}} | ||
|Game data/config={{#vardefine:section|Game data/saves}} | |Game data/config={{#vardefine:section|Game data/saves}} | ||
− | |#Default = [[Category:Invalid section order]] | + | |#Default = {{#ifeq:{{NAMESPACE}}||[[Category:Invalid section order]]}} |
}} | }} | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} | ||
Line 17: | Line 19: | ||
<tr class="template-infotable-body table-gamedata-body-row"> | <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> | <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| | + | <td class="table-gamedata-body-location"><span class="template-infotable-monospace">{{p|SteamLibrary}}/steamapps/compatdata/{{abbr|{{#var:steam appid}}|app ID may differ in some cases}}/pfx/</span>{{#tag:ref|'''Notes regarding Steam Play (Linux) data:'''<ul><li>File/folder structure within this directory reflects the path(s) listed for [[#Game data|Windows and/or Steam game data]].</li>{{#if:{{#var:Steam Cloud}}|<li>Games with [[Store:Steam#Steam Cloud|Steam Cloud]] support may also store data in {{Folder|~/.steam/steam/userdata/{{p|uid}}/{{abbr|{{#var:steam appid}}|app ID may differ in some cases|template=yes}}/}}.</li>}}<li>Use [https://wiki.winehq.org/Regedit Wine's registry editor] to access any Windows registry paths.</li><li>The app ID ({{#var:steam appid}}) may differ in some cases.</li><li>Treat backslashes as forward slashes.</li><li>See the [[Glossary:Game data#Windows data paths|glossary page]] for details on Windows data paths.</li></ul>|name="Proton path note"|group=Note}}</td> |
</tr> | </tr> | ||
}} | }} | ||
}} | }} | ||
− | </table></div>{{#ifeq:{{#var:section}}|Game data/saves|{{#vardefine:section|Game data/done}} | + | </table></div>{{#ifeq:{{#var:section}}|Game data/saves|{{#vardefine:section|Game data/done}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
− | |||
− | |||
− | |||
− | }}</noinclude> |
Latest revision as of 16:33, 20 April 2024
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 |