Jump to content

Topic on User talk:Shirayuki

Question about code of the Template:Languages

3
Want (talkcontribs)

Hi Shirayuki. I found out that you added 17.7.2019 a change Special:Diff/3319554/3319557 to the Template:Languages, which I don't understand how it works.

I don't know nothing about attributes for the tag 'languages', but code use inline attribut 'exists'. Why? Function #ifeq four arguments, accepted, but result is still false (because tag 'languages' element with attribut not exists). Could you please clarify this for me? Thank you. -- Want (talk) 15:20, 15 July 2024 (UTC)

Shirayuki (talkcontribs)
Want (talkcontribs)

Your believe is a wrong. I prepared as example three pages to you on my wiki:

Note that the #ifeq function returns FALSE forever if used tag languages, regardless of whether the page is being translated or not.

Only test for the existence of a language version subpage of the marked page works. It returns TRUE for 'test-translate' because the test-translate/cs page exists - the page has been marked for translation, but for 'test-insert' return FALSE code because subpage test-insert/cs not exist. It's exactly the same for the translated template. -- Want (talk) 05:07, 16 July 2024 (UTC)

Reply to "Question about code of the Template:Languages"