Template:Path/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 23: Line 23:
| {{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}}
| Changes the icon.
| '''Music:''' {{CodeBlock|margin=5px| <nowiki>{{Path|Half-Life01|mp3|icon=music}}</nowiki> }}
| {{Capsule|margin=5px| {{Path|Half-Life01|mp3|icon=music}} }}
|-
|}
|}



Revision as of 23:03, 23 June 2023

Edit-copy.png
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.

The path to the folder or file.

Parameters and Examples

Parameter Description Examples Preview
{{{1}}} The path to the folder.
{{Path|C:\Program Files\Steam}}
🖿F:\Program Files\Steam
{{{2}}} The path to the file.
{{Path|C:\Program Files\Steam\steam|exe}}
🖿F:\Program Files\Steam\steam.exe
{{{select}}} Text selection mode based on the CSS property user-select.
{{Path|select=none|C:\Program Files}}
{{Path|select=all|C:\Program Files}}
🖿C:\Program Files
🖿C:\Program Files
{{{icon}}} Changes the icon. Music:
{{Path|Half-Life01|mp3|icon=music}}
🎜Half-Life01.mp3