Template:Path/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Doesn't do diddly squat on my phone)
mNo edit summary
Line 26: Line 26:
| align=center | {{Param|icon}}
| align=center | {{Param|icon}}
| Changes the icon.
| Changes the icon.
| '''Music:''' {{CodeBlock|margin=5px| <nowiki>{{Path|Half-Life01|mp3|icon=music}}</nowiki> }}
| '''Music:''' {{CodeBlock|margin=5px| <nowiki>{{Path|Half-Life01|mp3|icon=audio}}</nowiki> }}
| {{Capsule|margin=5px| {{Path|Half-Life01|mp3|icon=music}} }}
| {{Capsule|margin=5px| {{Path|Half-Life01|mp3|icon=audio}} }}
|-
|-
|}
|}

Revision as of 07:20, 24 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.
No effect on some browsers.
{{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=audio}}
🎜Half-Life01.mp3