Template:Path: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) m (file icon exists) |
(Added Regedit/Registry Editor and Registry value.) |
||
Line 10: | Line 10: | ||
--><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={{Path/strings|exe}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |exe|executable={{Path/strings|exe}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|reg|regedit|registry={{Path/strings|reg}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |||
|regvalue={{Path/strings|regv}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |||
|custom={{Path/strings|File}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- Currently generic for now --> | |custom={{Path/strings|File}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}}<!-- Currently generic for now --> | ||
|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--> | ||
Line 21: | Line 23: | ||
--><span style="position:relative; top:1px">[[File:{{#switch:{{{icon}}} | --><span style="position:relative; top:1px">[[File:{{#switch:{{{icon}}} | ||
|#default=icon-folder open-filled.png | |#default=icon-folder open-filled.png | ||
|exe=Icon-Windows_Executable.png | |exe|executable=Icon-Windows_Executable.png | ||
|reg|regedit|registry|regvalue=Icon-regedit-2D-PathTemplate.png | |||
|custom={{{customico}}} | |custom={{{customico}}} | ||
|audio|sound|music=Icon-Music-Note.png | |audio|sound|music=Icon-Music-Note.png | ||
Line 31: | Line 34: | ||
|#default={{Path/strings|Folder}} | |#default={{Path/strings|Folder}} | ||
|exe=Windows EXE | |exe=Windows EXE | ||
|reg|regedit|registry=Registry Path | |||
|regvalue=Registry Value | |||
|custom=Custom Icon | |custom=Custom Icon | ||
|audio|sound|music={{Unicode|♪}} | |audio|sound|music={{Unicode|♪}} |
Revision as of 00:44, 8 July 2023
Todo: Automatic icons (should be case insensitive):
- Use music icon if {{{2}}} is "wav", "mp3", "ogg", "vsnd_c", or any other audio formats.
- Use video icon if {{{2}}} is "bik", "avi", "wmv", "mov", "webm", "mp4", or any other video formats.
- Use picture icon if {{{2}}} is "jpg", "bmp", "tga", "vtf", "vtex_c", "spr", "png", or any other image and texture formats.
- Use executable icon if {{{2}}} is "exe", "bat", "sh", "com", "app", or any other executable applications.
- Otherwise, use generic file icon if {{{2}}} exists.
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.