Difference between revisions of "Template:Spacer/doc"

From comp.tf
Jump to navigation Jump to search
m
m
Line 10: Line 10:
 
== Example ==
 
== Example ==
 
<pre>
 
<pre>
{{spacer|''7th May''|95px}} [[Hellbent_]] leaves <br />
+
{{spacer|''7th May''|95px}} Hellbent_ leaves <br />
{{spacer|''1st August''|95px}} [[boomer]] joins, [[Linkuser]] leaves <br />
+
{{spacer|''1st August''|95px}} boomer joins, Linkuser leaves <br />
{{spacer|''3rd December''|95px}} [[corsa]] joins
+
{{spacer|''3rd December''|95px}} corsa joins
 
</pre>
 
</pre>
 
'''Will yield:'''
 
'''Will yield:'''
{{spacer|''7th May''|95px}} [[Hellbent_]] leaves <br />
+
{{spacer|''7th May''|95px}} Hellbent_ leaves <br />
{{spacer|''1st August''|95px}} [[boomer]] joins, [[Linkuser]] leaves <br />
+
{{spacer|''1st August''|95px}} boomer joins, Linkuser leaves <br />
{{spacer|''3rd December''|95px}} [[corsa]] joins
+
{{spacer|''3rd December''|95px}} corsa joins

Revision as of 09:17, 5 May 2016

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

Usage

{{spacer|name|width}}

name

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

width

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

Example

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

Will yield:

7th May

Hellbent_ leaves

1st August

boomer joins, Linkuser leaves

3rd December

corsa joins