Page MenuHomePhabricator

Some messages use HTML code, not wikicode and result in formatting errors
Closed, InvalidPublic

Description

Author: usermono

Description:
MediaWiki:Tpt-discouraged-language-force and MediaWiki:Tpt-discouraged-language both use <strong></strong> tags by default. These do not render text as bold in the actual extension. They should be changed to bold tags like '''this'''.


Version: unspecified
Severity: minor

Details

Reference
bz58918

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:23 AM
bzimport set Reference to bz58918.
bzimport added a subscriber: Unknown Object (MLST).

I don't understand the bug report. Unless the message accepts raw html (which it should not, if it does it is a bug), either <strong> and ''' work at the same time, or neither of them works.

The code is:
241- new mw.Api().parse(
242- mw.message( group.priorityforce ?
243: 'tpt-discouraged-language-force' :
244- 'tpt-discouraged-language',
245- '',
246- $.uls.data.getAutonym( targetLanguage ),
247- preferredLanguages.join( ', ' )
248- ).parse()
249- ).done( function ( parsedWarning ) {
250- $groupWarning.html( parsedWarning );
251- } );

So it is in JavaScript but it is parsed via the API. I'm confused though why the input to the API call is parsed first, as that would lead to double escaping if there were links and stuff.

This needs steps to reproduce.

Nikerabbit claimed this task.

No steps to reproduce.