Template talk:Path

From Valve Developer Community
Jump to: navigation, search
Icon-message-48px.png
This is the discussion page of Template:Path. To add a comment, use the Edit button near the headline of the appropriate section. To create a new section, you can use the Add topic button at the top of this page.
Comments on talk pages should be signed with "~~~~", which will be converted into your signature and a timestamp.

Filetype icons?

I was thinking that common extensions could perhaps have an icon that indicates it's contents. Unknown file extensions would instead display a page icon, like PCGamingWiki's {{file}} template; this would help distinguish from folders, as the same icon is currently used for both. Feel free to edit the table after my signature, which contains ideas.
SirYodaJedi (talk) 16:48, 8 June 2023 (PDT)

Extension Icon
exe, sh, bat ??? (These are executables)
dll, so, dylib ??? (should be different than executables icon)
wad, spr, vtf, vtex, vtex_c missing texture checkerboard
bmp, tga, jpg, jpeg, png, psd, xcf photograph
pak, vpk, gcf package
zip, rar, 7z, bz2 package with zipper
bsp, vmap_c map
map, vmf, vmap, rmf, jmf map (somehow distinguish from compiled forms)
wav, mp3, vsnd_c, ogg, opus, flac, mid music note, or maybe speaker
mdl, vmdl, vmdl_c, md2, md3 ???
smd, dmx, vta, fbx, obj, max, blend ??? (should be different from compiled forms)

span tag bug

See xwad; it's showing <span title="Path to common\SourceSDK\bin\<branchname>\bin\xwad.exe" style="display:inline-flex; align-items:center; line-height:1.35em"> in front of the path.
SirYodaJedi (talk) 11:10, 30 June 2023 (PDT)

Same thing here on most pages, any characters with "<" or ">" can break the "span title" which displays the text when you hover the icon or text (used to explaining more details and for better accessibility), gonna try to fix it if possible.

Edit: nowiki would break template so looks like we cant for now. --Kr0tchet (talk) 14:15, 1 Jul 2023

We should port a variant of Pcgw icon.png Template:Path, then. Greater than and less than signs are standard practice for wrapping these sorts of foobars.

Edit: Nowiki doesn't seem to break anything important. --SirYodaJedi (talk) 18:21, 1 Jul 2023

Split the Windows Registry as irrelevant here

I have nothing to add. --Lxm6 (talk) 16:18, 18 Jul 2023

The file extension should include the dot

It won't matter for this wiki, but with lots of short pages, collisions are very possible. Collisions with titles like .zip are less likely. ZIP are US postal codes by the way. --Lxm6 (talk) 13:26, 20 Jul 2023

Collisions are highly unlikely; they're more likely to end up on a disambig page. Also, ZIP codes are irrelevant to this wiki, and even so, their page name would be ZIP code not ZIP. --SirYodaJedi (talk) 13:50, 20 Jul 2023

Their awkward comment doesn't defeat my logic and my example. ZIP (or zip) are not just ZIP files. As I said, the problem will be obvious with larger wikis elsewhere. --Lxm6 (talk) 13:53, 20 Jul 2023