Page MenuHomePhabricator

Add variable to (dis)allow templates in signatures
Closed, ResolvedPublic

Description

Author: ironiridis

Description:
Steps to reproduce:

  1. Go into your preferences, and set your nickname to {{tl|tl}} on en.wikinews.
  2. Save your preferences.
  3. Watch your nickname get expanded to {{SUBST:tl|tl}}.

Ugly, bad, yuck, no.

One additional aspect is that it doesn't recursively expand. So a workaround is to have a template that transcludes the template you want.


Version: 1.12.x
Severity: enhancement

Details

Reference
bz11414

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:57 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz11414.
bzimport added a subscriber: Unknown Object (MLST).

ironiridis wrote:

Oh, one key thing is that I only reproduced this on en.wikinews. Version page says MediaWiki: 1.12alpha (r25939).

http://en.wikinews.org/wiki/Special:Version

This is not a bug, this is feature... ;-)

I'm pretty sure this will be WONTFIX.

ironiridis wrote:

Except that it produces an unexpected result with no explanation. Are templates disallowed in signatures or something? This should be a site policy thing, not a bug/feature of the software.

Right, templates are disallowed in sigs.

ironiridis wrote:

Why is that forced in code, as opposed to site policy?

As stated above, it is also easily circumvented. So enforcing policy in code also doesn't work.

Some $wgAllowTemplatesInSignatures for LocalSettings.php with default false might be useful.

Changed the summary to describe the issue better.

anon.hui wrote:

*** This bug has been marked as a duplicate of bug 8179 ***