Last modified: 2014-01-19 15:58:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62216, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60216 - DISPLAYTITLE custom formatting break after an open parenthesis
DISPLAYTITLE custom formatting break after an open parenthesis
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-19 00:43 UTC by Dereckson
Modified: 2014-01-19 15:58 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dereckson 2014-01-19 00:43:46 UTC
{{DISPLAYTITLE:''Sweet Dreams (Are Made of This)''}} will print Sweet Dreams in italic, then from the open parenthesis, will ignore any styling markup.

This isn't consistent, as Lua allows to pass a string with parenthesis to the DISPLAYTITLE parser function: https://en.wikipedia.org/w/index.php?title=Module:Italic_title&oldid=581780064.

[ History ]

In 2006, in bug 8394, Brion Vibber, states: “The display title should indeed not contain any links or formatting codes.”

This behavior is reported to have been introduced in MediaWiki 1.9 according the same bug.

This doesn't match the last 8 years practice of our main users, Wikipedia projects, as italic titles are now widely use on Wikipedia projects for entertainment and artistic works' titles.

[ Credit ]

Thank you to LeJC and Linedwell from the French Wikipedia to have reported this bug.
Comment 1 Umherirrender 2014-01-19 10:25:52 UTC
When using the wiki syntax '{{DISPLAYTITLE:''Sweet Dreams (Are Made of This)''}}' on [[Sweet Dreams (Are Made of This)]] the whole title is italic.


The template/module was build to skip the part of the parenthesis, see template documentation. The documentation says, that you can use {{italic title|all=yes}} to force the whole title to be in italic.

WORKSFORME
Comment 2 Dereckson 2014-01-19 13:56:22 UTC
I'm reopening at UNCO, as the following works on en.wikipedia, but not on fr.wikipedia:

{{DISPLAYTITLE:''Sweet Dreams (Are Made of This)''}}
Comment 3 Dereckson 2014-01-19 13:57:36 UTC
It does work on a genuine MediaWIki installation.
Comment 4 Umherirrender 2014-01-19 15:56:21 UTC
[[fr:Sweet Dreams (Are Made of This)]]

Clear the whole page and include the wikitext from above and press preview -> WORKSFORME

Also works when added as last line, so there is a DISPLAYTITLE before, which override your inserted DISPLAYTITLE. The english template wrotes, that the user should try to insert it after existing infobox to avoid override due to the infobox.

Sounds like frwiki has a similar module/template to get this, which is used on the page. [[fr:Modèle:Titre en italique]] sounds like the right page here.
Comment 5 Umherirrender 2014-01-19 15:58:33 UTC
See bug 50449 for a possible fix to avoid this situation.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links