Template:Spaces is permanently
protected from editing because it is a
heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template's
documentation to add usage notes or
categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
David Kernow, please forgive my saying so but it is not very polite to go counter to GFDL and not merely "move" Template:Nbsp here. Where is my work? ( → Netscott) 12:17, 16 February 2007 (UTC)
Ok, I appreciate your cooperation. Sorry if I wasn't particularly clear intially. Cheers. ( → Netscott) 14:11, 16 February 2007 (UTC)
I don't think we need to be using Template:Loop here. Most of the uses of this template appear to use very small values for the first parameter. I'd like to add a cat here to catch any usages greater than X (maybe 5? 10?) to see what the current situation looks like. --- RockMFR 03:55, 26 June 2009 (UTC)
I've changed it to use Template:Loop15, which goes to 15 instead of 150. As of this moment, 144 pages will be affected by this change, nearly all of them in the user talk namespace. --- RockMFR 12:16, 15 August 2009 (UTC)
There's much more efficient code on Korean Wikipedia:
<span style="white-space: nowrap;">{{padleft:|{{{1|1}}}| }}</span><noinclude> <!-- The last parameter of padleft is not space(0x20), but nbsp(0xA0)!! --> {{Documentation}} </noinclude>
It also can process more NBSPs (up to 500) than current template even at lower cost. Here are preprocessor reports:
{{Spaces|1}}
)NewPP limit report Preprocessor node count: 9/1000000 Post-expand include size: 46/2048000 bytes Template argument size: 1/2048000 bytes Expensive parser function count: 0/500
NewPP limit report Preprocessor node count: 42/1000000 Post-expand include size: 59/2048000 bytes Template argument size: 22/2048000 bytes Expensive parser function count: 0/500
-- Alphanis ( talk) 14:34, 29 May 2011 (UTC)
Template {{ space}} has a similar (or the same) purpose as this template, but uses an ugly method. Could {{space}} better serve as a redirect to this template? -- Götz ( talk) 19:02, 25 May 2013 (UTC)
What idiot would name a template, which inserts a non-breaking space or spaces, just plain {{ space}}? Really... the mind boggles at the stupidity. EEng ( talk) 21:54, 22 January 2014 (UTC)
I already said it. The template should have been named nbsp and ONLY nbsp -- not space. But it's way to late for that. It's just a good example of the extremely shortshighted way so much stuff in template space just got hacked together. EEng ( talk) 22:50, 24 October 2014 (UTC)
'Suggest "spaces" as a more non-technical user-friendly name'
I agree with
User:EEng (above) that the naming here is not ideal. I suggest that {{
Space}}
and {{
Nbsp}}
(and {{
Nbsp;}}
via redirection to {{
Nbsp}}
) be wrappers of this template which do what they say, I.E. create normal and non-breaking space(s) by default. The default here should be normal spaces, per the name, but ideally a survey of actual in-article uses should be done before that behaviour is changed.
All the best:
Rich
Farmbrough, 18:29, 22 April 2019 (UTC).
and {{
nbsp}}
is preferable. IMO, a template is always preferable, because templates have documentation.-- 50.53.60.172 ( talk) 16:56, 24 October 2014 (UTC)
I wonder whether it would be a good idea to add a parameter to control the type of space produced. It would be good to have some way of producing figure spaces for alignment of numbers in tables. Adding this functionality to this template would be easy and probably a better option than creating a whole new template which does an almost identical thing. A proliferation of little templates doing little jobs isn't that useful. Whilst we're at it, the almost never used {{ nwsp}} could be merged here (possibly along with {{ thinsp}} and {{ hsp}} but they work a bit differently). Another thing, at least the name wouldn't seem so idiotic if the template produced various types of space. Jimp 18:26, 16 April 2015 (UTC)
I was wondering why style="white-space:nowrap;"
has been used around
. Can someone give an example of a situation that it makes difference?
Dalba 17 Ordibehesht 1394/ 10:26, 7 May 2015 (UTC)
This
edit request to
Template:Nbsp has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
A protected redirect, Template:Nbsp , needs redirect category ( rcat) templates added. Please modify it as follows:
#REDIRECT [[Template:Spaces]]
#REDIRECT [[Template:Spaces]] {{Redirect category shell| {{R from move}} {{R from alternative name}} {{R from template shortcut}} }}
The {{ Redirect category shell}} template is used to sort redirects into one or more categories. When {{ pp-protected}} and/or {{ pp-move}} suffice, the Redirect category shell template will detect the protection level(s) and categorize the redirect automatically. (Also, the categories will be automatically removed or changed when and if protection is lifted, raised or lowered.) Thank you in advance! Paine Ellsworth, ed. put'r there 20:12, 18 November 2018 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Consider adding parameter 'nnbsp' or 'narrow' to get a narrow non-breaking space as seen here, Non-breaking space#Width variation. One usage is around punctuation which should not be separated from a word. As is mentioned here Quotation mark#French for one instance. Shenme ( talk) 01:38, 19 November 2018 (UTC)
class="nowrap"
), I have also added a class parameter, which authors should never use in article space. —
Christoph
Päper 23:07, 22 November 2019 (UTC)
Hello. Is there a way to make the visual editor thumbnail for this template different/smaller? Right now it is big, and in my opinion makes text hard to read. Screenshot. Maybe we could use Template Data to do this. I'd be willing to make an image file (png, svg) if needed. Thank you. – Novem Linguae ( talk) 11:48, 14 January 2021 (UTC)
Once upon a time, I apparently considered to propose extended functionality for this template and added the /char subpage with additional characters and mnemonics (LaTeX, MathML, HTML, Unicode) for them. This page will probably be deleted soon, but maybe it would indeed be a good idea to add some features to this template. — Christoph Päper 17:12, 9 January 2022 (UTC)
{{#switch:{{lc:{{{1}}}}}
|n|-|–|en|ensp|enquad|nut|small|\enspace
|2|0.5|1/2
|u2000|u+2000|2000|8192
|u2002|u+2002|2002|8194
| = 
|m|--|—|em|emsp|emquad|mutton|big|\empspace|\quad
|1
|u2001|u+2001|2001|8193
|u2003|u+2003|2003|8195
| = 
|3|;|thick|three|emsp13|\;
|1/3|6/18|0.3|0.33
|u2004|u+2004|2004|8196
| = 
|4|>|mid|quarter|four|emsp14|\>
|1/4|0.25
|u2005|u+2005|2005|8197
| = 
|6|:|narrow|six|emsp16|\:
|1/6|3/18|0.16|0.17
|u2006|u+2006|2006|8198
|&emsp16;= 
|f|#|fig|figure|num|numsp
|u2007|u+2007|2007|8199
| = 
|p|?|7|punc|punct|punctuation
|u2008|u+2008|2008|8200
| = 
|t|,|5|thin|thinsp|\thinspace|\,
|1/5|0.2
|u2009|u+2009|2009|8201
| = 
|h|!|hair|hairsp
|8|1/8|0.125|0.15
|9|1/9|2/18|0.1|0.11|0.111
|u200a|u+200a|200a|8202
| = 
|d|;|med|medium|math
|4/18|2/9|0.22|0.222
|u205f|u+205f|205f|8287
|&mediumspace;= 
|$|'|nnbsp
|u202f|u+202f|202f|8287
|&nnbsp;= 
|0|!|\!|zwsp
|u200b|u+200b|200b|8203
|&negativemediumspace;|&zwsp;=​
|z|/|\/|zwnj
|u200c|u+200c|200c|8204
|‌=‌
|j|+|zwj
|u200d|u+200d|200d|8205
|‍=‍
|w|"|wj|nb|nobreak|zwnbsp
|ufeff|u+feff|feff|65279
|u2060|u+2060|2060|8288
|&nobreak;=⁠
|i|`|ideo|asian|fw|fullwidth|hanzi|kanji|cjk|emoji
|u3000|u+3000|3000|12288
|&sp;= 
|*|.|dot|cdot|middot|inter|interpunct
|u00b7|u+00b7|00b7|183
|·=·
|_|sp|sym|symbol
|u2420|u+2420|2420|9248
|&space;=␠
|b|%|blank
|u2422|u+2422|2422|9250
|␣=␢
|x|[|]|box|spsym
|u2423|u+2423|2423|9251
|&openbox;=␣
|s|{|}|sbox|nbsym
|u237d|u+237d|237d|9085
|&shoulderedbox;=⍽
|~|nbsp
|u00ad|u+00ad|00ad|uad|u+ad|ad
| =
||#default={{{1| }}}
}}
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
Replace every {nbsp} with {nbs} site-wide! Eh? -- 2601:840:8400:7970:11DD:8BF0:96F7:696F ( talk) 17:59, 17 November 2022 (UTC)
This
edit request to
Template:Space has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
A protected redirect, Template:Space , needs redirect category (rcat) templates added. Please modify it as follows:
#REDIRECT [[Template:Spaces]] {{Rcat shell|{{R from modification}}}}
#REDIRECT [[Template:Spaces]] {{Rcat shell| {{R from modification}} {{R with history}} {{R from template shortcut}} }}
The {{ Redirect category shell}} template is used to sort redirects into one or more categories. When {{ pp-protected}} and/or {{ pp-move}} suffice, the Redirect category shell template will detect the protection level(s) and categorize the redirect automatically. (Also, the categories will be automatically removed or changed when and if protection is lifted, raised or lowered.) Thank you in advance! P.I. Ellsworth , ed. put'er there 01:14, 14 February 2023 (UTC)
Template:Spaces is permanently
protected from editing because it is a
heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template's
documentation to add usage notes or
categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
David Kernow, please forgive my saying so but it is not very polite to go counter to GFDL and not merely "move" Template:Nbsp here. Where is my work? ( → Netscott) 12:17, 16 February 2007 (UTC)
Ok, I appreciate your cooperation. Sorry if I wasn't particularly clear intially. Cheers. ( → Netscott) 14:11, 16 February 2007 (UTC)
I don't think we need to be using Template:Loop here. Most of the uses of this template appear to use very small values for the first parameter. I'd like to add a cat here to catch any usages greater than X (maybe 5? 10?) to see what the current situation looks like. --- RockMFR 03:55, 26 June 2009 (UTC)
I've changed it to use Template:Loop15, which goes to 15 instead of 150. As of this moment, 144 pages will be affected by this change, nearly all of them in the user talk namespace. --- RockMFR 12:16, 15 August 2009 (UTC)
There's much more efficient code on Korean Wikipedia:
<span style="white-space: nowrap;">{{padleft:|{{{1|1}}}| }}</span><noinclude> <!-- The last parameter of padleft is not space(0x20), but nbsp(0xA0)!! --> {{Documentation}} </noinclude>
It also can process more NBSPs (up to 500) than current template even at lower cost. Here are preprocessor reports:
{{Spaces|1}}
)NewPP limit report Preprocessor node count: 9/1000000 Post-expand include size: 46/2048000 bytes Template argument size: 1/2048000 bytes Expensive parser function count: 0/500
NewPP limit report Preprocessor node count: 42/1000000 Post-expand include size: 59/2048000 bytes Template argument size: 22/2048000 bytes Expensive parser function count: 0/500
-- Alphanis ( talk) 14:34, 29 May 2011 (UTC)
Template {{ space}} has a similar (or the same) purpose as this template, but uses an ugly method. Could {{space}} better serve as a redirect to this template? -- Götz ( talk) 19:02, 25 May 2013 (UTC)
What idiot would name a template, which inserts a non-breaking space or spaces, just plain {{ space}}? Really... the mind boggles at the stupidity. EEng ( talk) 21:54, 22 January 2014 (UTC)
I already said it. The template should have been named nbsp and ONLY nbsp -- not space. But it's way to late for that. It's just a good example of the extremely shortshighted way so much stuff in template space just got hacked together. EEng ( talk) 22:50, 24 October 2014 (UTC)
'Suggest "spaces" as a more non-technical user-friendly name'
I agree with
User:EEng (above) that the naming here is not ideal. I suggest that {{
Space}}
and {{
Nbsp}}
(and {{
Nbsp;}}
via redirection to {{
Nbsp}}
) be wrappers of this template which do what they say, I.E. create normal and non-breaking space(s) by default. The default here should be normal spaces, per the name, but ideally a survey of actual in-article uses should be done before that behaviour is changed.
All the best:
Rich
Farmbrough, 18:29, 22 April 2019 (UTC).
and {{
nbsp}}
is preferable. IMO, a template is always preferable, because templates have documentation.-- 50.53.60.172 ( talk) 16:56, 24 October 2014 (UTC)
I wonder whether it would be a good idea to add a parameter to control the type of space produced. It would be good to have some way of producing figure spaces for alignment of numbers in tables. Adding this functionality to this template would be easy and probably a better option than creating a whole new template which does an almost identical thing. A proliferation of little templates doing little jobs isn't that useful. Whilst we're at it, the almost never used {{ nwsp}} could be merged here (possibly along with {{ thinsp}} and {{ hsp}} but they work a bit differently). Another thing, at least the name wouldn't seem so idiotic if the template produced various types of space. Jimp 18:26, 16 April 2015 (UTC)
I was wondering why style="white-space:nowrap;"
has been used around
. Can someone give an example of a situation that it makes difference?
Dalba 17 Ordibehesht 1394/ 10:26, 7 May 2015 (UTC)
This
edit request to
Template:Nbsp has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
A protected redirect, Template:Nbsp , needs redirect category ( rcat) templates added. Please modify it as follows:
#REDIRECT [[Template:Spaces]]
#REDIRECT [[Template:Spaces]] {{Redirect category shell| {{R from move}} {{R from alternative name}} {{R from template shortcut}} }}
The {{ Redirect category shell}} template is used to sort redirects into one or more categories. When {{ pp-protected}} and/or {{ pp-move}} suffice, the Redirect category shell template will detect the protection level(s) and categorize the redirect automatically. (Also, the categories will be automatically removed or changed when and if protection is lifted, raised or lowered.) Thank you in advance! Paine Ellsworth, ed. put'r there 20:12, 18 November 2018 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Consider adding parameter 'nnbsp' or 'narrow' to get a narrow non-breaking space as seen here, Non-breaking space#Width variation. One usage is around punctuation which should not be separated from a word. As is mentioned here Quotation mark#French for one instance. Shenme ( talk) 01:38, 19 November 2018 (UTC)
class="nowrap"
), I have also added a class parameter, which authors should never use in article space. —
Christoph
Päper 23:07, 22 November 2019 (UTC)
Hello. Is there a way to make the visual editor thumbnail for this template different/smaller? Right now it is big, and in my opinion makes text hard to read. Screenshot. Maybe we could use Template Data to do this. I'd be willing to make an image file (png, svg) if needed. Thank you. – Novem Linguae ( talk) 11:48, 14 January 2021 (UTC)
Once upon a time, I apparently considered to propose extended functionality for this template and added the /char subpage with additional characters and mnemonics (LaTeX, MathML, HTML, Unicode) for them. This page will probably be deleted soon, but maybe it would indeed be a good idea to add some features to this template. — Christoph Päper 17:12, 9 January 2022 (UTC)
{{#switch:{{lc:{{{1}}}}}
|n|-|–|en|ensp|enquad|nut|small|\enspace
|2|0.5|1/2
|u2000|u+2000|2000|8192
|u2002|u+2002|2002|8194
| = 
|m|--|—|em|emsp|emquad|mutton|big|\empspace|\quad
|1
|u2001|u+2001|2001|8193
|u2003|u+2003|2003|8195
| = 
|3|;|thick|three|emsp13|\;
|1/3|6/18|0.3|0.33
|u2004|u+2004|2004|8196
| = 
|4|>|mid|quarter|four|emsp14|\>
|1/4|0.25
|u2005|u+2005|2005|8197
| = 
|6|:|narrow|six|emsp16|\:
|1/6|3/18|0.16|0.17
|u2006|u+2006|2006|8198
|&emsp16;= 
|f|#|fig|figure|num|numsp
|u2007|u+2007|2007|8199
| = 
|p|?|7|punc|punct|punctuation
|u2008|u+2008|2008|8200
| = 
|t|,|5|thin|thinsp|\thinspace|\,
|1/5|0.2
|u2009|u+2009|2009|8201
| = 
|h|!|hair|hairsp
|8|1/8|0.125|0.15
|9|1/9|2/18|0.1|0.11|0.111
|u200a|u+200a|200a|8202
| = 
|d|;|med|medium|math
|4/18|2/9|0.22|0.222
|u205f|u+205f|205f|8287
|&mediumspace;= 
|$|'|nnbsp
|u202f|u+202f|202f|8287
|&nnbsp;= 
|0|!|\!|zwsp
|u200b|u+200b|200b|8203
|&negativemediumspace;|&zwsp;=​
|z|/|\/|zwnj
|u200c|u+200c|200c|8204
|‌=‌
|j|+|zwj
|u200d|u+200d|200d|8205
|‍=‍
|w|"|wj|nb|nobreak|zwnbsp
|ufeff|u+feff|feff|65279
|u2060|u+2060|2060|8288
|&nobreak;=⁠
|i|`|ideo|asian|fw|fullwidth|hanzi|kanji|cjk|emoji
|u3000|u+3000|3000|12288
|&sp;= 
|*|.|dot|cdot|middot|inter|interpunct
|u00b7|u+00b7|00b7|183
|·=·
|_|sp|sym|symbol
|u2420|u+2420|2420|9248
|&space;=␠
|b|%|blank
|u2422|u+2422|2422|9250
|␣=␢
|x|[|]|box|spsym
|u2423|u+2423|2423|9251
|&openbox;=␣
|s|{|}|sbox|nbsym
|u237d|u+237d|237d|9085
|&shoulderedbox;=⍽
|~|nbsp
|u00ad|u+00ad|00ad|uad|u+ad|ad
| =
||#default={{{1| }}}
}}
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
Replace every {nbsp} with {nbs} site-wide! Eh? -- 2601:840:8400:7970:11DD:8BF0:96F7:696F ( talk) 17:59, 17 November 2022 (UTC)
This
edit request to
Template:Space has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
A protected redirect, Template:Space , needs redirect category (rcat) templates added. Please modify it as follows:
#REDIRECT [[Template:Spaces]] {{Rcat shell|{{R from modification}}}}
#REDIRECT [[Template:Spaces]] {{Rcat shell| {{R from modification}} {{R with history}} {{R from template shortcut}} }}
The {{ Redirect category shell}} template is used to sort redirects into one or more categories. When {{ pp-protected}} and/or {{ pp-move}} suffice, the Redirect category shell template will detect the protection level(s) and categorize the redirect automatically. (Also, the categories will be automatically removed or changed when and if protection is lifted, raised or lowered.) Thank you in advance! P.I. Ellsworth , ed. put'er there 01:14, 14 February 2023 (UTC)