Page MenuHomePhabricator

Wrap indicators in mw-parser-output class
Closed, ResolvedPublic

Event Timeline

Deskana subscribed.

This is not an immediate priority for the initial deployment of TemplateStyles.

This comment was removed by Izno.

As a note, this can be worked around wiki-side by including an element that has the class as part of the indicator e.g.

<indicator>
  <span class="mw-parser-output">
    <templatestyles src=foo/>
    <span class="some-class">stuff</span>
  </span>
</indicator>

will output the styles into the indicator as expected. Clearly a workaround but it works ~.

Change 749284 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/core@master] WIP: Wrap all indicators with mw-parser-output

https://gerrit.wikimedia.org/r/749284

Change 770666 had a related patch set uploaded (by C. Scott Ananian; author: TheDJ):

[mediawiki/core@master] parse: Wrap indicators with a div.mw-parser-output element

https://gerrit.wikimedia.org/r/770666

Change 770666 merged by jenkins-bot:

[mediawiki/core@master] parse: Wrap indicators with a div.mw-parser-output element

https://gerrit.wikimedia.org/r/770666

Change 749284 abandoned by Bartosz Dziewoński:

[mediawiki/core@master] parse: Wrap indicators with a div.mw-parser-output element

Reason:

Superseded by https://gerrit.wikimedia.org/r/c/mediawiki/core/+/770666

https://gerrit.wikimedia.org/r/749284

matmarex assigned this task to cscott.

I'm curious: why the entire .mw-indicators block or at least the individual #mw-indicator-<id> element wasn't wrapped inside .mw-parser-output? I've found it useful to target #mw-indicator-<id> in CSS as it allows me to adjust e.g. vertical alignment of an individual indicator without affecting alignment of other indicators inside the block, and it'd be nice to do so via TemplateStyles as well.