User talk:TerraCyprus/Archives/2019/10

Template:Infobox Finnish municipality

It seems there is a fault somewhere in the template hierarchy. Only the majority language gets recognized as official, although the finnish_official and swedish_official flags both are set to 1 (and only swedish_official in the case of Turku!). I checked Kokkola, Turku and Jakobstad. Are the flags ignored? I suppose it is easier for you to find the bug than for others, as you seem to be the author. --LPfi (talk) 12:50, 9 October 2019 (UTC)

I found this in Template:Data Finland municipality:
|demographics1_info1 = {{#ifeq: {{#expr: {{Data Finland municipality/native language Swedish|{{{2}}}}} > {{Data Finland municipality/native language Finnish|{{{2}}}}} }} | 1 | {{formatnum: {{percentage|{{Data Finland municipality/native language Swedish|{{{2}}}}}|{{Data Finland municipality/native language total|{{{2}}}}}|1}}}} (official) | {{formatnum: {{percentage|{{Data Finland municipality/native language Finnish|{{{2}}}}}|{{Data Finland municipality/native language total|{{{2}}}}}|1}}}} (official) }}
Not parsing all of it I suppose the code is comparing speaker numbers and printing "(official)" for the majority language. This is not how the language status is determined in Finland. Instead there are threshold percentiges and a threshold number, and these are checked every ten years. In addition a municipality can apply to keep or make also the minority language official. Therefore, the status cannot be determined directly from the numbers.
--LPfi (talk) 13:03, 9 October 2019 (UTC)