Page MenuHomePhabricator

{{msgnw:foo}} should preserve new lines
Open, LowPublicBUG REPORT

Description

Author: gangleri

Description:
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]]


Version: 1.23.0
Severity: trivial
URL: http://meta.wikimedia.org/wiki/Template_talk:No_LangXX

Details

Reference
bz4913

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:05 PM
bzimport set Reference to bz4913.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

*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]]

gangleri wrote:

*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.

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.

Aklapper changed the subtype of this task from "Task" to "Bug Report".Feb 5 2022, 2:33 PM
Aklapper removed a subscriber: wikibugs-l-list.