Template:Path: Difference between revisions
Jump to navigation
Jump to search
m (added alt as a fallback icon.) |
mNo edit summary |
||
Line 15: | Line 15: | ||
|video|movie=File:Icon-Video_File-filled.png | |video|movie=File:Icon-Video_File-filled.png | ||
|generic|file=File:Icon-File-filled-cropped.png | |generic|file=File:Icon-File-filled-cropped.png | ||
}}|baseline|alt={{#switch:{{{icon}}} | }}|baseline|alt={{#switch:{{{icon}}} | ||
|#default=Folder | |#default=Folder | ||
|audio|sound|music={{Unicode|♪}} | |audio|sound|music={{Unicode|♪}} | ||
|video|movie={{Unicode|[►]}} | |video|movie={{Unicode|[►]}} | ||
|generic|file=File | |generic|file=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, unicode symbols is used instead.--> | |||
}}|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 03:20, 25 June 2023
Todo: Automatically use music icon if {{{2}}} is "wav", "mp3", "ogg", "vsnd_c" or any other audio formats.
Automatically use video icon if {{{2}}} is "bik", "avi", "wmv", "mov", "webm", "mp4" or any other video formats.
Automatically use video icon if {{{2}}} is "bik", "avi", "wmv", "mov", "webm", "mp4" or any other video formats.
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.