Community Wishlist Survey 2019/Miscellaneous/Shared Multilingual Templates and Modules available to all wikis

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal ►

 ◄ Back to Miscellaneous  The survey has concluded. Here are the results!


  • Problem: Every wiki has to maintain its own its own templates and modules. They are often copied from other wikis and translated, but any fixes and improvements to the original templates often do not get copied, making them very hard to maintain. This is especially bad for the smaller wikis because they often do not have enough technical volunteers to maintain it.
  • Who would benefit: Content contributors
  • Proposed solution: Ideally this should be fixed in MediaWiki, but that may take too long. A much simpler and quicker solution is to use already existing technologies, and create a bot that will do most of what we need. A typical workflow for the multilingual templates and modules:
  • A template or a module is created on mediawiki.org (MW is better because its community is more dev-focused, whereas Commons tends to be content-focused)
  • all localization strings are placed in the tabular data on Commons to simplify translation
  • template parameters are also placed in a tabular data on Commons
  • All strings are used via the Module:TNT
  • Some well known infobox is placed at the top of the template/module documentation to indicate that this module is shared between multiple wikis, and should not be changed anywhere else.
  • A bot looks for all modules/templates on MW.org that have that infobox, and copies them automatically to all other wikis using the sitelink list in Wikidata
  • If someone wants to use that template/module in a wiki X, they just need to copy/paste it to the wiki X, and add the sitelink - the bot will automatically keep it up to date from there on.
  • If a wiki decides to "fork" their version, they can simply remove the infobox from the docs.

Discussion[edit]

  • See also Community Wishlist Survey 2019/Archive/Centralized templates and modules and Community Wishlist Survey 2019/Miscellaneous/Centralised language independent wikiproject for modules and templates. This proposal in a nutshell seems to be "doing it in MediaWiki is too hard, so hack it up with a bot". Anomie (talk) 16:07, 11 November 2018 (UTC)
    @Anomie: thx for the links. Yes, this proposal is a stopgap until MediaWiki implements it, AND it can be easily migrated to a more permanent solution once it becomes available. --Yurik (talk) 20:15, 11 November 2018 (UTC)
  • I've said this elsewhere, but "Module:TNT" is a garbage name. What is the point of the module? Name it that. --Izno (talk) 01:12, 12 November 2018 (UTC)
    @Izno:, there was a reason for such name -- it has to be short, and it should NOT be language-specific. Unlike all other templates and modules, TNT must be named the same way in all languages, so that templates and modules that use it would not have to be changed when copied from wiki to wiki. --Yurik (talk)
    So you chose en:TNT? :) As for "TNT must be named the same way in all languages, so that templates and modules that use it would not have to be changed when copied from wiki to wiki", this seems like an artificial restriction. If it is a template, and it's used for meta templates, it probably doesn't need a localized name (since most programmers are willing to program in English). And for where it's not used in meta templates, TNT does not tell them anything at all! --Izno (talk) 01:26, 12 November 2018 (UTC)
    It has to be short AND not already taken in any of the wikis. So yes, I had to do some considerable checking in all of the wikis to make sure. Some wikis are very serious about English names, e.g. I had a big discussion in dewiki trying to convince them to add a redirect to some well know help template to simplify the copying. They said they do not want any English-named content, even including a redirect. Also, considering that you will have to use TNT all over your modules and templates (one for each localized message string), the shorter the better. --Yurik (talk) 01:51, 12 November 2018 (UTC)
    P.S. Turns out it wasn't fully random either -- TNT Template (not Module) is already used as a redirect for Translatable template. --Yurik (talk) 22:04, 14 November 2018 (UTC)
  • I have a vaguely similar project (in development) at T187749, except instead of a bot it uses a MediaWiki extension to sync wiki pages to a git repo. It's meant more for CSS/JS than modules/templates (which benefit from integration with the wiki editor, and have a more complex localization ecosystem) but might be a starting point for handling this in another way. --Tgr (talk) 21:00, 26 November 2018 (UTC)

Voting[edit]

  • Support Support Liuxinyu970226 (talk) 04:25, 17 November 2018 (UTC)
  • Support Support Rob Kam (talk) 10:02, 17 November 2018 (UTC)
  • Support Support ديفيد عادل وهبة خليل 2 (talk) 11:25, 17 November 2018 (UTC)
  • Support Support Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:07, 17 November 2018 (UTC)
  • Support Support Naseweis520 (talk) 15:27, 17 November 2018 (UTC)
  • Support Support Theklan (talk) 18:15, 17 November 2018 (UTC)
  • Support Support Barcelona (talk) 19:00, 17 November 2018 (UTC)
  • Support Support Helder 20:42, 17 November 2018 (UTC)
  • Support Support Capankajsmilyo (talk) 00:01, 18 November 2018 (UTC)
  • Support Support Megalibrarygirl (talk) 02:27, 18 November 2018 (UTC)
  • Support Support Jon Harald Søby (talk) 12:38, 18 November 2018 (UTC)
  • Support Support JackPotte (talk) 22:16, 18 November 2018 (UTC)
  • Neutral Neutral Like "central repository" but bot is workaround. --Wargo (talk) 23:39, 18 November 2018 (UTC)
    Wargo, I'm all for creating a "proper" central repository, but we have been waiting for it for 18 years :). So might as well get something working with minimal effort and use it now. Once the MediaWiki can support central repositories, it can simply use these templates/modules we will create. --Yurik (talk) 01:03, 19 November 2018 (UTC)
  • Support Support Shizhao (talk) 02:50, 19 November 2018 (UTC)
  • Support Support β16 - (talk) 13:55, 19 November 2018 (UTC)
  • Support Support Ghybu (talk) 02:14, 20 November 2018 (UTC)
  • Support Support Core support would be better. But hackfix solution is fine too. Vort (talk) 06:02, 20 November 2018 (UTC)
    There's no sign of WMF ever giving templates for non-WMF users any priority. --Rob Kam (talk) 10:01, 20 November 2018 (UTC)
  • Support Support Gareth (talk) 16:20, 20 November 2018 (UTC)
  • Support Support Doc James (talk · contribs · email) 18:13, 20 November 2018 (UTC)
  • Support Support Novak Watchmen (talk) 01:35, 21 November 2018 (UTC)
  • Support Support JopkeB (talk) 09:14, 21 November 2018 (UTC)
  • Support Support JAn Dudík (talk) 09:11, 22 November 2018 (UTC)
  • Support Support. This is likely to be a colossal undertaking due to the social challenges, resulting from recent general hesitation to globalise things recently (cf. the English Wikipedia's negative reactions to centralising things using Wikidata). That said, that hesitation alone is not a good enough reason to not do this, it's just something that needs awareness and support from, for example, the Community Relations Specialists. --Deskana (talk) 11:59, 22 November 2018 (UTC)
  • Support Support No such user (talk) 19:30, 22 November 2018 (UTC)
  • Support Support MisterSynergy (talk) 09:56, 23 November 2018 (UTC)
  • Support Support Sannita - not just another it.wiki sysop 00:49, 24 November 2018 (UTC)
  • Support Support Matěj Suchánek (talk) 09:12, 24 November 2018 (UTC)
  • Support Support Hmxhmx 11:15, 24 November 2018 (UTC)
  • Support Support Victorgibby 03:07, 25 November 2018 (UTC) La mejor propuesta de todas
  • Support Support IKhitron (talk) 19:38, 25 November 2018 (UTC)
  • Support Support Uanfala (talk) 23:34, 25 November 2018 (UTC)
  • Support Support — AfroThundr (u · t · c) 03:13, 26 November 2018 (UTC)
  • Support Support Ghilt (talk) 15:50, 26 November 2018 (UTC)
  • Support Support PMG (talk) 17:07, 26 November 2018 (UTC)
  • Support Support PJTraill (talk) 00:10, 27 November 2018 (UTC)
  • Support Support yeah, enough of broken templates and modules, especially lua ones Cohaf (talk) 00:12, 27 November 2018 (UTC)
  • Support Support Zache (talk) 14:10, 27 November 2018 (UTC)
  • Support Support --Nemo 22:36, 27 November 2018 (UTC)
  • Support Support Kpjas (talk) 10:24, 29 November 2018 (UTC)
  • Support Support Dumbassman (talk) 18:07, 29 November 2018 (UTC)