Page MenuHomePhabricator

[Task] Transclude mediainfo entity in file-page
Closed, ResolvedPublic


Possible wikitext snippet to transclude a page from the MediaInfo namespace: {{:MediaInfo:M{{PAGEID}}}}. By default this does no transclusion but creates a link, but even this is already useful. We could put this snippet in the Information template and/or make actual transclusion possible.

For the first prototype this can also be a simple tab in the top tab bar, if it turns out actual transclusion is too much of a hassle.

Inverse of T134260: [Task] Link from MediaInfo entity to file description page.

Related Objects

Event Timeline

NOTE: Transclusion of fully rendered HTML pages, including their auxiliary information like resource loader modules etc, is not easily done. In core, there is a hack for doing this for Special pages, but the transclusion mechanism for regular pages is only defined for wikitext on both sides. For actual template transclusion to work for entity pages, a major refactoring would be needed in core.

Related code experiment:

Change 300292 had a related patch set uploaded (by Jonas Kress (WMDE)):
Inject link to MediaInfo on file description pages

Jonas moved this task from Review to Done on the Wikidata-Sprint-2016-07-19 board.

Change 300292 merged by jenkins-bot:
Inject link to MediaInfo on file description pages