Template:Path: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
--><span title="{{#switch:{{{icon}}} | --><span title="{{#switch:{{{icon}}} | ||
|#default=Path to {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |#default=Path to {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|audio|sound|music= | |audio|sound|music=Audio file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- TODO: Automatically change the icon based of file format--> | ||
|video|movie=Video file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |video|movie=Video file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|image|picture=Image File - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |image|picture=Image File - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} |
Revision as of 03:46, 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 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.