Last modified: 2012-05-27 14:23:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38347, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36347 - Special:WantedFiles: Implement indication of whether a file link comes from a transclusion
Special:WantedFiles: Implement indication of whether a file link comes from a...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-29 22:36 UTC by mdowdell
Modified: 2012-05-27 14:23 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description mdowdell 2012-04-29 22:36:05 UTC
I was referred here by Wikia Staff with not so much a bug, more a suggestion for easier performance of maintenance.

With Special:WantedFiles, there is no discrimination between files used in templates on a page and those used on the page itself. In this case the difference between {{TemplateWithFile}} and [[File:File.png]]. With large amounts of uses of a file within a a template it becomes infinitely harder to track down the usage of the file, even more so with conditional use of the file within that template. What I'm asking is a note of whether the file is transcluded through template, or linked to. Say a note next to the file "templated".
Comment 1 Thehelpfulone 2012-05-27 12:54:45 UTC
Marking as new.
Comment 2 Krinkle 2012-05-27 14:23:46 UTC
Made summary reflect the request.

Note that this feature is unlikely to be implemented any time soon due to the fact that the linking tables are flat and generated base on how the pages come out of the parser. The origin of a file link is then no longer traceable.

It has been requested in the past to keep track of this information, but the problem was so far that there are a huge amount of variations that it is hard if not impossible to keep this in a reliable way:
* A template could use <includeonly> for the main part, in which case the template doesn't "use" the file
* A template could use custom parser functions that are not part of the core software (e.g. <foo>Test.jpg</foo> , MediaWiki can't easily know what <foo> does with it. Does it use it to embed a file? Does it make a page link? Does it do something else entirely? Not to mention things like {{#if:}} which do it conditionally
* A template could accept custom parameters from the article or meta-templates in child-templates and constructing the [[File:]] embed in parts. e.g. [[File:{{{imgname|Example.svg}}}]] or with a {{#switch: }}, in which case what is and isn't use by whom is highly ambiguous.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links