Last modified: 2014-08-19 13:53:45 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 T71728, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69728 - {{DISPLAYTITLE}} shows a warning when used multiple times on a page
{{DISPLAYTITLE}} shows a warning when used multiple times on a page
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.24rc
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ms.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-19 02:39 UTC by SNN95
Modified: 2014-08-19 13:53 UTC (History)
5 users (show)

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


Attachments
Warning showing if html code put in it (72.42 KB, image/png)
2014-08-19 02:39 UTC, SNN95
Details

Description SNN95 2014-08-19 02:39:20 UTC
Created attachment 16233 [details]
Warning showing if html code put in it

This what the {{DISPLAYTITLE}} magic word show if I put html coding in it.
It function well but it keep showing the warning.
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2014-08-19 10:43:19 UTC
It happens when there are 2 instances of {{DISPLAYTITLE}} on the page (as the provided URL) with a different argument. Removing one of them doesn't display the warning anymore. If the exact same {{DISPLAYTITLE}} is placed multiple times, it doesn't display the warning neither.

Should we just silently ignore this condition? or is it expected behavior?
Comment 2 Bartosz Dziewoński 2014-08-19 10:47:17 UTC
It is expected behavior since af66fecb2d887e917bcb57e2377a71c3cdab987c.
Comment 3 Jesús Martínez Novo (Ciencia Al Poder) 2014-08-19 10:57:38 UTC
It popped up on enwiki [1]. They decided to adjust the message to add a maintenance category.

We should either WONTFIX this bug, or decide to use maintenance categories for that (and defaultsort, for consistency).

----

[1] https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29/Archive_129#DISPLAYTITLE_warning
Comment 4 Brad Jorsch 2014-08-19 13:53:45 UTC
The warning is intended behavior, to notify users that they are using DISPLAYTITLE multiple times on the page. There are flags for DISPLAYTITLE to specify "ignore this attempt without error if displaytitle is already set" and "override any earlier display title without error".

We fairly often provide a simple wikitext error message that the communities can use to add tracking categories if they want. Sometimes they even use ParserFunctions to add the tracking categories only in certain namespaces, or (as in the enwiki case you mention) apply different sortkeys to group the category by namespace, which isn't something we can flexibly do when adding the tracking category from MediaWiki itself.

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


Navigation
Links