ABreault (WMF)
Joined 1 September 2014
Latest comment: 1 year ago by ABreault (WMF) in topic Need help with Databox template (localisation)
- Help & FAQ
- Manual (to create a wiki)
- Community portal
- Editing help
- Language support
- <translate> Sandbox</translate>
Welcome to Wikimedia Incubator!
At the right there are some important links, and here are some tips and info:
- If you haven't created a user page yet, please create one with for example Babel templates on it.
- You can select your interface language in your preferences.
- If you make articles, templates or categories, don't forget to add a prefix!
- If your knowledge of English is good, you can help with translating pages to other languages you know, so more people can understand it!
- If you want to translate the interface, please go to Translatewiki.net and follow the instructions.
Need help with Databox template (localisation) edit
Hi,
I'm trying to localise Databox for Sylheti language (syl). I can get the main item level in [syl] example usage
May you please have a look and help. we need to get Label syl from other items for the databox.
Thanks ꠢꠣꠍꠘ ꠞꠣꠎꠣ (talk) 04:05, 19 April 2023 (UTC)
- Here's a language that got it to work on Incubator,
- https://incubator.wikimedia.org/wiki/Module:Wp/sms/Databox
- for example,
- https://incubator.wikimedia.org/wiki/Wp/sms/Nu%C3%B5rtts%C3%A4%C3%A4%CA%B9m%C7%A9i%C3%B5ll
- So try copying the module source from there. You might want to hardcode
lang = mw.language.new('syl')
instead of all the options they have to set the language. - However, if I look at this data item from the example you provided,
- https://www.wikidata.org/wiki/Q466221
- and check one of the properties
- https://www.wikidata.org/wiki/Property:P2561
- there's no translation for the label in syl. So, no matter what you do, it's not going to work unless the translation is in wikidata. ABreault (WMF) (talk) 17:19, 20 April 2023 (UTC)