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


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Path"

From PCGamingWiki, the wiki about fixing PC games
(updated registry links to point to Windows registry section)
(fixed %USERPROFILE% and %WINDIR% section links)
Line 6: Line 6:
 
  |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 = [[Game data#Windows registry|{{Abbr|HKEY_LOCAL_MACHINE|Windows Registry path (use the Registry Editor to access)}}]]
  |userprofile = [[Game data#%USERPROFILE%|{{Abbr|%USERPROFILE%|Copy this path into a folder address bar to go to this location}}]]
+
  |userprofile = [[Game data#User profile|{{Abbr|%USERPROFILE%|Copy this path into a folder address bar to go to this location}}]]
 
  |appdata = [[Game data#Appdata|{{Abbr|%APPDATA%|Copy this path into a folder address bar to go to this location}}]]
 
  |appdata = [[Game data#Appdata|{{Abbr|%APPDATA%|Copy this path into a folder address bar to go to this location}}]]
 
  |localappdata = [[Game data#Appdata|{{Abbr|%LOCALAPPDATA%|Copy this path into a folder address bar to go to this location}}]]
 
  |localappdata = [[Game data#Appdata|{{Abbr|%LOCALAPPDATA%|Copy this path into a folder address bar to go to this location}}]]
Line 12: Line 12:
 
  |allusersprofile
 
  |allusersprofile
 
  |programdata = [[Game data#%PROGRAMDATA%|{{Abbr|%PROGRAMDATA%|Copy this path into a folder address bar to go to this location}}]]
 
  |programdata = [[Game data#%PROGRAMDATA%|{{Abbr|%PROGRAMDATA%|Copy this path into a folder address bar to go to this location}}]]
  |windir = [[Game data#%WINDIR%|{{Abbr|%WINDIR%|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}}]]
 
  |steam = [[Game data#Steam|{{Abbr|<Steam-folder>|The base Steam installation folder}}]]
 
  |steam = [[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 = [[Game data#Uplay|{{Abbr|<Uplay-folder>|The base Uplay (Ubisoft Game Launcher) installation folder}}]]
 
  |#Default = [[Category:Invalid template usage]]
 
  |#Default = [[Category:Invalid template usage]]
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 23:01, 8 March 2015

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 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 Used for 32-bit applications running on 64-bit operating systems

Windows filesystem

Argument Result Location
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 Stores 32-bit system libraries on 64-bit operating systems

OS X

Argument Result Location
osxhome User home folder ~/

Linux

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