Template:Path/doc: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) m (→Parameters and Examples: autoicon example) |
SirYodaJedi (talk | contribs) mNo edit summary |
||
| Line 37: | Line 37: | ||
'''File (generic):''' {{CodeBlock|margin=5px|<nowiki>{{Path|example|sound.cache|icon=file}}</nowiki> }} | '''File (generic):''' {{CodeBlock|margin=5px|<nowiki>{{Path|example|sound.cache|icon=file}}</nowiki> }} | ||
'''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, | '''Texture (currently same icon, but this will likely change):''' {{CodeBlock|margin=5px|<nowiki>{{Path|alyx_sheet|vtf|icon=texture}}</nowiki> }} | ||
'''Custom icon:''' {{CodeBlock|margin=5px|<nowiki>{{Path|hl2|exe|icon=custom|customico=HL2-hires.png}}</nowiki> }} | '''Custom icon:''' {{CodeBlock|margin=5px|<nowiki>{{Path|hl2|exe|icon=custom|customico=HL2-hires.png}}</nowiki> }} | ||
| | | | ||
Revision as of 11:15, 10 August 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. {{file}} aliases here.
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 or file. | C:\Program Files\Steam | |
| {{{2}}} | File extension, if any. Omit the dot. | ||
| {{{select}}} | Text selection mode based on the CSS property user-select.No effect on some browsers. select=none is likely to cause user frustration; use sparingly. |
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, which only refers custom icon as a generic file, and may cause a scaling bug (more noticeable when zooming in). |
Executable: Registry path: Registry value: Audio/Music: Videos: File (generic): Image: Texture (currently same icon, but this will likely change): Custom icon: |
hl2.exe HKEY_CURRENT_USER\SOFTWARE\Valve\Source DXLevel_V1 Half-Life01.mp3 valve.bik example.sound.cache d1_trainstation_010000.jpg alyx_sheet.vtf p3.exe |
See also