Last modified: 2013-10-26 18:38:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57998, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55998 - Wikidata have to provide a syntax to show the properties in a language different from the wiki's content language
Wikidata have to provide a syntax to show the properties in a language differ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Wikidata bugs
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-22 16:29 UTC by Helder
Modified: 2013-10-26 18:38 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2013-10-22 16:29:01 UTC
On wikis whose content is in written in more than one language (or more than one variant), it is necessary to provide a way to show the properties of an item in different languages.

This was requested back in January 2013 in the thread "Is the inclusion syntax powerful enough?",
http://lists.wikimedia.org/pipermail/wikidata-l/2013-January/001591.html
and April 2013 at
https://meta.wikimedia.org/wiki/Talk:Wikidata/Notes/Inclusion_syntax_v0.3#Alternate_languages
but since the current description of the inclusion syntax doesn't mention any way to do achieve this, I assume it is not implemented yet:
https://meta.wikimedia.org/wiki/Wikidata/Notes/Inclusion_syntax_v0.4?oldid=5701329

At a minimum, when the content language and the user language are variants of a common language (such as "pt" and "pt-br", or), we should be able to see the content in the user language. If a generic "language" parameter is provided, one could use {{int:Lang}} as a workaround (as is done on Wikimedia Commons, for template i18).

For example, in an article from ptwiki linked to [[d:Q5153194]], there should be a way to get {{#property:P36}} in both pt (rato) and pt-BR (mouse).
Comment 1 Lydia Pintscher 2013-10-24 10:39:48 UTC
How does ptwiki decide which language variant to use in an article?
Comment 2 Helder 2013-10-24 11:27:31 UTC
(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
Comment 3 Lydia Pintscher 2013-10-24 11:30:39 UTC
Thanks, Helder. That is clearer now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links