Last modified: 2011-03-13 18:05:47 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 T18034, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16034 - <nowiki> block transferred to HTML when <nowiki> in template
<nowiki> block transferred to HTML when <nowiki> in template
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.14.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://test.wikipedia.org/wiki/User:D...
: need-parsertest, parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-19 02:22 UTC by Danny B.
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

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


Attachments

Description Danny B. 2008-10-19 02:22:08 UTC
{{pnw-start}} contains

<poem><nowiki>


{{pnw-end}} contains

</nowiki></poem>



{{pnw-start}}
some wikitext here
{{pnw-end}}

some wikitext is rendered as there was no <nowiki> block.


Test case:
http://test.wikipedia.org/wiki/User:Danny_B./Bugs/Nowiki
Comment 1 Fran Rogers 2008-10-19 05:31:38 UTC
This is expected behavior due to the way the parser works internally; tags like <poem> and <nowiki> are all expanded before templates and parser functions. Thus, your {{pnw-start}} is creating new <poem> and <nowiki> blocks with no content that are immediately closed by the parser at the end of that template.

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


Navigation
Links