Difference between revisions of "Template:Path"
From PCGamingWiki, the wiki about fixing PC games
m (corrected link) |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1}}}}} | <includeonly>{{#switch:{{lc:{{{1}}}}} | ||
− | |game = [[Game data#Installation folder|{{Abbr|<path-to-game>|The base installation folder}}]] | + | |game = [[Glossary:Game data#Installation folder|{{Abbr|<path-to-game>|The base installation folder}}]] |
− | |uid = [[Game data#User ID|{{Abbr|<user-id>|The user ID or profile name (specific to your account or computer)}}]] | + | |uid = [[Glossary:Game data#User ID|{{Abbr|<user-id>|The user ID or profile name (specific to your account or computer)}}]] |
|hkey_current_user | |hkey_current_user | ||
− | |hkcu = [[Game data#Windows registry|{{Abbr|HKEY_CURRENT_USER|Windows Registry path (use the Registry Editor to access)}}]] | + | |hkcu = [[Glossary:Game data#Windows registry|{{Abbr|HKEY_CURRENT_USER|Windows Registry path (use the Registry Editor to access)}}]] |
|hkey_local_machine | |hkey_local_machine | ||
− | |hklm = [[Game data#Windows registry|{{Abbr|HKEY_LOCAL_MACHINE|Windows Registry path (use the Registry Editor to access)}}]] | + | |hklm = [[Glossary:Game data#Windows registry|{{Abbr|HKEY_LOCAL_MACHINE|Windows Registry path (use the Registry Editor to access)}}]] |
− | |wow64 = [[Game data#Windows registry|{{Abbr|Wow6432Node|Omit this folder for 32-bit versions of Windows}}]] | + | |wow64 = [[Glossary:Game data#Windows registry|{{Abbr|Wow6432Node|Omit this folder for 32-bit versions of Windows}}]] |
− | |userprofile = [[Game data#User profile|{{Abbr|%USERPROFILE%|Copy this path into a folder address bar to go to this location}}]] | + | |userprofile = [[Glossary:Game data#User profile|{{Abbr|%USERPROFILE%|Copy this path into a folder address bar to go to this location}}]] |
− | |username = [[Game data#User profile|{{Abbr|%USERNAME%|Copy this path into a folder address bar to go to this location}}]] | + | |username = [[Glossary:Game data#User profile|{{Abbr|%USERNAME%|Copy this path into a folder address bar to go to this location}}]] |
− | |appdata = [[Game data#User application data|{{Abbr|%APPDATA%|Copy this path into a folder address bar to go to this location}}]] | + | |appdata = [[Glossary:Game data#User application data|{{Abbr|%APPDATA%|Copy this path into a folder address bar to go to this location}}]] |
− | |localappdata = [[Game data#User application data|{{Abbr|%LOCALAPPDATA%|Copy this path into a folder address bar to go to this location}}]] | + | |localappdata = [[Glossary:Game data#User application data|{{Abbr|%LOCALAPPDATA%|Copy this path into a folder address bar to go to this location}}]] |
− | |public = [[Game data#Public|{{Abbr|%PUBLIC%|Copy this path into a folder address bar to go to this location}}]] | + | |public = [[Glossary:Game data#Public|{{Abbr|%PUBLIC%|Copy this path into a folder address bar to go to this location}}]] |
|allusersprofile | |allusersprofile | ||
− | |programdata = [[Game data#ProgramData|{{Abbr|%PROGRAMDATA%|Copy this path into a folder address bar to go to this location}}]] | + | |programdata = [[Glossary:Game data#ProgramData|{{Abbr|%PROGRAMDATA%|Copy this path into a folder address bar to go to this location}}]] |
− | |windir = [[Game data#Windows|{{Abbr|%WINDIR%|Copy this path into a folder address bar to go to this location}}]] | + | |windir = [[Glossary:Game data#Windows|{{Abbr|%WINDIR%|Copy this path into a folder address bar to go to this location}}]] |
− | |syswow64 = [[Game data#Windows data paths|{{Abbr|SysWOW64|Use System32 for 32-bit versions of Windows}}]] | + | |syswow64 = [[Glossary:Game data#Windows data paths|{{Abbr|SysWOW64|Use System32 for 32-bit versions of Windows}}]] |
− | |steam = [[Game data#Steam|{{Abbr|<Steam-folder>|The base Steam installation folder}}]] | + | |steam = [[Glossary:Game data#Steam|{{Abbr|<Steam-folder>|The base Steam installation folder}}]] |
− | |uplay = [[Game data#Uplay|{{Abbr|<Uplay-folder>|The base Uplay (Ubisoft Game Launcher) installation folder}}]] | + | |uplay = [[Glossary:Game data#Uplay|{{Abbr|<Uplay-folder>|The base Uplay (Ubisoft Game Launcher) installation folder}}]] |
− | |osxhome = [[Game data#OS X paths|{{Abbr|$HOME|Refers to the users home folder, e.g. /Users/user/}}]] | + | |osxhome = [[Glossary:Game data#OS X paths|{{Abbr|$HOME|Refers to the users home folder, e.g. /Users/user/}}]] |
|linuxhome | |linuxhome | ||
− | |home = [[Game data#Linux paths|{{Abbr|$HOME|Refers to the users home folder, e.g. /home/user/}}]] | + | |home = [[Glossary:Game data#Linux paths|{{Abbr|$HOME|Refers to the users home folder, e.g. /home/user/}}]] |
− | |xdgdatahome = [[Game data#Linux paths|{{Abbr|$XDG_DATA_HOME|Defaults to ~/.local/share when unset}}]] | + | |xdgdatahome = [[Glossary:Game data#Linux paths|{{Abbr|$XDG_DATA_HOME|Defaults to ~/.local/share when unset}}]] |
− | |xdgconfighome = [[Game data#Linux paths|{{Abbr|$XDG_CONFIG_HOME|Defaults to ~/.config when unset}}]] | + | |xdgconfighome = [[Glossary:Game data#Linux paths|{{Abbr|$XDG_CONFIG_HOME|Defaults to ~/.config when unset}}]] |
|#Default = [[Category:Invalid template usage (game data)]] | |#Default = [[Category:Invalid template usage (game data)]] | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 21:47, 2 September 2016
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 |
steamlibrary |
The SteamLibrary folder the user installed the game under under; or the base Steam installation folder if no alternate location was used. | |
ubisoftconnect |
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 |
"Documents" folder | |
appdata |
%APPDATA% | AppData\Roaming |
localappdata |
%LOCALAPPDATA% | AppData\Local |
userprofile\appdata\locallow |
AppData\LocalLow | |
public |
%PUBLIC% | Public (aka shared) user profile folder |
allusersprofile or programdata |
%PROGRAMDATA% | Program data folder |
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
- {{LocalizedPath}}
Visit Template:Path/Documentation to edit this text. (How does this work?)