Jump to content

Topic on User talk:Jon (WMF)

Identifying MediaWiki messages which could use mw-parser-output

6
Izno (talkcontribs)

Is there a task or anything to identify MediaWiki messages which should be emitted inside (or with the class) mw-parser-output? And/or what facility is for that on the parser side? I vaguely recall a task lying around for such.

Anyway, the reason I'm asking: I've recently moved module:message box to TemplateStyles and turned off MediaWiki:Gadget-enwp-boxes.css and several messages became unstyled (e.g. MediaWiki:Editinginterface) when viewed where they are output (e.g. when you click the edit button with 2003/2010 editors). I would prefer not to repeat lots of <div class="mw-parser-output"> and I'm sure it would be appreciated for i18n. (I guess the module can output that div if I need it in the meantime.)

Feel free to summon others who might help if you don't know the answers.

ExE Boss (talkcontribs)

I found T183603 and T281540.

Jdlrobson (talkcontribs)

I'm sorry I do not understand the issue here. When you moved module:message box to template styles what specific styles did you lose? Is it possible to get a minimum test case and an expected result that differs from the actual result?


If it relates to external links, then yes the above task would be the relevant one but as I noted in phab:T281540#7218824 I possibly don't understand the problem well enough to guide on this one.

Izno (talkcontribs)

I... actually don't know what's going on now with the specific pages above. I'm going to let the job queue and/or cache work for a couple more days to see if that's what's going on...

In the general, the takeaway should be that 1) messages that get run through the parser should get a div/span with class mw-parser-output, and 2) I thought there was a task that was about tracking such messages down.

Jdlrobson (talkcontribs)

I think User:SSastry_(WMF) would be the best person to talk to about that. I don't really know much about how the parser and how it works with templates but yes that should be how it works. Anything coming from the parser should be inside a mw-parser-output element.

Arlolra (talkcontribs)
Reply to "Identifying MediaWiki messages which could use mw-parser-output"