Template:Path: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
--><span title="{{#switch:{{{icon}}} | --><span title="{{#switch:{{{icon}}} | ||
|#default={{Path/strings|Path}} {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |#default={{Path/strings|Path}} {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|exe| | |exe={{Path/strings|exe}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|audio|sound|music={{Path/strings|Audio}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- TODO: Automatically change the icon based of file format--> | |audio|sound|music={{Path/strings|Audio}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- TODO: Automatically change the icon based of file format--> | ||
|video|movie={{Path/strings|Video}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |video|movie={{Path/strings|Video}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
Line 16: | Line 16: | ||
--><span style="position:relative; top:1px">[[{{#switch:{{{icon}}} | --><span style="position:relative; top:1px">[[{{#switch:{{{icon}}} | ||
|#default=File:icon-folder open-filled.png | |#default=File:icon-folder open-filled.png | ||
|exe | |exe=File:Icon-Windows_Executable.png | ||
|audio|sound|music=File:Icon-Music-Note.png | |audio|sound|music=File:Icon-Music-Note.png | ||
|video|movie=File:Icon-Video_File-filled.png | |video|movie=File:Icon-Video_File-filled.png | ||
Line 24: | Line 24: | ||
}}|baseline|alt={{#switch:{{{icon}}} | }}|baseline|alt={{#switch:{{{icon}}} | ||
|#default={{Path/strings|Folder}} | |#default={{Path/strings|Folder}} | ||
|exe | |exe=Windows EXE | ||
|audio|sound|music={{Unicode|♪}} | |audio|sound|music={{Unicode|♪}} | ||
|video|movie={{Unicode|[►]}} | |video|movie={{Unicode|[►]}} |
Revision as of 07:33, 28 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 picture icon if {{{2}}} is "jpg", "bmp", "tga", "vtf" or any other image and texture formats.
Automatically use video icon if {{{2}}} is "bik", "avi", "wmv", "mov", "webm", "mp4" or any other video formats.
Automatically use picture icon if {{{2}}} is "jpg", "bmp", "tga", "vtf" or any other image and texture 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.