Page MenuHomePhabricator

indicator can't add class
Closed, InvalidPublic

Description

<indicator> can't add new class.

e.g. <div id="mw-indicator-foo" class="mw-indicator xxxx">.....</div>


Version: 1.25-git
Severity: normal

Details

Reference
bz73599

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:53 AM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz73599.
bzimport added a subscriber: Unknown Object (MLST).
Krinkle subscribed.

The only allowed attribute on <indicator> is name, which informs the parser internally about which indicator this is (there can be multiple).

To output content (which includes styles for content, such as CSS classes), use a <span> or <div> inside the indicator.

Like so:

<indicator name="foo"><span class="tpl-foo">Text</span></indicator>