Last modified: 2014-02-24 19:17:59 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 T6913, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4913 - {{msgnw:foo}} should preserve new lines
{{msgnw:foo}} should preserve new lines
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.23.0
All All
: Low trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Templa...
: newparser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-08 04:00 UTC by lɛʁi לערי ריינהארט
Modified: 2014-02-24 19:17 UTC (History)
2 users (show)

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


Attachments

Description lɛʁi לערי ריינהארט 2006-02-08 04:00:43 UTC
Hallo!

Opening this bug because bug 47 (found with search msgnw) seams to relate to
somthing else.

Wiki syntax specifies topics which depend on "beginning of lines" (as list
syntax, table syntax).

However {{msgnw:foo}} does not preserve lines. This will force users to edit
'foo' in order to identify these syntax errors.

best regards reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2006-02-10 20:02:13 UTC
*examples*
Some MediaWiki messages are very difficult to "understand" to "debug". This is
why the source code of the page is written over more lines:
http://yi.wiktionary.org/w/index.php?title=MediaWiki:Edittools&action=edit
http://yi.wiktionary.org/w/index.php?title=MediaWiki:Ipboptions&action=edit

Keeping this as it is is the request from
Bug 4356: keep ignoring new lines in [[MediaWiki:Ipboptions]]

However
http://yi.wiktionary.org/wiki/MediaWiki_talk:Edittools#msgnw:MediaWiki:PAGENAME
http://yi.wiktionary.org/wiki/MediaWiki_talk:Ipboptions#msgnw:MediaWiki:PAGENAME
is more difficult to understand.

As described in bug 4946 comment 5 {{msgnw:}} can be used for documentation. It
would be very usefull to see the same content *line by line* as seen in edit
especially if the browsers bidirectional algorithm would change the word order
because BiDi rendering over more lines is *not* the same as BiDi rendering of
single lines.

best regards reinhardt [[user:gangleri]]
Comment 2 lɛʁi לערי ריינהארט 2006-04-23 10:16:25 UTC
*comment*

neither {{msgnw:foo}} nor <pre> ... </pre> preserves the "source" in respect to
character encoding using &:
&ndash; renders as "–" and the coding of the "source" is visible only with edit
/ view source.

&#160; will not be visible because this is &nbsp; &#xa0; Unicode Character
'NO-BREAK SPACE' (U+00A0).

I would consider it as an improuvement if both {{msgnw:foo}} and <pre> ...
</pre> would "escape" such characters. It would make writing documentation much
more easy and consistent.
Comment 3 Andre Klapper 2014-02-24 19:17:59 UTC
Still valid, see e.g. https://en.wikinews.org/w/index.php?title=Help:MediaWiki_namespace&oldid=1163290#MSGNW for an example.

For the records:
https://www.mediawiki.org/wiki/Help:Templates says:
{{msgnw:Name}} includes the template in a form that displays it as raw wiki syntax (the way <nowiki> does) when the page containing it is fetched.

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


Navigation
Links