Difference between revisions of "Template:Spacer"

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly><div style="width:10px; display:inline-block;"></div></includeonly><noinclude>{{documentation}}Category:TemplateCategory:Templates</noinclude>")
 
m
 
Line 1: Line 1:
<includeonly><div style="width:10px; display:inline-block;"></div></includeonly><noinclude>{{documentation}}[[Category:Template]][[Category:Templates]]</noinclude>
+
<includeonly><div style="width:{{{2|10px|}}}; display:inline-block;">{{#if:{{{1|}}}|{{{1|}}}}}</div></includeonly><noinclude>{{documentation}}[[Category:Template]][[Category:Templates]]</noinclude>

Latest revision as of 09:10, 5 May 2016

(view - edit) Documentation

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''|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