Last modified: 2011-08-14 18:25:27 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 T17729, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15729 - Red links to templates should be in class "error"
Red links to templates should be in class "error"
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 22771
  Show dependency treegraph
 
Reported: 2008-09-26 04:16 UTC by René Kijewski
Modified: 2011-08-14 18:25 UTC (History)
3 users (show)

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


Attachments

Description René Kijewski 2008-09-26 04:16:28 UTC
Currently you have to use #ifexist to test if a given template exists. But it would be quite more easy and intuitive to simply wrap the actual call in #iferror without any further branches.
Comment 1 René Kijewski 2008-10-10 15:41:25 UTC
I think it had to be changed in line 02969 (next to "# If the title is valid but undisplayable, make a link to it") of includes/parser/Parser.php (r41837):

- $text = "[[:$titleText]]";
+ $text = "[[:$titleText|<span class=\"error\">$titleText</span>]]";

or something alike.
Comment 2 Mike.lifeguard 2008-11-22 18:50:21 UTC
Don't redlinks already have a class? If so, do we want to add another one/replace it?

<a href="..." class="new" title="Template:Doesn'texist (does not exist)">Template:Doesn'texist</a>
Comment 3 Andrew Garrett 2009-03-05 00:45:05 UTC
Hmm, the semantics of 'error' and 'new' are quite different IMO.
Comment 4 Happy-melon 2010-03-14 21:04:01 UTC
The error class is for just that, messages indicating an unambiguous error in page rendering.  There is nothing necessarily wrong with a redlink; it's entirely possible that that was the intention.  WONTFIX.

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


Navigation
Links