Template talk:Spaces

From Wikipedia, the free encyclopedia
Jump to: navigation, search

(Redirection)[edit]

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)

Just spotted your post. Apologies in advance if I'm missing something, but I'm not sure what I've done "to go counter to GDFL" or lose some work...?  From here, the template seems to be functioning correctly...?  Puzzled, David Kernow (talk) 13:37, 16 February 2007 (UTC)
Well realizing that I don't own the Template:Nbsp, it still is my creation which now that you've redirected it has been essentially usurped. (Netscott) 13:44, 16 February 2007 (UTC)
Why not just move it to this name rather than this redirection? (Netscott) 13:46, 16 February 2007 (UTC)
Reading the above again, I've suddenly realized what I think you mean; I've been busy cutting and pasting material to create template /doc pages and mistakenly did the same for {{nbsp}} and {{spaces}}, compromising the history. (At least not totally, given the edit summary.)  Unless this is not what you mean, I'll happily revert and move the template as you suggest, with apologies for my error. Yours, David (talk) 14:02, 16 February 2007 (UTC)
Yes you've got it... I think that'd be the most sensible thing to do... looking at your work it seems a bit C&Pish. :-) (Netscott) 14:04, 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)

Thanks for your understanding and for prodding me. I think all this means it's time for me to take a short break!...
One other thing, the {{loop}} mod is very cool, well done. :-) (Netscott) 14:11, 16 February 2007 (UTC)
User:Polonium is the person deserving the praise; I only happened to find the template and immediately knew one place where it should be very useful. Thanks again, David (talk) 14:18, 16 February 2007 (UTC)
Yes I saw that, he's created an awesome template but I was referring to your mod of adding it here... that was very cool. :-) (Netscott) 14:20, 16 February 2007 (UTC)

Efficiency[edit]

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)

So far, nearly all of the uses > 25 are from a single user's messages on user talk pages. --- RockMFR 03:08, 14 July 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:

Call as 1({{Spaces|1}})
  • New code:
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
  • Current one:
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
15, which is maximum number of current code.
  • New: 9 / 102 / 2 / 0
  • Curr.: 70 / 311 / 122 / 0
500, max. of new one.
  • New: 9 / 2042 / 3 / 0

--Alphanis (talk) 14:34, 29 May 2011 (UTC)

Similar template[edit]

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)

Idiotic naming[edit]

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)