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

Difference between revisions of "Template:Path"

From PCGamingWiki, the wiki about fixing PC games
m (#Shared applications)
m (renamed onedrive var and changed value to hackable)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{#switch:{{lc:{{{1}}}}}
 
<includeonly>{{#switch:{{lc:{{{1}}}}}
 
 
<!-- General -->
 
<!-- General -->
 
  |game = [[Glossary:Game data#Installation folder|{{Abbr|&lt;path-to-game&gt;|The base installation folder|template=yes}}]]{{#vardefine:Game data note|gamedir}}
 
  |game = [[Glossary:Game data#Installation folder|{{Abbr|&lt;path-to-game&gt;|The base installation folder|template=yes}}]]{{#vardefine:Game data note|gamedir}}
 
  |uid  = [[Glossary:Game data#User ID|{{Abbr|&lt;user-id&gt;|The user ID or profile name (specific to your account or computer)|template=yes}}]]
 
  |uid  = [[Glossary:Game data#User ID|{{Abbr|&lt;user-id&gt;|The user ID or profile name (specific to your account or computer)|template=yes}}]]
  |steam = [[Glossary:Game data#Steam|{{Abbr|&lt;Steam-folder&gt;|The base Steam installation folder|template=yes}}]]
+
  |steam = [[Glossary:Game data#Steam client|{{Abbr|&lt;Steam-folder&gt;|The base Steam installation folder|template=yes}}]]
  |uplay = [[Glossary:Game data#Uplay|{{Abbr|&lt;Uplay-folder&gt;|The base Uplay (Ubisoft Game Launcher) installation folder|template=yes}}]]
+
  |uplay
 
+
|ubisoftconnect = [[Glossary:Game data#Ubisoft Connect|{{Abbr|&lt;Ubisoft-Connect-folder&gt;|The base Ubisoft Connect (Ubisoft Game Launcher) installation folder|template=yes}}]]
 
<!-- Windows > Registry -->
 
<!-- Windows > Registry -->
 
  |hkey_current_user
 
  |hkey_current_user
Line 13: Line 12:
 
  |hklm = [[Glossary:Game data#Windows registry|{{Abbr|HKEY_LOCAL_MACHINE|Windows Registry path (use the Registry Editor to access)|template=yes}}]]{{#vardefine:Game data note|hklm}}
 
  |hklm = [[Glossary:Game data#Windows registry|{{Abbr|HKEY_LOCAL_MACHINE|Windows Registry path (use the Registry Editor to access)|template=yes}}]]{{#vardefine:Game data note|hklm}}
 
  |wow64 = [[Glossary:Game data#Windows registry|{{Abbr|Wow6432Node|Omit this folder for 32-bit versions of Windows|template=yes}}]]
 
  |wow64 = [[Glossary:Game data#Windows registry|{{Abbr|Wow6432Node|Omit this folder for 32-bit versions of Windows|template=yes}}]]
 
 
<!-- Windows > Drive -->
 
<!-- Windows > Drive -->
 
  |username = [[Glossary:Game data#User profile|{{Abbr|%USERNAME%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |username = [[Glossary:Game data#User profile|{{Abbr|%USERNAME%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |userprofile = [[Glossary:Game data#User profile|{{Abbr|%USERPROFILE%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |userprofile = [[Glossary:Game data#User profile|{{Abbr|%USERPROFILE%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
  |userprofile\documents = [[Glossary:Game data#User profile|{{Abbr|%USERPROFILE%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]\{{Abbr|Documents|replace with My Documents for Windows XP or Wine/Proton|template=yes}}
+
  |userprofile\documents = [[Glossary:Game data#User profile|{{Abbr|%USERPROFILE%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]\{{Abbr|Documents|replace with My Documents for Windows XP|template=yes}}{{#ifeq:{{#var:section|none}}|Game data/saves|{{#vardefine:SavesInOneDrive|hackable}}}}
 
  |appdata = [[Glossary:Game data#User application data|{{Abbr|%APPDATA%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |appdata = [[Glossary:Game data#User application data|{{Abbr|%APPDATA%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 +
|userprofile\appdata\locallow = [[Glossary:Game data#User application data|{{Abbr|%USERPROFILE%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]\AppData\LocalLow
 
  |localappdata = [[Glossary:Game data#User application data|{{Abbr|%LOCALAPPDATA%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |localappdata = [[Glossary:Game data#User application data|{{Abbr|%LOCALAPPDATA%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |public = [[Glossary:Game data#Shared profile|{{Abbr|%PUBLIC%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |public = [[Glossary:Game data#Shared profile|{{Abbr|%PUBLIC%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]
 
  |allusersprofile
 
  |allusersprofile
 +
|programdata = [[Glossary:Game data#Shared application data|{{Abbr|%PROGRAMDATA%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]{{#vardefine:Game data note|gamedir}}
 
  |programfiles = [[Glossary:Game data#Shared applications|{{Abbr|%PROGRAMFILES%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]{{#vardefine:Game data note|gamedir}}
 
  |programfiles = [[Glossary:Game data#Shared applications|{{Abbr|%PROGRAMFILES%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]{{#vardefine:Game data note|gamedir}}
|programdata = [[Glossary:Game data#Shared application data|{{Abbr|%PROGRAMDATA%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]{{#vardefine:Game data note|gamedir}}
 
 
  |windir = [[Glossary:Game data#Windows|{{Abbr|%WINDIR%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]{{#vardefine:Game data note|gamedir}}
 
  |windir = [[Glossary:Game data#Windows|{{Abbr|%WINDIR%|Windows: copy this path into a folder address bar to go to this location|template=yes}}]]{{#vardefine:Game data note|gamedir}}
 
  |syswow64 = [[Glossary:Game data#Windows data paths|{{Abbr|SysWOW64|Use System32 for 32-bit versions of Windows|template=yes}}]]
 
  |syswow64 = [[Glossary:Game data#Windows data paths|{{Abbr|SysWOW64|Use System32 for 32-bit versions of Windows|template=yes}}]]
 
 
<!-- OS X -->
 
<!-- OS X -->
 
  |osxhome = [[Glossary:Game data#macOS (OS X) paths|{{Abbr|$HOME|Refers to the user's home folder, e.g. ~/ or /Users/user/|template=yes}}]]
 
  |osxhome = [[Glossary:Game data#macOS (OS X) paths|{{Abbr|$HOME|Refers to the user's home folder, e.g. ~/ or /Users/user/|template=yes}}]]
 
 
<!-- Linux -->
 
<!-- Linux -->
 
  |linuxhome = [[Glossary:Game data#Linux paths|{{Abbr|$HOME|Refers to the user's home folder, e.g. ~/ or /home/user/|template=yes}}]]
 
  |linuxhome = [[Glossary:Game data#Linux paths|{{Abbr|$HOME|Refers to the user's home folder, e.g. ~/ or /home/user/|template=yes}}]]
 
  |xdgdatahome = [[Glossary:Game data#Linux paths|{{Abbr|$XDG_DATA_HOME|Defaults to ~/.local/share when unset|template=yes}}]]
 
  |xdgdatahome = [[Glossary:Game data#Linux paths|{{Abbr|$XDG_DATA_HOME|Defaults to ~/.local/share when unset|template=yes}}]]
 
  |xdgconfighome = [[Glossary:Game data#Linux paths|{{Abbr|$XDG_CONFIG_HOME|Defaults to ~/.config when unset|template=yes}}]]
 
  |xdgconfighome = [[Glossary:Game data#Linux paths|{{Abbr|$XDG_CONFIG_HOME|Defaults to ~/.config when unset|template=yes}}]]
 
 
<!-- Default -->
 
<!-- Default -->
  |#Default = [[Category:Invalid template usage (Path)]]
+
  |#default = [[Category:Invalid template usage (Path)]]
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 09:07, 23 May 2022

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

Template primarily intended for {{Game data}} but can also be used with {{File}}, {{Folder}}, and {{Registry}}.

See the editing guide for real-world paths and examples.

Syntax

{{Path|localappdata}} or {{P|localappdata}} produces %LOCALAPPDATA%

Arguments

General

Argument Result Location
game <path-to-game> The base installation folder
uid <user-id> The user ID or profile name (specific to your account or computer).
Typically used to refer to Steam/Ubisoft Connect/game-specific user ID or profile name.
steam <Steam-folder> The base Steam installation folder
ubisoftconnect <Ubisoft-Connect-folder> The base Ubisoft Connect (Ubisoft Game Launcher) installation folder

Windows registry

Argument Result Location
hkcu HKEY_CURRENT_USER HKEY_CURRENT_USER registry path
hklm HKEY_LOCAL_MACHINE HKEY_LOCAL_MACHINE registry path
wow64 Wow6432Node Used for 32-bit applications running on 64-bit operating systems

Windows filesystem

Argument Result Location
username %USERNAME% Not a location, but resolves to the username in Windows
userprofile %USERPROFILE% Base user profile folder
userprofile\documents %USERPROFILE%\Documents "Documents" folder
appdata %APPDATA% AppData\Roaming
localappdata %LOCALAPPDATA% AppData\Local
userprofile\appdata\locallow %USERPROFILE%\AppData\LocalLow AppData\LocalLow
public %PUBLIC% Public (aka shared) user profile folder
allusersprofile
or
programdata
%PROGRAMDATA% Program data folder
programfiles %PROGRAMFILES% Shared applications folder. Use game instead (<path-to-game>).
windir %WINDIR% Windows directory
syswow64 SysWOW64 Stores 32-bit system libraries on 64-bit operating systems

OS X

Argument Result Location
osxhome $HOME User home folder ~/

Linux

Argument Result Location
linuxhome $HOME User home folder ~/
xdgdatahome $XDG_DATA_HOME ~/.local/share/
xdgconfighome $XDG_CONFIG_HOME ~/.config/
Redirects
  • {{P}}
Related