Template:Path/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Doesn't do diddly squat on my phone)
Line 20: Line 20:
|-
|-
| align=center | {{Param|select}}
| align=center | {{Param|select}}
| Text selection mode based on the CSS property {{Code|preset=1|user-select}}.
| Text selection mode based on the CSS property {{Code|preset=1|user-select}}.<br>No effect on some browsers.
| {{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}} }}

Revision as of 07:14, 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=music}}
🎜Half-Life01.mp3