Template:Path/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (please don't use select=none; it's just annoying)
No edit summary
Line 29: Line 29:
'''Music:''' {{CodeBlock|margin=5px| <nowiki>{{Path|Half-Life01|mp3|icon=audio}}</nowiki> }}<br>
'''Music:''' {{CodeBlock|margin=5px| <nowiki>{{Path|Half-Life01|mp3|icon=audio}}</nowiki> }}<br>
'''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> }}
|  
|  
{{Capsule|margin=5px| {{Path|Half-Life01|mp3|icon=audio}} }}
{{Capsule|margin=5px| {{Path|Half-Life01|mp3|icon=audio}} }}
{{Capsule|margin=5px| {{Path|valve|bik|icon=video}} }}
{{Capsule|margin=5px| {{Path|valve|bik|icon=video}} }}
{{Capsule|margin=5px| {{Path|example|sound.cache|icon=file}} }}
|-
|-
|}
|}

Revision as of 03:02, 25 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.
Warning.pngWarning:select=none is likely to cause user frustration; use sparingly.
{{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}}

Videos:
{{Path|valve|bik|icon=video}}
File (generic):
{{Path|example|sound.cache|icon=file}}
🎜Half-Life01.mp3
🎬︎valve.bik
Fileexample.sound.cache