Template:Path/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 28: | Line 28: | ||
|- | |- | ||
| align=center | {{Param|icon}}<br> {{Param|customico}} | | align=center | {{Param|icon}}<br> {{Param|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. <br><br>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.<br><br> {{Param|customico}} is used to change to any icon if you want. Tooltip will likely be limited with this method. | | Changes the icon. The tooltip (which appears if you are hovering the text or the icon itself), will have it's text changed aswell. <br><br>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.<br><br> {{Param|customico}} is used to change to any icon if you want. Tooltip will likely be limited with this method, and may cause a scaling bug. | ||
| | | | ||
'''Windows executable (also applies to DOS, OS/2):''' {{CodeBlock|margin=5px| <nowiki>{{Path|hl2|exe|icon=exe}}</nowiki> }} | '''Windows executable (also applies to DOS, OS/2):''' {{CodeBlock|margin=5px| <nowiki>{{Path|hl2|exe|icon=exe}}</nowiki> }} |
Revision as of 09:03, 1 July 2023

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.
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

This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Please follow the format on this subpage(s) to add translations.
Parameters and Examples
Parameter | Description | Examples | Preview |
---|---|---|---|
{{{1}}} | The path to the folder. | ![]() C:\Program Files\Steam | |
{{{2}}} | The path to the file. | ![]() D:\Program Files\Steam\steam.exe | |
{{{select}}} | Text selection mode based on the CSS property user-select. No effect on some browsers. ![]() |
![]() 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, and may cause a scaling bug. |
Windows executable (also applies to DOS, OS/2): | Audio/Music: Videos: File (generic): Image: Texture (same icon, different tooltip): Windows executable + custom icon:
![]() hl2.exe ![]() Half-Life01.mp3 ![]() valve.bik ![]() example.sound.cache ![]() d1_trainstation_010000.jpg ![]() alyx_sheet.vtf ![]() p3.exe |