Difference between revisions of "Template:Spacer/doc"

From comp.tf
Jump to navigation Jump to search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Template:Spacer''' displays a 10px wide, inline div which can be useful for aligning elements.
+
'''Template:Spacer''' displays an inline div which can be useful for aligning elements.
 
== Usage ==
 
== Usage ==
<code><nowiki>{{spacer}}</nowiki></code>
+
<code><nowiki>{{spacer|</nowiki>'''<nowiki>name</nowiki>'''<nowiki>|</nowiki>'''<nowiki>width</nowiki>'''<nowiki>}}</nowiki></code>
 +
=== name ===
 +
''Optional, set by default to nothing''<br />
 +
Text to be used inside the div
 +
=== width ===
 +
''Optional, set by default to "10px"<br />
 +
Width of the div
 +
== Example ==
 +
<pre>
 +
{{spacer|''7th May''|100px}} Hellbent_ leaves <br />
 +
{{spacer|''1st August''|100px}} boomer joins, Linkuser leaves <br />
 +
{{spacer|''3rd December''|100px}} corsa joins
 +
</pre>
 +
'''Will yield:'''
 +
{{spacer|''7th May''|100px}} Hellbent_ leaves <br />
 +
{{spacer|''1st August''|100px}} boomer joins, Linkuser leaves <br />
 +
{{spacer|''3rd December''|100px}} corsa joins

Latest revision as of 09:18, 5 May 2016

Template:Spacer displays an inline div which can be useful for aligning elements.

Usage[edit]

{{spacer|name|width}}

name[edit]

Optional, set by default to nothing
Text to be used inside the div

width[edit]

Optional, set by default to "10px"
Width of the div

Example[edit]

{{spacer|''7th May''|100px}} Hellbent_ leaves <br />
{{spacer|''1st August''|100px}} boomer joins, Linkuser leaves <br />
{{spacer|''3rd December''|100px}} corsa joins

Will yield:

7th May

Hellbent_ leaves

1st August

boomer joins, Linkuser leaves

3rd December

corsa joins