Template:Path: Difference between revisions
Jump to navigation
Jump to search
(Added Regedit/Registry Editor and Registry value.) |
mNo edit summary |
||
Line 12: | Line 12: | ||
|exe|executable={{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}}}|}} | |reg|regedit|registry={{Path/strings|reg}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | ||
|regvalue={{Path/strings|regv}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}|}} | |regvalue|regv={{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 24: | Line 24: | ||
|#default=icon-folder open-filled.png | |#default=icon-folder open-filled.png | ||
|exe|executable=Icon-Windows_Executable.png | |exe|executable=Icon-Windows_Executable.png | ||
|reg|regedit|registry|regvalue=Icon-regedit-2D-PathTemplate.png | |reg|regedit|registry|regvalue|regv=Icon-regedit-2D-PathTemplate.png | ||
|custom={{{customico}}} | |custom={{{customico}}} | ||
|audio|sound|music=Icon-Music-Note.png | |audio|sound|music=Icon-Music-Note.png | ||
Line 35: | Line 35: | ||
|exe=Windows EXE | |exe=Windows EXE | ||
|reg|regedit|registry=Registry Path | |reg|regedit|registry=Registry Path | ||
|regvalue=Registry Value | |regvalue|regv=Registry Value | ||
|custom=Custom Icon | |custom=Custom Icon | ||
|audio|sound|music={{Unicode|♪}} | |audio|sound|music={{Unicode|♪}} |
Revision as of 00:48, 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.