Template:Path/doc: Difference between revisions
Jump to navigation
Jump to search
m (→See also) |
|||
(18 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Doc/subpage}} | {{Doc/subpage}} | ||
The path to the folder or file. {{tl|link=file}} aliases here. | The path to the folder or file. {{tl|link=file}} aliases here. | ||
== Parameters and Examples == | == Parameters and Examples == | ||
Line 13: | Line 10: | ||
|- | |- | ||
| align=center | {{Param}} | | align=center | {{Param}} | ||
| The path to the folder. | | The path to the folder or file. | ||
| {{CodeBlock|margin=5px| <nowiki>{{Path|C:\Program Files\Steam}}</nowiki> }} | | {{CodeBlock|margin=5px|<nowiki>{{Path|C:\Program Files\Steam}}</nowiki> }} | ||
| {{Capsule|margin=5px| {{Path|C:\Program Files\Steam}} }} | | {{Capsule|margin=5px| {{Path|C:\Program Files\Steam}} }} | ||
|- | |- | ||
| align=center | {{Param|2}} | | align=center | {{Param|2}} | ||
| File extension, if any. | | File extension, if any. Omit the dot. | ||
| {{CodeBlock|margin=5px| <nowiki>{{Path|D:\Program Files\Steam\steam|exe}}</nowiki> }} | | {{CodeBlock|margin=5px|<nowiki>{{Path|D:\Program Files\Steam\steam|exe}}</nowiki><br /><nowiki>{{Path|de_dust2|bsp}}</nowiki><br /><nowiki>{{Path|materials\debug\debugempty|vtf}}</nowiki> }} | ||
| {{Capsule|margin=5px| {{Path|D:\Program Files\Steam\steam|exe}} }} | | {{Capsule|margin=5px| {{Path|D:\Program Files\Steam\steam|exe}}<br />{{Path|de_dust2|bsp}}<br />{{path|materials\debug\debugempty|vtf}} }} | ||
|- | |- | ||
| align=center | {{Param|select}} | | align=center | {{Param|select}} | ||
| Text selection mode based on the CSS property {{Code|preset=1|user-select}}.<br>No effect on some browsers.{{warning|{{code|select{{=}}none}} is likely to cause user frustration; use sparingly.}} | | Text selection mode based on the CSS property {{Code|preset=1|user-select}}.<br>No effect on some browsers.{{warning|{{code|select{{=}}none}} is likely to cause user frustration; use sparingly.}} | ||
| {{CodeBlock|margin=5px| <nowiki>{{Path|select=none|C:\Program Files}}</nowiki> }}{{CodeBlock|margin=5px| <nowiki>{{Path|select=all|C:\Program Files}}</nowiki> }} | | {{CodeBlock|margin=5px|<nowiki>{{Path|select=none|C:\Program Files}}</nowiki> }}{{CodeBlock|margin=5px| <nowiki>{{Path|select=all|C:\Program Files}}</nowiki> }} | ||
| {{Capsule|margin=5px| {{Path|select=none|C:\Program Files}} }} {{Capsule|margin=5px| {{Path|select=all|C:\Program Files}} }} | | {{Capsule|margin=5px|{{Path|select=none|C:\Program Files}} }} {{Capsule|margin=5px|{{Path|select=all|C:\Program Files}} }} | ||
|- | |- | ||
| align=center | {{Param|icon}}<br> {{Param|customico}} | | align=center | {{Param|icon}}<br> {{Param|customico}} | ||
| Changes the icon. The tooltip (which appears if you are hovering the text or the icon itself), will have it's text changed aswell. <br><br>If the images is disabled in your browser or when a new icon file is being uploaded, it may fallback to Unicode symbols or simple text.<br><br> {{Param|customico}} is used to change to any icon if you want. Tooltip will likely be limited with this method, which only refers custom icon as a generic file, and may cause a scaling bug (more noticeable when zooming in). | | Changes the icon. The tooltip (which appears if you are hovering the text or the icon itself), will have it's text changed aswell. <br><br>If the images is disabled in your browser or when a new icon file is being uploaded, it may fallback to Unicode symbols or simple text.<br><br> {{Param|customico}} is used to change to any icon if you want. Tooltip will likely be limited with this method, which only refers custom icon as a generic file, and may cause a scaling bug (more noticeable when zooming in). | ||
| | | | ||
'''Executable:''' {{CodeBlock|margin=5px| <nowiki>{{Path|hl2|exe|icon=exe}}</nowiki> }} | '''Executable:''' {{CodeBlock|margin=5px|<nowiki>{{Path|hl2|exe|icon=exe}}</nowiki> }} | ||
'''Registry path:''' {{CodeBlock|margin=5px| <nowiki>{{Path|Computer\HKEY_CURRENT_USER\SOFTWARE\Valve\Source|icon=reg}}</nowiki> }} | '''Registry path:''' {{CodeBlock|margin=5px|<nowiki>{{Path|Computer\HKEY_CURRENT_USER\SOFTWARE\Valve\Source|icon=reg}}</nowiki> }} | ||
'''Registry value:''' {{CodeBlock|margin=5px| <nowiki>{{Path|DXLevel_V1|icon=regv}}</nowiki> }} | '''Registry value:''' {{CodeBlock|margin=5px|<nowiki>{{Path|DXLevel_V1|icon=regv}}</nowiki> }} | ||
'''Audio/Music:''' {{CodeBlock|margin=5px| <nowiki>{{Path|Half-Life01|mp3|icon=audio}}</nowiki> }} | '''Audio/Music:''' {{CodeBlock|margin=5px|<nowiki>{{Path|Half-Life01|mp3|icon=audio}}</nowiki> }} | ||
'''Videos:''' {{CodeBlock|margin=5px| <nowiki>{{Path|valve|bik|icon=video}}</nowiki> }} | '''Videos:''' {{CodeBlock|margin=5px|<nowiki>{{Path|valve|bik|icon=video}}</nowiki> }} | ||
'''File (generic):''' {{CodeBlock|margin=5px| <nowiki>{{Path|example|sound.cache|icon=file}}</nowiki> }} | '''File (generic):''' {{CodeBlock|margin=5px|<nowiki>{{Path|example|sound.cache|icon=file}}</nowiki> }} | ||
'''Image:''' {{CodeBlock|margin=5px| <nowiki>{{Path|d1_trainstation_010000|jpg|icon=image}}</nowiki> }} | '''Image:''' {{CodeBlock|margin=5px|<nowiki>{{Path|d1_trainstation_010000|jpg|icon=image}}</nowiki> }} | ||
'''Texture (same icon, | '''Texture (currently same icon, but this will likely change):''' {{CodeBlock|margin=5px|<nowiki>{{Path|alyx_sheet|vtf|icon=texture}}</nowiki> }} | ||
'''Custom icon:''' {{CodeBlock|margin=5px| <nowiki>{{Path|hl2|exe|icon=custom|customico=HL2-hires.png}}</nowiki> }} | '''Custom icon:''' {{CodeBlock|margin=5px|<nowiki>{{Path|hl2|exe|icon=custom|customico=HL2-hires.png}}</nowiki> }} | ||
| | | | ||
{{Capsule|margin=5px| {{Path|hl2|exe|icon=exe}} }} | {{Capsule|margin=5px| {{Path|hl2|exe|icon=exe}} }} | ||
Line 51: | Line 48: | ||
|- | |- | ||
|} | |} | ||
== See also == | |||
* [[:Template:Registry Key]] | |||
* [[:Template:Registry Value]] | |||
{{Doc/Sandbox other| | {{Doc/Sandbox other| | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
}} | }} |
Latest revision as of 11:30, 4 August 2024

This is a documentation subpage for Template:Path.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
The path to the folder or file. {{file}}
aliases here.
Parameters and Examples
Parameter | Description | Examples | Preview |
---|---|---|---|
{{{1}}} | The path to the folder or file. | ![]() C:\Program Files\Steam | |
{{{2}}} | File extension, if any. Omit the dot. | ||
{{{select}}} | Text selection mode based on the CSS property user-select. No effect on some browsers. ![]() |
![]() C:\Program Files ![]() C:\Program Files | |
{{{icon}}} {{{customico}}} |
Changes the icon. The tooltip (which appears if you are hovering the text or the icon itself), will have it's text changed aswell. If the images is disabled in your browser or when a new icon file is being uploaded, it may fallback to Unicode symbols or simple text. {{{customico}}} is used to change to any icon if you want. Tooltip will likely be limited with this method, which only refers custom icon as a generic file, and may cause a scaling bug (more noticeable when zooming in). |
Executable: | Registry path: Registry value: Audio/Music: Videos: File (generic): Image: Texture (currently same icon, but this will likely change): Custom icon:
![]() hl2.exe ![]() HKEY_CURRENT_USER\SOFTWARE\Valve\Source ![]() DXLevel_V1 ![]() Half-Life01.mp3 ![]() valve.bik ![]() example.sound.cache ![]() d1_trainstation_010000.jpg ![]() alyx_sheet.vtf ![]() p3.exe |
See also