Template:Path: Difference between revisions
Jump to navigation
Jump to search
m (Added svg, vsvg and vsvg_c to images) |
(Added Java executable.) |
||
Line 5: | Line 5: | ||
--><span style="display:inline-flex; align-items:center; line-height:1.35em"><!-- | --><span 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"><!-- | ||
--><span style="position:relative; top:1px">[[File:{{#if:{{{icon|}}}|{{#switch:{{{icon}}} | --><span style="position:relative; top:1px">[[File:{{#if:{{{icon|}}}|{{#switch:{{{icon}}}<!-- path to folder --> | ||
|#default=icon-folder open-filled.png | |#default=icon-folder open-filled.png | ||
|EXE|exe|EXECUTABLE|executable=Icon-Windows_Executable.png | |APP|app|BAT|bat|COM|com|EXE|exe|EXECUTABLE|executable=Icon-Windows_Executable.png | ||
|Java|java|jar|JAR=Icon_java.png | |||
|msi|MSI|flatpak|FLATPAK|installer|INSTALLER|SETUP|setup=Icon-Windows_Installer.png | |msi|MSI|flatpak|FLATPAK|installer|INSTALLER|SETUP|setup=Icon-Windows_Installer.png | ||
|REG|reg|REGEDIT|regedit|REGISTRY|registry|REGVALUE|regvalue|REGV|regv=Icon-regedit-2D-PathTemplate.png | |REG|reg|REGEDIT|regedit|REGISTRY|registry|REGVALUE|regvalue|REGV|regv=Icon-regedit-2D-PathTemplate.png | ||
Line 20: | Line 21: | ||
<!-- |MAP|map=Icon-Map.png --> | <!-- |MAP|map=Icon-Map.png --> | ||
|GENERIC|generic|FILE|file=Icon-File-filled-cropped.png | |GENERIC|generic|FILE|file=Icon-File-filled-cropped.png | ||
}}|{{#switch:{{{2}}} | }}|{{#switch:{{{2}}}<!-- with "{{{2}}}" aka file extensions specified. --> | ||
|#default=icon-folder open-filled.png | |#default=icon-folder open-filled.png | ||
|APP|app|BAT|bat|COM|com|EXE|exe|SH|sh=Icon-Windows_Executable.png | |APP|app|BAT|bat|COM|com|EXE|exe|SH|sh=Icon-Windows_Executable.png | ||
|Java|java|jar|JAR=Icon_java.png | |||
|msi|MSI|flatpak|FLATPAK=Icon-Windows_Installer.png | |msi|MSI|flatpak|FLATPAK=Icon-Windows_Installer.png | ||
|WAV|wav|MP3|mp3|OGG|ogg|OPUS|opus|VSND_C|vsnd_c=Icon-Music-Note.png | |WAV|wav|MP3|mp3|OGG|ogg|OPUS|opus|VSND_C|vsnd_c=Icon-Music-Note.png | ||
Line 34: | Line 36: | ||
}}}}|baseline|alt={{#switch:{{{icon}}}<!-- fallback if icons are not loaded properly --> | }}}}|baseline|alt={{#switch:{{{icon}}}<!-- fallback if icons are not loaded properly --> | ||
|#default=🖿 | |#default=🖿 | ||
|EXE|exe=Windows Executable | |APP|app|BAT|bat|COM|com|EXE|exe=Windows Executable | ||
|Java|java|jar|JAR=Java Executable | |||
|MSI|msi=Windows Installer | |MSI|msi=Windows Installer | ||
|flatpak|FLATPAK=Flatpak Installer | |flatpak|FLATPAK=Flatpak Installer |
Revision as of 21:34, 29 December 2023
Todo: Fall back to generic file icon instead of folder icon if {{{2}}} is present.
Todo: Icons for models, maps, compressed archives, and uncompressed packages. Syntax exists, and just needs to be uncommented when the icons are ready.
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.