Page MenuHomePhabricator

output of {{#nowiki}} differs from <nowiki>
Closed, DeclinedPublic

Description

Author: wikimedia.bugzilla

Description:
<nowiki><pre>test</pre></nowiki> outputs &lt;pre&gt;test&lt;/pre&gt;

{{#tag:nowiki|<pre>test</pre>}} outputs <pre>test</pre>


Version: 1.17.x
Severity: normal
Whiteboard: wontfix?, aklapper-moreinfo

Details

Reference
bz30097

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:54 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz30097.
bzimport added a subscriber: Unknown Object (MLST).

Valerie.m.juarez wrote:

The Wiki Markup page ( https://en.wikipedia.org/wiki/Help:Wiki_markup#Nowiki ) says that "When used in a template, <nowiki> simply does not work as you may expect." Look under the header 'Use in templates.'

Closing as WONTFIX.

Note, this is intended behavior.

The entire point of introducing #tag:ref was so people could do this sort of thing.

Valerie.m.juarez wrote:

Thank you for the clarification!