https://bugzilla.wikimedia.org/show_bug.cgi?id=55998

--- Comment #2 from Helder <[email protected]> ---
(In reply to comment #1)
> How does ptwiki decide which language variant to use in an article?

In general, the editors should use the variant adopted by the first editor o a
page, unless they are doing substantial changes to the text (as in 50% or
more), The exception to this rule is the case of articles tightly related to a
specific (Portuguese speaking) country, where it is preferred to use the
variant of that country. This is documented at
https://pt.wikipedia.org/wiki/WP:Vers%C3%B5es_da_l%C3%ADngua_portuguesa

Consequently, since there are infoboxes containing information written in
pt-BR, and infoboxes written in pt, in order to use data from Wikidata without
suddenly changing part of the article contents from pt-BR to pt (or viceversa),
we should be able to specify the language variant to be used for the
information obtained from Wikidata.

For an example, consider the citation template [[pt:Template:Citar web]], which
has a parameter "lang" (accepting the values "pt" and "br"). This parameter is
passed to [[pt:Template:Língua-meta]] together with the parameter "língua3"
(the code of the language used in the citation, e.g. "cs"), to get the
description of the language in the variant selected. E.g. the code "cs" is
converted to "tcheco" if "lang=br" and to "checo" if "lang=pt". As you can
imagine, citation templates like these are used everywhere, and the lang
parameter seems to be used 4872 times, according to
http://toolserver.org/~kolossos/templatetiger/template-parameter.php?template=citar%20web&lang=ptwiki

Another example is [[pt:Template:MONTHNAME]], which also has a "lang" parameter
to decide if the name should be in lowercase (pt-BR) or uppercase (other
variants), and is transcluded 80,000+ times:
https://pt.wikipedia.org/wiki/Template:MONTHNAME?action=info&uselang=en#mw-pageinfo-transclusions

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to