https://bugzilla.wikimedia.org/show_bug.cgi?id=23573
Summary: Allow default text to be assigned when a transcluded
template doesn't exist
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l