Wikia

Harry Potter Wiki

Changes: Template:S

Edit

Back to page

(Rewrite part 1 / 2)
(Rewrite, part 2 / 2)
Line 1: Line 1:
{{#if:{{{1|}}}|{{space|{{{1}}}}}|{{space|3}}}}
+
{{#if:{{{1|}}}|{{space|{{{1}}}}}|{{space|3}}}}<noinclude>
  +
{{lts|space}}
  +
  +
==Purpose/Usage==
  +
This is a short-form 'alias' for the template {{tl|space}}, which it calls, if necessary, with the default of '3', but will also accept a numeric argument and pass same onto space.
  +
  +
*'space' is extremely useful to align things like 'monthname year' lists inside a table, but shoves the table innards around creating wrapped edit lines and disorganizing the columnar nature of such a flat table columnized list.
  +
  +
:''''s'''', by defaulting to '3' ('NN') spaces thus takes up far less width and leaves the editor less confused by replacing either 'NN' '<nowiki>& nbsp ;</nowiki>' and/or '<nowiki>& emsp ;</nowiki>' HTML codes or the 'space' template width itself allowing one to finesse things like lining up the years between a column of dates or other unequal length text fields, and other such naturally misaligning tabular data.
  +
;for example:
  +
<div style="Background-color:#cccccc; color:black"><nowiki>{{space|5}}<u>Heading one{{space|18}}Heading two:{{space|4}}</u>{{indent|5}}November 2005 <----------->{{space|5}}November&emsp;2005{{indent|5}}May 2006{{space|5}} <----------->{{space|6}}May{{space|7}}2006</nowiki></code>...{{indent}}<font color="blue">'''(all a one line entry, or can be spaced out some)''' gives: </font> </div>
  +
{{space|5}}<u>Heading one{{space|18}}Heading two:{{space|4}}</u>
  +
{{indent|5}}November 2005 <----------->{{space|5}}November&emsp;2005{{indent|5}}May 2006{{space|5}} <----------->{{space|6}}May{{space|7}}2006
  +
  +
;Note {{W2|MSIE}} technical limitations do not show the above columns properly aligned as do more advanced browsers.
  +
  +
==See also==
  +
{{indent|10}}See also {{tl|space}} && {{tl|indent}} and it's shortform {{tl|I}}. All do not give an absolutely calculable display due to the working of wiki system display software, which abhors double whitespace and whitespace clarity, but are effective work-arounds once a text line length is established... which seem to be parsed for display back to front by wiki system software.
  +
  +
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 00:33, August 31, 2007

    Template:Space (edit talk links history)

Purpose/Usage

This is a short-form 'alias' for the template {{space}}, which it calls, if necessary, with the default of '3', but will also accept a numeric argument and pass same onto space.

  • 'space' is extremely useful to align things like 'monthname year' lists inside a table, but shoves the table innards around creating wrapped edit lines and disorganizing the columnar nature of such a flat table columnized list.
's', by defaulting to '3' ('NN') spaces thus takes up far less width and leaves the editor less confused by replacing either 'NN' '& nbsp ;' and/or '& emsp ;' HTML codes or the 'space' template width itself allowing one to finesse things like lining up the years between a column of dates or other unequal length text fields, and other such naturally misaligning tabular data.
for example
{{space|5}}<u>Heading one{{space|18}}Heading two:{{space|4}}</u>{{indent|5}}November 2005 <----------->{{space|5}}November 2005{{indent|5}}May 2006{{space|5}} <----------->{{space|6}}May{{space|7}}2006</code>...
(all a one line entry, or can be spaced out some) gives:

     Heading one                  Heading two:    


     November 2005 <----------->     November 2005
     May 2006      <----------->      May       2006

Note Template:W2 technical limitations do not show the above columns properly aligned as do more advanced browsers.

See also


          See also {{space}} && {{indent}} and it's shortform {{I}}. All do not give an absolutely calculable display due to the working of wiki system display software, which abhors double whitespace and whitespace clarity, but are effective work-arounds once a text line length is established... which seem to be parsed for display back to front by wiki system software.

Around Wikia's network

Random Wiki