Template:Path: Difference between revisions
Jump to navigation
Jump to search
(Added video.) |
mNo edit summary |
||
Line 6: | Line 6: | ||
|#default=Path to {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |#default=Path to {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|audio|sound|music=Music file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- TODO: Automatically change the icon based of file format--> | |audio|sound|music=Music file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- TODO: Automatically change the icon based of file format--> | ||
|video|movie= | |video|movie=Video file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- TODO: Automatically change the icon based of file format--> | ||
}}" style="display:inline-flex; align-items:center; line-height:1.35em"><!-- | }}" style="display:inline-flex; align-items:center; line-height:1.35em"><!-- | ||
--><span style="background-color:{{#if:{{{2|}}}|#984EDDCC|#536FFFCC}}; border-radius:4px 0 0 4px; padding:0 3px 0 4px; user-select:none; pointer-events:none"><!-- | --><span style="background-color:{{#if:{{{2|}}}|#984EDDCC|#536FFFCC}}; border-radius:4px 0 0 4px; padding:0 3px 0 4px; user-select:none; pointer-events:none"><!-- |
Revision as of 10:06, 24 June 2023
Todo: Automatically use music icon if {{{2}}} is "wav", "mp3", "ogg", or "vsnd_c".
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.