Template:Path: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Image and texture added.) |
||
Line 1: | Line 1: | ||
{{todo|Automatically use music icon if {{param|2}} is "wav", "mp3", "ogg", "vsnd_c" or any other audio formats.<br>Automatically use video icon if {{param|2}} is "bik", "avi", "wmv", "mov", "webm", "mp4" or any other video formats.}} | {{todo|Automatically use music icon if {{param|2}} is "wav", "mp3", "ogg", "vsnd_c" or any other audio formats.<br>Automatically use video icon if {{param|2}} is "bik", "avi", "wmv", "mov", "webm", "mp4" or any other video formats.<br>Automatically use video icon if {{param|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.}} | {{todo|Generic "file" icon (sheet of paper with bent corner), to use if path target is file.}} | ||
{{Doc}} | {{Doc}} | ||
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 file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |video|movie=Video file - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|generic|file=File - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |image|picture=Image File - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|texture=Texture File - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |||
|generic|file=File - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |||
}}" 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"><!-- | ||
Line 14: | Line 16: | ||
|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 | ||
|image|picture=File:Icon-Image-filled.png | |||
|texture=File:Icon-Image-filled.png<!-- Texture file will have same icon as image, but the tooltip will remain different.--> | |||
|generic|file=File:Icon-File-filled-cropped.png | |generic|file=File:Icon-File-filled-cropped.png | ||
}}|baseline|alt={{#switch:{{{icon}}} | }}|baseline|alt={{#switch:{{{icon}}} | ||
Line 19: | Line 23: | ||
|audio|sound|music={{Unicode|♪}} | |audio|sound|music={{Unicode|♪}} | ||
|video|movie={{Unicode|[►]}} | |video|movie={{Unicode|[►]}} | ||
|image|picture=Image | |||
|texture=Texture | |||
|generic|file=File <!--alt parameter will be used for unicode fallback if the icon doesnt load properly. | |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.--> | Emojis are not recommended as older OS usually may lacking certain emojis, unicode symbols is used instead.--> |
Revision as of 03:31, 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 "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 video 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.