Template talk:Path

From Valve Developer Community
Jump to: navigation, search
Icon-message-48px.png
Welcome to Template talk:Path!
This is the start of the Path discussion page.

To add a new message, click on "Add Topic/Reply" button below, and set the "Subject".
To add a Reply, do the same as above, but leave the "Subject" blank.

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)

ERR
Empty.png
leonidakarlach21:15, 1 July 2023 (UTC+7)
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.

ERR
224
SirYodaJedi18:21, 1 July 2023 (UTC)
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.

Split the Windows Registry as irrelevant here

Icon-user.png
Empty.png
Lxm616:18, 18 July 2023 (UTC)
I have nothing to add.

The file extension should include the dot

Icon-user.png
Empty.png
Lxm613:26, 20 July 2023 (UTC)(edited)
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.
ERR
224
SirYodaJedi13:50, 20 July 2023 (UTC)
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.
Icon-user.png
Empty.png
Lxm613:53, 20 July 2023 (UTC)
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.