Template talk:Space
From Wikipedia, the free encyclopedia
Examples:
- abcdefghij
- a cdefghij
- a defghij
- a efghij
- a 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.
- {{space|1}}... x y 1_z
- {{space|2}}... x y 2_z
- {{space|3}}... x y 3_z
- {{space|4}}... x y 4_z
- {{space|5}}... x y 5_z
- {{space|6}}... x y 6_z
- {{space|7}}... x y 7_z
- {{space|8}}... x y 8_z
- {{space|9}}... x y 9_z
- {{space|10}}... x y 10_z
- {{space|11}}... x y 11_z
- {{space|12}}... x 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| }}
|th={{unicode| }}
|t={{unicode| }}
|en={{unicode| }}
|n={{unicode|&nsp;}}
|em={{unicode| }}
|m={{unicode| }}
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)