Last modified: 2010-05-15 15:33:22 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 T3188, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1188 - <nowiki> and <pre> in templates causes gibberish when combined with subst:
<nowiki> and <pre> in templates causes gibberish when combined with subst:
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.4.x
All All
: Normal normal with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
: 1449 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-24 04:42 UTC by Colin Pitts
Modified: 2010-05-15 15:33 UTC (History)
2 users (show)

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


Attachments

Description Colin Pitts 2004-12-24 04:42:50 UTC
If a template Foo has the following content:

    <nowiki>[[Image:Blah.jpg]]</nowiki>

And the template is included on another page with {{subst:Foo}}, then gibberish
along the following lines will be generated.

    NaodW29-nowiki72f7fedc5c4276c00000001

This occurs for any markup surrounded by <nowiki></nowiki>. If multiple nowiki
blocks exist, a separate string of gibberish will appear for each block, with
the last digit incrementing.

This was first spotted with enwiki's [[Template:Welcome]], and appears any time
it is used with {{subst:Welcome}}.

The problem does not manifest without subst:, that is {{Welcome}} displays as
expected.
Comment 1 bdk 2004-12-24 04:49:29 UTC
the same was already noticed by many users who have images within their signatures
Comment 2 Christian Semrau 2004-12-24 13:57:11 UTC
@Signatures

The problem arises from math-tags within link texts:

The link
[[Pi|<math>\pi</math>]]
did work as expected, but doesn't do now.

de:Benutzer:SirJective
Comment 3 Guttorm Flatabø 2005-02-09 09:44:21 UTC
*** Bug 1449 has been marked as a duplicate of this bug. ***
Comment 4 Guttorm Flatabø 2005-02-09 09:47:51 UTC
This also happens when SUBT:ituting templates with <pre></pre>, take a look at
http://nn.wikipedia.org/wiki/Brukar:Dittaeva/Sandkasse
where {{liminn:årstal}} were used ("liminn" is the nn translation of subst),
which should have substituted the page
http://nn.wikipedia.org/wiki/Mal:%C3%85rstal
as I'm sure you all know :-)
Comment 5 Brion Vibber 2005-03-27 02:23:24 UTC
1.4.0 released; kicking back to 1.5 blockers.
Comment 6 Brion Vibber 2005-04-20 23:32:14 UTC
Fixed in CVS HEAD and REL1_4. Will appear in 1.4.2 release.

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


Navigation
Links