Last modified: 2014-08-19 13:53:45 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.
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?
It is expected behavior since af66fecb2d887e917bcb57e2377a71c3cdab987c.
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
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.