Last modified: 2013-04-08 11:02:08 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 T30588, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28588 - Escape asterisks (*) in {{PAGENAME}}
Escape asterisks (*) in {{PAGENAME}}
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: newparser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-18 01:14 UTC by 28bytes
Modified: 2013-04-08 11:02 UTC (History)
4 users (show)

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


Attachments

Description 28bytes 2011-04-18 01:14:57 UTC
Deleted pages beginning with asterisks (*) don't render properly; * is inappropriately converted to bullets, breaking the links and layout.

Example page:

http://en.wikipedia.org/w/index.php?title=*_Scrapper&redirect=no&rcid=437086872

Possibly related to 12974.
Comment 1 Krinkle 2011-04-18 20:03:26 UTC
Not related to the page being deleted.


It has to do with en.wikipedia's local [[MediaWiki:Newpagetext]] and the like. They contain {{PAGENAME}} (which, when returning *,  on a new line) starts a list.

{{PAGENAME}} should either escape * like it escapes ' to '.
Or the parser should tried it with <nowiki> (like some wikis do now by working around with {{#tag:nowiki|{{PAGENAME}}}}
Comment 2 Bawolff (Brian Wolff) 2011-04-18 22:22:34 UTC
This is a dupe of something else and was fixed a while back (Should be able to see the fix in the 1.18 release).
Comment 3 Mormegil 2011-04-23 19:48:47 UTC
<rant>
OMG! Instead of finally fixing bug 12974, we’ll keep adding more and more workarounds, breaking more stuff in the process…

So, now that we patched asterisks in {{PAGENAME}}, code like “{{#ifeq:{{PAGENAME}}|*A|We are on *A|We are somewhere else}}” does not work <http://jdem.cz/k9yn4>. And we still did not fix code like 7{{#if:{{multiply}}|*|+}}3 <http://jdem.cz/k9yp8>.
</rant>

(In reply to comment #2)
The fix is r80511, this being ±a duplicate of bug 26781.
Comment 4 Bawolff (Brian Wolff) 2011-04-23 22:32:11 UTC
(In reply to comment #3)
> <rant>
> OMG! Instead of finally fixing bug 12974, we’ll keep adding more and more
> workarounds, breaking more stuff in the process…
> 
> So, now that we patched asterisks in {{PAGENAME}}, code like
> “{{#ifeq:{{PAGENAME}}|*A|We are on *A|We are somewhere else}}” does not work
> <http://jdem.cz/k9yn4>. And we still did not fix code like
> 7{{#if:{{multiply}}|*|+}}3 <http://jdem.cz/k9yp8>.
> </rant>
> 
> (In reply to comment #2)
> The fix is r80511, this being ±a duplicate of bug 26781.

Clearly the solution is to not have programming constructs in wiki-syntax :P. (or just do {{#ifeq:{{PAGENAME}}|&#42;A|yes|no}} )
Comment 5 Krinkle 2011-05-02 21:30:14 UTC
(from BugTriage of Mon, April 18 2011)

> http://bugzilla.wikimedia.org/28588: Escape asterisks (*) in {{PAGENAME}}
> Template problem or parser? Parser.
> Source is en.wiki's [[MediaWiki:Newarticletext]] which uses {{PAGENAME}} and
>   puts * into wiki markup (list item)
> We should escape this like we do with ' and " (to avoid '''{{PAGENAME}}'''
>   going crazy if title contains ''') ?
> Or, internally "<nowiki>"-fy it. Workaround on some wikis is
>  {{#tag:nowiki|{{PAGENAME}}}} parser bug has been around forever newparser

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


Navigation
Links