Last modified: 2011-04-14 15:13:47 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 T25573, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23573 - Allow default link text to be assigned when a transcluded template doesn't exist
Allow default link text to be assigned when a transcluded template doesn't exist
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-17 21:12 UTC by Adam Cuerden
Modified: 2011-04-14 15:13 UTC (History)
1 user (show)

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


Attachments

Description Adam Cuerden 2010-05-17 21:12:47 UTC
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.

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


Navigation
Links