Page MenuHomePhabricator

Support crosswiki template inclusion (transclusion => interwiki templates, etc.)
Open, LowPublicFeature

Assigned To
None
Authored By
bzimport
Jan 10 2006, 1:27 AM
Referenced Files
None
Tokens
"Like" token, awarded by 1234qwer1234qwer4."Love" token, awarded by robkam."Like" token, awarded by Liuxinyu970226."Love" token, awarded by ahmad."Like" token, awarded by ResMar."Like" token, awarded by Yurik."Love" token, awarded by Qgil."Like" token, awarded by Kanzat."Like" token, awarded by Ricordisamoa."Like" token, awarded by Kozuch."Like" token, awarded by Nemo_bis."Love" token, awarded by DiegoQueiroz."Love" token, awarded by He7d3r.

Description

Author: Wiki.Melancholie

Description:
It should be possible to include templates that are stored on Commons. Just like we can do with images! This would be for centralized templates. Examples would be:

  1. Templates for interwiki links (interlanguage links); this would make the interlang bot activity almost unnecessary. Solved by Wikidata
  2. Templates with current information like software versions, etc.

There is much more application range, of course. This would help reducing redundancy! Currently all the work that is the same in every wiki has to be done xxx-times. With template inclusion from Commons enabled we only have to do that once. The template names could be in English, or in the language of the creator (who comes first...).

Best regards, Melancholie


Version: unspecified
Severity: enhancement
URL: http://strategy.wikimedia.org/wiki/Proposal:Data.wikimedia.org
See Also:
T58388: Pre-packaged templates for new MediaWiki installs

Details

Reference
bz4547

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
In T6547#1362094, @TTO wrote:

Nonetheless recent events have made this task ever more critical. I'm guessing from the history here that the 'iwtransclusion' branch is at this point abandonware?

Not necessarily. It was originally merged into core during the SVN days, when code review happened after merging. In this case, there were enough flaws that the code was deemed unsuitable for the impending release of MediaWiki 1.19, so it had to be reverted. However, the last few comments at https://www.mediawiki.org/wiki/Special:Code/MediaWiki/95396 are quite optimistic, so I wouldn't write it off completely.

Its probably bitrotted beyond belief at this point. It would probably have to be mostly rewritten in order to keep up with changes in core since it was written.

My point was that the approach and ideas in that code could still be very useful today for anyone who was going to go ahead and reimplement this.

In T6547#1605539, @TTO wrote:

My point was that the approach and ideas in that code could still be very useful today for anyone who was going to go ahead and reimplement this.

Oh certainly. I just don't want anyone to get the wrong impression that all they have to do is just fix a couple lines and hit the submit button. There's quite a bit of work to be done.

Unknown Object (User) subscribed.Jul 30 2018, 9:03 PM

@Nemo_bis

It's high priority because it's the first thing one should do when starting work on this MediaWiki core component i.e. templates. However, nobody has been working in this area for a while.

Do you have evidence that there are Gerrit patches to fix this problem, if not, then I don't think that this can be a reason to keep High priority for more than a decade.

This task was authored in 2006, now its 2019. This seems like a never ending process. Any comments on status and roadmap, or should this task be closed as rejected?

I would like watchlists to be allowed in templates. A watchlist for English Wikipedia. A watchlist for Meta. A watchlist for Mediawiki.org

And I want to be able to stack those watchlists on one crosswiki set of show/hide watchlists on one page. A page like this:

Wikipedia:Dashboard:
https://en.wikipedia.org/wiki/Wikipedia:Dashboard

DannyS712 lowered the priority of this task from High to Low.Sep 14 2019, 2:21 AM
DannyS712 subscribed.

Reflect actual priority for developers - I support this, but its been sitting here for so long its clearly not "high priority"

Interwiki (cross wiki) Transclusion would be extremely useful. An example is the template Infobox. This template on commons does not work at all. Transcluding it from Wikipedia would help so much.

In the task description: "Templates for interwiki links (interlanguage links); this would make the interlang bot activity almost unnecessary." Hasn't that not already been resolved with wikidata as repository for interlanguage links? @Wiki.Melancholie are you ok with updating the task description?

@Wiki.Melancholie are you ok with updating the task description?

Please note that Wiki.Melancholie is a Bugzilla user name, not a Phabricator one, so this user won’t get any notification about your ping. Although there’s no direct connection between Bugzilla user names and Meta user names, it seems quite likely that this name belongs to User:Melancholie, a user inactive for almost eleven years, so I don’t expect any answer even if someone writes on their talk page. (This also means that this user went inactive well before Wikidata’s launch eight years ago, so they had no chance to incorporate this change in the description.)

I personally think that such important justifications should not be removed from the description, but crossing it out or marking it

  • resolved

with a note about Wikidata is totally okay.

Hello, I don't know if it's the right topic here but if someone has a nice template in xxwiki, how to make it crosswiki ?
For instance, I have a frwiki template, it has a LangSwitch to help show custom text for each wiki. So that if I modify something in frwiki, I can just copy paste among wikis and basta. But someone did not like that and consider enwiki as the sole and unique wiki that shouldn't be international.... So is there another way to have "international" template?

Hi Bouzinac, this task is about supporting crosswiki template inclusion only.
Please bring up other questions in forums, e.g. https://meta.wikimedia.org/wiki/Tech - thanks! :)

Hello, I don't know if it's the right topic here but if someone has a nice template in xxwiki, how to make it crosswiki ?
For instance, I have a frwiki template, it has a LangSwitch to help show custom text for each wiki. So that if I modify something in frwiki, I can just copy paste among wikis and basta. But someone did not like that and consider enwiki as the sole and unique wiki that shouldn't be international.... So is there another way to have "international" template?

There's no good way to make it crosswiki. "Copy paste among wikis and basta" is the only thing we have. It may sound simple to somebody who is very experienced with programming templates, but for most people it's extremely difficult. This is exactly the thing that this very old request is trying to address.

I wrote what I know about the current way to import templates across wikis on the page https://www.mediawiki.org/wiki/Global_templates/Transition in the section "What happens today". The other sections on the same page are proposals of how it can be improved, and none of them are actually usable today. I asked a few experienced people, and no one could think of anything more comprehensive than what is written on that page, but if anyone reading this can think of something better, then by all means let me know.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM

See a test (for now orientative) global template at:

https://meta.wikimedia.org/wiki/Global:Template:Online_event

And more info at https://meta.wikimedia.org/wiki/Global_template

It would be interesting create a Template:Global_documentation , to use within global templates.