Template:Path: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added Java executable.)
(Added compressed archive icon. VPK (Source & S2) and also PAK (used in GoldSrc) used the same icon aswell for now. Other icons was also added.)
Line 8: Line 8:
|#default=icon-folder open-filled.png
|#default=icon-folder open-filled.png
|APP|app|BAT|bat|COM|com|EXE|exe|EXECUTABLE|executable=Icon-Windows_Executable.png
|APP|app|BAT|bat|COM|com|EXE|exe|EXECUTABLE|executable=Icon-Windows_Executable.png
|APK|apk=Icon-Android.png
|Java|java|jar|JAR=Icon_java.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
Line 15: Line 16:
|FMV|fmv|VIDEO|video|MOVIE|movie=Icon-Video_File-filled.png
|FMV|fmv|VIDEO|video|MOVIE|movie=Icon-Video_File-filled.png
|IMAGE|image|PICTURE|picture=Icon-Image-filled.png
|IMAGE|image|PICTURE|picture=Icon-Image-filled.png
|7z|7Z|tar.gz|TAR.GZ|tgz|TGZ|zip|ZIP|zipx|ZIPX|rar|RAR|VPK|vpk|PAK|pak=File:Folder_zip_icon.png
|TEXTURE|texture=Icon-Image-filled.png<!-- Texture file currently same icon as image, but the tooltip will remain different.-->
|TEXTURE|texture=Icon-Image-filled.png<!-- Texture file currently same icon as image, but the tooltip will remain different.-->
<!-- |PAK|pak|PACKAGE|package=Icon-Package.png -->
<!-- |PAK|pak|PACKAGE|package=Icon-Package.png -->
Line 24: Line 26:
|#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
|APK|apk=Icon-Android.png
|Java|java|jar|JAR=Icon_java.png
|Java|java|jar|JAR=Icon_java.png
|msi|MSI|flatpak|FLATPAK=Icon-Windows_Installer.png
|msi|MSI|flatpak|FLATPAK=Icon-Windows_Installer.png
Line 30: Line 33:
|APNG|apng|BMP|bmp|JPG|jpg|JPEG|jpeg|PCX|pcx|PNG|png|TGA|tga|TIF|tif|TIFF|tiff|WEBP|WebP|webp|SVG|svg|VSVG|vsvg|VSVG_C|vsvg_c=Icon-Image-filled.png
|APNG|apng|BMP|bmp|JPG|jpg|JPEG|jpeg|PCX|pcx|PNG|png|TGA|tga|TIF|tif|TIFF|tiff|WEBP|WebP|webp|SVG|svg|VSVG|vsvg|VSVG_C|vsvg_c=Icon-Image-filled.png
|DDS|dds|SPR|spr|VTF|vtf|VTEX_c|vtex_c=Icon-Image-filled.png<!--currently same icon as image-->
|DDS|dds|SPR|spr|VTF|vtf|VTEX_c|vtex_c=Icon-Image-filled.png<!--currently same icon as image-->
|7z|7Z|tar.gz|TAR.GZ|tgz|TGZ|zip|ZIP|zipx|ZIPX|rar|RAR|VPK|vpk|PAK|pak=File:Folder_zip_icon.png
<!-- |TAR|tar|PAK|pak|WAD|wad|VPK|vpk=Icon-Package.png -->
<!-- |TAR|tar|PAK|pak|WAD|wad|VPK|vpk=Icon-Package.png -->
<!-- |7Z|7z|BZ2|bz2|PK3|pk3|RAR|rar|ZIP|zip=Icon-Archive.png -->
<!-- |7Z|7z|BZ2|bz2|PK3|pk3|RAR|rar|ZIP|zip=Icon-Archive.png -->
Line 37: Line 41:
|#default=🖿
|#default=🖿
|APP|app|BAT|bat|COM|com|EXE|exe=Windows Executable
|APP|app|BAT|bat|COM|com|EXE|exe=Windows Executable
|APK|apk=Android APK
|Java|java|jar|JAR=Java Executable
|Java|java|jar|JAR=Java Executable
|MSI|msi=Windows Installer
|MSI|msi=Windows Installer
Line 47: Line 52:
|FMV|fmv|VIDEO|video|MOVIE|movie=🎬︎
|FMV|fmv|VIDEO|video|MOVIE|movie=🎬︎
|IMAGE|image|PICTURE|picture=🖼{{Path/strings|ImageIconFallback}}
|IMAGE|image|PICTURE|picture=🖼{{Path/strings|ImageIconFallback}}
|7z|7Z|tar.gz|TAR.GZ|tgz|TGZ|zip|ZIP|zipx|ZIPX|rar|RAR|VPK|vpk|PAK|pak=🗂️
|TEXTURE|texture|TEX|tex={{Path/strings|TexturesIconFallback}}
|TEXTURE|texture|TEX|tex={{Path/strings|TexturesIconFallback}}
<!-- |PAK|pak|PACKAGE|package={{Path/strings|PackageIconFallback}} -->
<!-- |PAK|pak|PACKAGE|package={{Path/strings|PackageIconFallback}} -->

Revision as of 21:51, 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.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

The path to the folder or file. {{file}} aliases here.

Parameters and Examples

Parameter Description Examples Preview
{{{1}}} The path to the folder or file.
{{Path|C:\Program Files\Steam}}
🖿C:\Program Files\Steam
{{{2}}} File extension, if any. Omit the dot.
{{Path|D:\Program Files\Steam\steam|exe}}
{{Path|de_dust2|bsp}}
{{Path|materials\debug\debugempty|vtf}}
🖿D:\Program Files\Steam\steam.exe
🖿de_dust2.bsp
🖿materials\debug\debugempty.vtf
{{{select}}} Text selection mode based on the CSS property user-select.
No effect on some browsers.
Warning.pngWarning:select=none is likely to cause user frustration; use sparingly.
{{Path|select=none|C:\Program Files}}
{{Path|select=all|C:\Program Files}}
🖿C:\Program Files
🖿C:\Program Files
{{{icon}}}
{{{customico}}}
Changes the icon. The tooltip (which appears if you are hovering the text or the icon itself), will have it's text changed aswell.

If the images is disabled in your browser or when a new icon file is being uploaded, it may fallback to Unicode symbols or simple text.

{{{customico}}} is used to change to any icon if you want. Tooltip will likely be limited with this method, which only refers custom icon as a generic file, and may cause a scaling bug (more noticeable when zooming in).
Executable:
{{Path|hl2|exe|icon=exe}}
Registry path:
{{Path|Computer\HKEY_CURRENT_USER\SOFTWARE\Valve\Source|icon=reg}}
Registry value:
{{Path|DXLevel_V1|icon=regv}}
Audio/Music:
{{Path|Half-Life01|mp3|icon=audio}}
Videos:
{{Path|valve|bik|icon=video}}
File (generic):
{{Path|example|sound.cache|icon=file}}
Image:
{{Path|d1_trainstation_010000|jpg|icon=image}}
Texture (currently same icon, but this will likely change):
{{Path|alyx_sheet|vtf|icon=texture}}
Custom icon:
{{Path|hl2|exe|icon=custom|customico=HL2-hires.png}}
Windows Executablehl2.exe
Registry PathHKEY_CURRENT_USER\SOFTWARE\Valve\Source
Registry ValueDXLevel_V1
🎜Half-Life01.mp3
🎬︎valve.bik
Fileexample.sound.cache
🖼Imaged1_trainstation_010000.jpg
Texturealyx_sheet.vtf
Custom Iconp3.exe

See also