Template:Path: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) m (Emoji are Unicode symbols) |
||
Line 1: | Line 1: | ||
{{todo| | {{todo|Automatic icons (should be case insensitive): | ||
* Use music icon if {{param|2}} is "wav", "mp3", "ogg", "vsnd_c", or any other audio formats. | |||
* Use video icon if {{param|2}} is "bik", "avi", "wmv", "mov", "webm", "mp4", or any other video formats. | |||
* Use picture icon if {{param|2}} is "jpg", "bmp", "tga", "vtf", "vtex_c", "spr", "png", or any other image and texture formats. | |||
* Use executable icon if {{param|2}} is "exe", "bat", "sh", "com", "app", or any other executable applications. | |||
* Otherwise, use generic file icon if {{param|2}} exists.}} | |||
{{todo|Generic "file" icon (sheet of paper with bent corner), to use if path target is file.}} | {{todo|Generic "file" icon (sheet of paper with bent corner), to use if path target is file.}} | ||
{{ModernBug|Characters "<" and ">" breaks the template partially. Use {{code|<nowiki><nowiki></nowiki>}} as a workaround.}} | {{ModernBug|Characters "<" and ">" breaks the template partially. Use {{code|<nowiki><nowiki></nowiki>}} as a workaround.}} | ||
Line 33: | Line 38: | ||
|texture={{Path/strings|TexturesIconFallback}} | |texture={{Path/strings|TexturesIconFallback}} | ||
|generic|file={{Path/strings|File}} <!--alt parameter will be used for unicode fallback if the icon doesnt load properly. | |generic|file={{Path/strings|File}} <!--alt parameter will be used for unicode fallback if the icon doesnt load properly. | ||
Emojis are not recommended as older OS usually may lacking certain emojis | Emojis are not recommended as older OS usually may lacking certain emojis.--> | ||
}}|15px]]</span><!-- | }}|15px]]</span><!-- | ||
--></span><!-- | --></span><!-- | ||
--><code style="background-color:rgba({{#if:{{{2|}}}|152,78,221,.25|83,111,255,.25}}); border-radius:0 4px 4px 0; color:#CCC; padding:0 4px; {{#if:{{{select|}}}|user-select:{{{select}}}|}}">{{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}</code><!-- | --><code style="background-color:rgba({{#if:{{{2|}}}|152,78,221,.25|83,111,255,.25}}); border-radius:0 4px 4px 0; color:#CCC; padding:0 4px; {{#if:{{{select|}}}|user-select:{{{select}}}|}}">{{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}</code><!-- | ||
--></span></onlyinclude></includeonly> | --></span></onlyinclude></includeonly> |
Revision as of 11:40, 1 July 2023
Todo: Automatic icons (should be case insensitive):
- Use music icon if {{{2}}} is "wav", "mp3", "ogg", "vsnd_c", or any other audio formats.
- Use video icon if {{{2}}} is "bik", "avi", "wmv", "mov", "webm", "mp4", or any other video formats.
- Use picture icon if {{{2}}} is "jpg", "bmp", "tga", "vtf", "vtex_c", "spr", "png", or any other image and texture formats.
- Use executable icon if {{{2}}} is "exe", "bat", "sh", "com", "app", or any other executable applications.
- Otherwise, use generic file icon if {{{2}}} exists.
Todo: Generic "file" icon (sheet of paper with bent corner), to use if path target is file.
The above documentation is transcluded from Template:Path/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.