Page MenuHomePhabricator

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

Description

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: https://phabricator.wikimedia.org/rMWab9d045506d9f8fd2b015e9043d4359d29550cd7

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

https://gerrit.wikimedia.org/r/300292

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

https://gerrit.wikimedia.org/r/300292