Last modified: 2006-06-21 17:44:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6380 - Obtaining class name for innerlinks pointing to (un)existing articles.
Obtaining class name for innerlinks pointing to (un)existing articles.
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-20 10:20 UTC by Nux
Modified: 2006-06-21 17:44 UTC (History)
0 users

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


Attachments

Description Nux 2006-06-20 10:20:23 UTC
This is a feature request for a possibility stated above.

Generally, I would like to be able obtain the class name and then react with a
#switch to display some text when the article exists and some other text if it
doesn't. Some extra styling to texts could also be done with that.

Proposed syntax:
{{linkclass:Article name}}

I belive this wouldn't be much to do - just parsed as:
[[Article name]]
but only class displayed.
Comment 1 Phil Boswell 2006-06-20 13:22:54 UTC
Have you checked out {{#ifexist}} at [[m:ParserFunctions]]?

This would appear to do what you want: 
http://meta.wikimedia.org/wiki/ParserFunctions#.23ifexist:
Comment 2 Nux 2006-06-21 17:44:22 UTC
I guess someone just read my mind ;). Thanks for the links :).

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


Navigation
Links