Template talk:Space

From Wikipedia, the free encyclopedia

Examples:

  • abcdefghij
  • a cdefghij
  • defghij
  • efghij
  •  fghij
abcdefghij
a cdefghij
a defghij
a  efghij
a   fghij

Contents

[edit] Genesis June 07, 2006

I ported this over from wikisource as {{indent}}. Seems useful for when a wikitable is contraindicated, yet one wants to line up several short columns of material. Indent can NOT be used in-line because of the leading '
'. This is at genesis the only difference between the two.

Displaying with nowikis:


{{ #switch: {{{1}}} | 0 = | 1 =   | 2 =    | 3 =     | 4 =      | 5 =       | 6 =        | 7 =         | 8 =          | 9 =           | 10 =            | 11 =             | 12 =              | 13 =               | 14 =                | 15 =                 | 16 =                  | 17 =                   | 18 =                    | 19 =                     | 20 =                      | 21 =                       | 22 =                        | 23 =                         | 24 =                          | 25 =                           | 26 =                            | 27 =                             | 28 =                              | 29 =                               | 30 =                                | }}<noinclude>[[Category:Uncategorised templates]]</noinclude>


I suggested over there at wikisource that the category ought to be 'Pretty print' or the like, along the lines of a pretty print program or filter in Computer Science, esp. used in the bad old days for C, C++, etc.

Best regards, FrankB 21:33, 26 May 2006 (UTC)

[edit] Demo/Test

echoed from the commons... where something is broken.
  1. {{space|1}}... x y 1_z
  2. {{space|2}}...y 2_z
  3. {{space|3}}...y 3_z
  4. {{space|4}}... y 4_z
  5. {{space|5}}...  y 5_z
  6. {{space|6}}...   y 6_z
  7. {{space|7}}...   y 7_z
  8. {{space|8}}...    y 8_z
  9. {{space|9}}...    y 9_z
  10. {{space|10}}...     y 10_z
  11. {{space|11}}...     y 11_z
  12. {{space|12}}...      y 12_z

-apparently, something's also now broken here today too above '5'! // FrankB 15:59, 17 August 2006 (UTC)

[edit] Not clear

It is not clear what this is all about. What is the meaning of n spaces in a proportional font? In a non-proportional font, why not just use spaces, like

  99
 100
1234

Patrick 00:13, 18 August 2006 (UTC)

[edit] More

I stumbled on this template thinking "Wouldn't it be nice to have some template which produces a thin space, an en space or an em space without having to type the whole "{{unicode|&..." out? What should I call it ..."

Lo & behold the template already existed but with a different purpose ... though it's not as if its a vastly different purpose. Now, here's what I have in mind. Let's have this as a dual purpose template. Instead of my going and making a whole new template (and call it what?) let me add to this one. Here's what I'm thinking of adding (into the "").

|thin={{unicode|&thinsp;}}
|th={{unicode|&thinsp;}}
|t={{unicode|&thinsp;}}
|en={{unicode|&ensp;}}
|n={{unicode|&nsp;}}
|em={{unicode|&emsp;}}
|m={{unicode|&emsp;}}

I don't think that this will cause confusion or detract in any other way from the template. Note: I've given alternatives (e.g. "thin", "th" or just "t")—why not? It only makes things easier to use. Jɪmp 08:41, 20 June 2007 (UTC)

[edit] Six of one ≠ half a dozen of the other

What do twelve spaces look like using this template?

]            [ 12 {{space|1}}s
     [ 6 {{space|2}}s
      [ 4 {{space|3}}s
       [ 3 {{space|4}}s
      [ 2 {{space|6}}s
     [ 1 {{space|12}}
  • ]    [
  • [

The template is using a mix of ordinary spaces non-breaking spaces and em spaces thus we've got this strange disproportionality. {{space|2}}, for example, is not twice but (about) four times the width of {{space|1}}. Is there a purpose to this? Jɪmp 18:06, 21 June 2007 (UTC)