Meta talk:Babylon
Add topicAppearance
(Redirected from User talk:Translation Notification Bot)
Latest comment: 8 days ago by Bayahiu in topic Template:Historical/text
Welcome to the Babylon talk page! This place is dedicated to discussions about all the translations-related issues here on Meta-Wiki.
- Meta is a multilingual project; so is this page. Any language is welcome here.
- You can reply to a topic by clicking the [edit] link beside that section's header, or start a new discussion
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day and sections whose most recent comment is older than 45 days.
|
Hello, what is the function of {{{<tvar name="1">type</tvar>|page}}} here? Because it breaks the translation for "page" in all languages, I think. Bayahiu (talk) 06:59, 2 May 2026 (UTC)
It allows for the parameter's name to be translated. Pinging @Pols12 who created it. NguoiDungKhongDinhDanh 07:28, 2 May 2026 (UTC)- Actually, scratch that. The correct explanation is that it prevents the name of the parameter from being translated along with the rest of the sentence. NguoiDungKhongDinhDanh 17:36, 2 May 2026 (UTC)
- @Bayahiu, it isn't breaking anything. tvar keeps "type" (what is wrapped inside tvar) as static, and allows the display title to be translated only. What does it exactly break for you? signed, Aafi (talk) 08:50, 2 May 2026 (UTC)
- @Aafi, for example in this page Wikimedia maintenance notice/id where it displays "page ini" instead of "Laman ini" (Template:Historical/text/id), or in this page Wikipedia Language Challenge/de where it displays "Diese page" instead of "Diese Seite" (Template:Historical/text/de). It is not immediately visible if you look at the translated pages of the template. Bayahiu (talk) 09:08, 2 May 2026 (UTC)
- The problem is “page” is hardcoded in Template:Historical. @Admins, please replace
|type={{{type|page}}}with{{#if:{{{type|}}}|{{!}}type={{{type|}}}}}. Tested in sandbox, looks fine. - -- Pols12 (talk) 18:11, 2 May 2026 (UTC)
- @Pols12: I don't think that works.
{{!}}will be treated as a literal pipe, not as part of the template syntax. Try giving the parameter a default value:{{#if:{{{type|some type}}}|{{!}}type={{{type|some type}}}}}. NguoiDungKhongDinhDanh 20:33, 2 May 2026 (UTC)- Thank you NguoiDungKhongDinhDanh for noticing my error. Since we can’t proceed like that, I have edited Template:Historical/text to handle the default case where “page” is provided. That should fix the issue. --Pols12 (talk) 21:51, 2 May 2026 (UTC)
- It works now, thank you! Bayahiu (talk) 22:09, 2 May 2026 (UTC)
- Thank you NguoiDungKhongDinhDanh for noticing my error. Since we can’t proceed like that, I have edited Template:Historical/text to handle the default case where “page” is provided. That should fix the issue. --Pols12 (talk) 21:51, 2 May 2026 (UTC)
- @Pols12: I don't think that works.
- The problem is “page” is hardcoded in Template:Historical. @Admins, please replace
- @Aafi, for example in this page Wikimedia maintenance notice/id where it displays "page ini" instead of "Laman ini" (Template:Historical/text/id), or in this page Wikipedia Language Challenge/de where it displays "Diese page" instead of "Diese Seite" (Template:Historical/text/de). It is not immediately visible if you look at the translated pages of the template. Bayahiu (talk) 09:08, 2 May 2026 (UTC)
