Last modified: 2014-06-23 16:07:08 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 T57700, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55700 - Variables in Badaccess-groups incompatible with ParserFunctions
Variables in Badaccess-groups incompatible with ParserFunctions
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.21.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-14 15:17 UTC by Hersfold
Modified: 2014-06-23 16:07 UTC (History)
0 users

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


Attachments

Description Hersfold 2013-10-14 15:17:20 UTC
Mediawiki:Badaccess-groups contains two variables:

$1: The groups that can do whatever the user was trying to do, linked to the appropriate group page
$2: The number of groups listed

I am attempting to modify this message so that it displays more relevant information based on the groups listed in $1, for example:

{{#ifeq:$1|Users|In order to view pages or perform any actions on the {{SITENAME}}, users must be logged into an enabled account. If you are not logged in, you may [[Special:UserLogin|do so now]]. If you are logged in, your account has been disabled and cannot be used to access this wiki. }}

However, this isn't working, as $1 appears to be automatically linked; even when adding the HTML code and/or wikimarkup for the link into the ParserFunction, it's not displaying the text shown. Would it be possible to add an additional variable that contains the plain-text version of each group? Thank you.

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


Navigation
Links