Last modified: 2010-03-25 16:52:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9105 - Create {{INCLUDEDPAGE}} magic word
Create {{INCLUDEDPAGE}} magic word
Status: NEW
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-02-25 20:05 UTC by Bernhard Fastenrath
Modified: 2010-03-25 16:52 UTC (History)
2 users (show)

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


Description Bernhard Fastenrath 2007-02-25 20:05:17 UTC
{{INCLUDING_PAGE}} for the name of the including page of a template when that
page is included by another page (it is not {{PAGENAME}}).

Motivation: A page (P) may include sub-pages (P1 ... Pn) and the sub-pages could
have their own talk pages. A header template (H) included by P1 ... Pn would
need to refer to [[{{TALKSPACEE}}:{{INCLUDING_PAGE}}|talk]] so a reader of P
could immediately reach the individual talk pages conveniently.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-02-25 20:11:22 UTC
{{INCLUDEDPAGE}} would seem like a better name, although probably someone can do
better than that ({{REALLYPAGENAME}}? :P).
Comment 2 Bernhard Fastenrath 2007-02-25 20:41:37 UTC
{{INCLUDEDPAGE}} takes the view of the author of page P. That doesn't make sense
when INCLUDEDPAGE could be P1 ... Pn and these could again have sub-pages P1.1
... P1.i ... Pn.1 ... Pn.j. What would be the value of INCLUDEDPAGE?

For the template it would make sense to have an {{INCLUDING_PAGE}} to allow it
to distinguish based on what page it is included by. If the page generation
doesn't work that way (has no way to change the value of {{INCLUDING_PAGE}} for
different templates included in the same page P) then it would have to be a
function {{#function-including-page:<level>}} instead (e.g. with level as an
identifier for the number of inclusion levels the including page is removed from
the template).
Comment 3 Happy-melon 2010-02-28 22:20:58 UTC
{{INCLUDEDPAGE}} is just creating {{subst:PAGENAME}} variable that updates when the template is moved.  {{INCLUDINGPAGE}} is not possible with the current preprocessor and would require a lot of work to facilitate.

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