Difference between revisions of "Template talk:Lang"

From Valve Developer Community
Jump to: navigation, search
(New language bar: new section)
Line 46: Line 46:
== New language bar ==
== New language bar ==
This huge language is atrocious (https://i.imgur.com/4DWhx3T.png). Can we please get rid of this?
This huge language is atrocious (https://imgur.com/4DWhx3T). Can we please get rid of this? [[User:Darnias|Darnias]] ([[User talk:Darnias|talk]])

Revision as of 12:50, 16 September 2021

This currently seems broken. It shows only English in non-English pages and links to the file of flag. I don't know if I did wrong nor how to fix it. FloraC (talk) 07:16, 31 August 2019 (UTC)

Looked at your recent edits on translated pages. To use the lang template, you need to have the title of the english page as the first parameter, then you can add title=translated title as the second parameter. — Dr. Orange talk · contributions 09:33, 31 August 2019 (UTC)

Synchronize buttons to header line?

The language buttons seem a tad bit lower than the line. Is it fine if I adjust the template to account for this? - Amicdict (talk) 16:09, 30 August 2021 (PDT)

Support for more languages?

I think more languages should be supported:

  • Hindi (hi)
  • Finnish (fi)
  • Modern Greek (el)
  • Danish (da)
  • Arabic (ar)
  • Afrikanns (af)
  • Slovak (sk)
  • Romanian (ro)
  • Bulgarian (bg)
  • Indonesian (id)
  • Karelian (krl)

More ISO codes are located at List of ISO 639-2 codes. - Amicdict (talk) 18:29, 13 September 2021 (PDT)

Big update idea

There are many problems with this template. But after spending a couple of days I came up with one idea that could fix most of all the problems associated with this template. You can take a look at a sketch of how it will look (link).

There will be no more problems with the fact that the template will slide down, for example, because of the inscription "Redirected from" or if this article is a sub-article and there is an automatic link to the parent article. Also, in this version, all languages ​​will be displayed at once, but in order not to get confused, those articles which do not exist are marked in red. And the one that is slightly brighter than everyone else is the one you are on. This is almost the same as on mediawiki, only instead of text - pictures.

Also if the user has a small screen and the title of the article is long, then the original lang would overlap with the title. This is certainly not a disaster, but this will not happen in the new version either.

It might be worth making a separate template for each language so that there are not so many in the lang template. Perhaps this will prevent reaching the limits, as this thing is quite expensive.

So, is it worth redesigning the template? by the way, this change will not break anything and on old articles everything will work fine. - Max34 (talk) 7:38, 15 September 2021 (UTC)

I don't see anything wrong with doing this. If it turns out to have bad problems, it's easy to just undo the changes and rework them. - Amicdict (talk) 14:33, 15 September 2021 (PDT)
There is a request I like to make though and that is to add parameters to change the language links, while still automatically using the standard translated page names by default. (so setting the japanese flag link to 翻訳なページ instead of translated_site:jp as an example). - Amicdict (talk) 14:38, 15 September 2021 (PDT)
Looking at the template though, I would prefer to keep the flags to the right of the header to not waste any screen space. - Amicdict (talk) 17:42, 15 September 2021 (PDT)
Why should it display every language? Not very related, but if there's a way to make this template stop spamming Special:WantedPages, it should be done. --Loudslappingsounds (talk) 23:19, 15 September 2021 (PDT)
That is why I think that the option with all languages ​​will be better at once: they will all be in one place, that is, you will not have to look for the desired icon again. If you show all the icons at once (even if you add 11 more new ones that Amicdict suggested), it will still take up little space. If you place them in the article itself, and not on the top right, most of the visual problems will be solved: unnecessary offset, for example, due to redirection, intersection with the article title, if the title is long, and there is also a problem with constant offset: at different screen resolutions, the template then below what you want, then above what you need, but if you put the template in the article, and not on the top right, this will not happen. The mediawiki uses a similar principle (for example here) and is pretty handy. And by the way, I think I found a way to avoid two of the most serious problems at once: the problem with the limit {{#ifexist:}} and the problem with a lot of unnecessary links in Special:WantedPages. Now I will try to make a new version of the template and see if it works. - Max34 (talk) 13:46, 16 September 2021 (UTC)

New language bar

This huge language is atrocious (https://imgur.com/4DWhx3T). Can we please get rid of this? Darnias (talk)