Template talk:LanguageBar: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Page layout quirk: new section)
Line 13: Line 13:


Tried switching them around in the page code, adding a line break, and a couple other things, but I don't get why it's happening. [[User:Cvoxalury|Cvoxalury]] ([[User talk:Cvoxalury|talk]]) 06:13, 16 July 2024 (PDT)
Tried switching them around in the page code, adding a line break, and a couple other things, but I don't get why it's happening. [[User:Cvoxalury|Cvoxalury]] ([[User talk:Cvoxalury|talk]]) 06:13, 16 July 2024 (PDT)
== using PAGESINCATEGORY to link to categories ==
Now that {{tl2|ACategory}} exists, some categories will have alternate languages that don't exist but contain pages (such as [[:Category:es/Source base brush entities]], which currently contains 1 page but doesn't exist). The language bar template could be made to use the PAGESINCATEGORY parser function alongside ifexist on category pages to link to nonexistent translations of the category that have pages in them (for example, <nowiki>{{PAGESINCATEGORY:es/Source base brush entities}}</nowiki> yields {{PAGESINCATEGORY:es/Source base brush entities}}). This would be helpful for people looking for categories that have translated pages but don't exist (such as the given example of es/Source base brush entities). However, it would double the number of expensive parser functions on category pages. Should this be implemented? ―[[User:Pee|Pee]] ([[User talk:Pee|talk]]) 21:30, 20 July 2024 (PDT)

Revision as of 21:30, 20 July 2024

Interesting behaviour on Czech pages

I noticed that on the Czech pages, there is a link back to the Cs page, which is a redirect to Counter-Strike (see Cs/SDK Docs). I'm not sure if this can be fixed other than just deleting the CS redirect. -Equalizer, aka the better pickaxe (talk) 09:28, 12 July 2024 (PDT)

That backlink is shown only when the page exist in this case cs. Thinking creating all those pages like Ru/ Zh/ etc. and those pages could have information about how to make translations, info about templates etc. Nescius (talk)

damn title

I guess it isn't possible to default to SUBPAGENAME displaytitle while also letting other templates called lower like 'this is a' override the title Nescius (talk) 23:32, 12 July 2024 (PDT)

Actually it should be possible by just removing noreplace and changing it to noerror in 'this is a' DISPLAYTITLE use right ?Nescius (talk) 23:37, 12 July 2024 (PDT)

Page layout quirk

Any idea why Half-Life 2 has the language bar on the horizontal line, while Dota 2 has it on top of that line and touching the icons above it, and then Half-Life has the icons overlapping?

Tried switching them around in the page code, adding a line break, and a couple other things, but I don't get why it's happening. Cvoxalury (talk) 06:13, 16 July 2024 (PDT)

using PAGESINCATEGORY to link to categories

Now that {{ACategory}} exists, some categories will have alternate languages that don't exist but contain pages (such as Category:es/Source base brush entities, which currently contains 1 page but doesn't exist). The language bar template could be made to use the PAGESINCATEGORY parser function alongside ifexist on category pages to link to nonexistent translations of the category that have pages in them (for example, {{PAGESINCATEGORY:es/Source base brush entities}} yields 1). This would be helpful for people looking for categories that have translated pages but don't exist (such as the given example of es/Source base brush entities). However, it would double the number of expensive parser functions on category pages. Should this be implemented? ―Pee (talk) 21:30, 20 July 2024 (PDT)