Template talk:Lang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 39: Line 39:


:Looking at the template though, I would prefer to keep the flags to the right of the header to not waste any screen space. - [[User:Amicdict|Amicdict]] ([[User talk:Amicdict|talk]]) 17:42, 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. - [[User:Amicdict|Amicdict]] ([[User talk: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. --[[User:Loudslappingsounds|Loudslappingsounds]] ([[User talk:Loudslappingsounds|talk]]) 23:19, 15 September 2021 (PDT)

Revision as of 23:20, 15 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 Wikipedia icon 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)