Hi,
Is there an easy way to get 2 spaces between words? All spaces except 1 are removed and I can't think of a way to get two spaces. Why? In The Netherlands two spaces should appear in the address between postal code and place in print-outs.
Thanks in advance, Ad
On Fri, 11 Jan 2013 16:35:24 +0100, Ad Strack van Schijndel ad.strackvanschijndel@gmail.com wrote:
Hi,
Is there an easy way to get 2 spaces between words? All spaces except 1 are removed and I can't think of a way to get two spaces. Why? In The Netherlands two spaces should appear in the address between postal code and place in print-outs.
Use a non-breakable space character or it's HTML entity code, .
https://en.wikipedia.org/wiki/Non-breaking_space
On Fri, January 11, 2013 16:35, Ad Strack van Schijndel wrote:
Is there an easy way to get 2 spaces between words? All spaces except 1 are removed and I can't think of a way to get two spaces. Why? In The Netherlands two spaces should appear in the address between postal code and place in print-outs.
MediaWiki produces HTML and HTML "eats" white space. You can use non-breaking spaces ( or  ) in your MediaWiki page source[1]. See https://translatewiki.net/wiki/User:Siebrand/test for quick proof of concept. To make it easier on yourself, you could decide to put "  " in a template and use {{--}} or something instead.
You can also decide to ignore all rules, and use one space to separate postal code and place. I doubt you'll do too much jail time.
Kop op!
Siebrand
Hi Siebrand,
Matma Rex already put me on the right track (thanks Matma!) The easy way seems to be the {{spaces}} template. I copied it, and the underlying templates, and it works fine. And it may be worse than jail time: a customer of mine wants it! :-).
Ad
On 11 januari 2013, at 17:05, "Siebrand Mazeland" s.mazeland@xs4all.nl wrote:
On Fri, January 11, 2013 16:35, Ad Strack van Schijndel wrote:
Is there an easy way to get 2 spaces between words? All spaces except 1 are removed and I can't think of a way to get two spaces. Why? In The Netherlands two spaces should appear in the address between postal code and place in print-outs.
MediaWiki produces HTML and HTML "eats" white space. You can use non-breaking spaces ( or  ) in your MediaWiki page source[1]. See https://translatewiki.net/wiki/User:Siebrand/test for quick proof of concept. To make it easier on yourself, you could decide to put "  " in a template and use {{--}} or something instead.
You can also decide to ignore all rules, and use one space to separate postal code and place. I doubt you'll do too much jail time.
Kop op!
Siebrand
[1] http://www.maproom.co.uk/invis1.htm
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org