Page MenuHomePhabricator

Create {{INCLUDEDPAGE}} magic word
Open, LowPublicFeature

Description

Author: Bernhard.Fastenrath

Description:
{{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.


Version: unspecified
Severity: enhancement

Details

Reference
bz9105

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:39 PM
bzimport set Reference to bz9105.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

{{INCLUDEDPAGE}} would seem like a better name, although probably someone can do
better than that ({{REALLYPAGENAME}}? :P).

Bernhard.Fastenrath wrote:

{{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?

happy.melon.wiki wrote:

{{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.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.