Template:Path/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 36: Line 36:
'''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, different tooltip):''' {{CodeBlock|margin=5px| <nowiki>{{Path|alyx_sheet|vtf|icon=texture}}</nowiki> }}
'''Texture (same icon, different tooltip):''' {{CodeBlock|margin=5px| <nowiki>{{Path|alyx_sheet|vtf|icon=texture}}</nowiki> }}
'''Windows executable + custom icon:''' {{CodeBlock|margin=5px| <nowiki>{{Path|hl2|exe|icon=exe|customico=HL2-hires.png}}</nowiki> }}
'''Windows executable + 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 44: Line 44:
{{Capsule|margin=5px| {{Path|d1_trainstation_010000|jpg|icon=image}} }}
{{Capsule|margin=5px| {{Path|d1_trainstation_010000|jpg|icon=image}} }}
{{Capsule|margin=5px| {{Path|alyx_sheet|vtf|icon=texture}} }}
{{Capsule|margin=5px| {{Path|alyx_sheet|vtf|icon=texture}} }}
{{Capsule|margin=5px| {{Path|p3|exe|icon=execustom|customico=Icon-Postal_3.png}} }}
{{Capsule|margin=5px| {{Path|p3|exe|icon=custom|customico=Icon-Postal_3.png}} }}
|-
|-
|}
|}

Revision as of 09:02, 1 July 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.

Translations

Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

Parameters and Examples

Parameter Description Examples Preview
{{{1}}} The path to the folder.
{{Path|C:\Program Files\Steam}}
🖿C:\Program Files\Steam
{{{2}}} The path to the file.
{{Path|D:\Program Files\Steam\steam|exe}}
🖿D:\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}}}
{{{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.
Windows executable (also applies to DOS, OS/2):
{{Path|hl2|exe|icon=exe}}
Audio/Music:
{{Path|Half-Life01|mp3|icon=audio}}
Videos:
{{Path|valve|bik|icon=video}}
File (generic):
{{Path|example|sound.cache|icon=file}}
Image:
{{Path|d1_trainstation_010000|jpg|icon=image}}
Texture (same icon, different tooltip):
{{Path|alyx_sheet|vtf|icon=texture}}
Windows executable + custom icon:
{{Path|hl2|exe|icon=custom|customico=HL2-hires.png}}
Windows Executablehl2.exe
🎜Half-Life01.mp3
🎬︎valve.bik
Fileexample.sound.cache
🖼Imaged1_trainstation_010000.jpg
Texturealyx_sheet.vtf
Custom Iconp3.exe