Last modified: 2010-05-28 21:24:56 UTC
The most use of wrapWikiMsg is "<div class='mw-history-legend'>\n$1</div>", but it is better to also add a newline behind $1. The problem is, when the wrap message use a list at the end, the closing div is added to the last item of this list. But the parser closed the list behind the div, so the ol and div are in the wrong order. On normal wikipages, HTML Tidy is correted this, but for system message HTML Tidy is not used (expensive). Example Wikitext: Text * item * item is wrapped: <div class='mw-history-legend'> Text * item * item</div> ParserOutput: <div class="mw-history-legend"> <p>Text </p> <ul><li> item </li><li> item</div> </li></ul>
Created attachment 7413 [details] untested patch for wrapWikiMsg in trunk
Applied in r67029.