tldr: Currently there is an extension (https://www.mediawiki.org/wiki/Extension:WikiMirror) allows mirroring a namespace to a different wiki, and allow wiki to fock or override remote pages. This task proposes to create a new wiki templates.wikimedia.org, and mirror that wiki's either Template namespace or a global namespace (TBD) to all Wikimedia wikis via WikiMirror. This will make templates defined there usable in most Wikimedia wikis (unless local wiki has a local version of template).
Full description:
There's a lot of interest in building out a global templates system separate from the Produnto system being set up for Lua modules, along the lines of Tim Starling's MVP proposal. This would require having a single global wiki to hold the actual global template pages and centralize their editing.
(Note I don't think that global templates belong on mediawiki.org, which is more software-documentation-oriented, or meta.wikimedia.org, which has its own community/process documentation and discussion focus, nor on commons.wikimedia.org which is oriented around photos and media; they deserve a distinct wiki which can be home to documentation and localization pages specific to the global templates, keeping search scope clean etc.)
WikiProject Med's community tech team is interested in actually building the global templates MVP over the next few months; what we need from WMF to make this possible is the creation of the global templates wiki and setup of the client side on the other wikis in a fully-testable environment (thus initially on beta cluster), a security review on the extension, and getting the final production templates wiki set up and extension deployed to production wikis once ready.
I recommend creating a beta templates wiki sooner rather than later so that documentation and provisional templates can be built there and hooked up to it in the future:
- Create new wiki "templateswiki" / "templates.wikimedia.org" / "TemplatesWiki" (provisional name per feedback so far)
- This should initially be on Beta Cluster only, as templates.wikimedia.beta.wmcloud.org
- Add a namespace "Global:" on it to hold the global templates distinct from local templates that happen to be there
- Double-check: are we happy with this namespace name? Or "Global template:"?
- Invite editors to start hashing out how they'd port templates with localized text segments etc
- ... -> as we actually build the MVP global templates, start plugging it into the beta wikis on both the templates wiki and the beta wikipedias as client wikis to test with.
- For beta purposes, consider installing WikiMirror extension pointed at enwiki to make it easy to import live templates from there to work on. If this is a holdup for getting things running, this is optional.
Cf older tasks T52329 (has become Scribunto-specific) and T121470 (from Community Wishlist, may want to merge together with this task).