Page MenuHomePhabricator

Allow default link text to be assigned when a transcluded template doesn't exist
Open, LowPublicFeature

Description

Example. Template:Potd/2011-01-03 doesn't exist yet.

{{Potd/2011-01-03|#defaulttext=Create this template}}

would return "Create this template", which would be a redlink for Template:Potd/2011-01-03

When Template:Potd/2011-01-03 was created, {{Potd/2011-01-03|#defaulttext=Create this template}} would ignore the #defaulttext setting, and just transclude it.

Uses: Mainly in setup pages for the main pages of sites, where it's likely that things will be getting set up in a way that

Reasons: #ifexist is a high cost parser function. This would (hopefully) be a very low cost function, since the server has to know if the template exists anyway, as part of the attempt to transclude.

This would allow vastly improved user interfaces in these specific cases.


Version: unspecified
Severity: enhancement

Details

Reference
bz23573

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:05 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz23573.
bzimport added a subscriber: Unknown Object (MLST).
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.