7,180
edits
Changes
Created page with "<noinclude> ==Usage== The Spacing template inserts spacing of a specified number of pixels. This is achieved via a transparent image stretched to the requested size. The sp..."
<noinclude>
==Usage==
The Spacing template inserts spacing of a specified number of pixels. This is achieved via a transparent image stretched to the requested size. The spacing may be vertical or horizontal.
The amount and direction of spacing is specified in a single parameter, in the same way as image scaling dimensions, as a number followed by <code>px</code>, optionally preceded by <code>x</code> to specify vertical spacing as opposed to horizontal.
== Examples ==
The examples below invoke the template as indicated.
{|class="wikitable"
|-
| Horizontal spacing: 20 pixels{{Spacing|20px}}<span style="font-family:Consolas;"><nowiki>{{Spacing|20px}}</nowiki></span>
|-
| Horizontal spacing: 40 pixels{{Spacing|40px}}<span style="font-family:Consolas;"><nowiki>{{Spacing|40px}}</nowiki></span>
|-
| Horizontal spacing: 60 pixels{{Spacing|60px}}<span style="font-family:Consolas;"><nowiki>{{Spacing|60px}}</nowiki></span>
|}
{|class="wikitable"
|- style="vertical-align:top"
| Vertical spacing: 20 pixels<br>{{Spacing|x20px}}<br><span style="font-family:Consolas;"><nowiki>{{Spacing|x20px}}</nowiki></span>
| Vertical spacing: 40 pixels<br>{{Spacing|x40px}}<br><span style="font-family:Consolas;"><nowiki>{{Spacing|x40px}}</nowiki></span>
| Vertical spacing: 60 pixels<br>{{Spacing|x60px}}<br><span style="font-family:Consolas;"><nowiki>{{Spacing|x60px}}</nowiki></span>
|}
</noinclude><includeonly>[[File:spacing-{{#ifeq:{{#sub:{{{1}}}|0|1}}|x|vert|horz}}.png|{{{1}}}]]</includeonly>
==Usage==
The Spacing template inserts spacing of a specified number of pixels. This is achieved via a transparent image stretched to the requested size. The spacing may be vertical or horizontal.
The amount and direction of spacing is specified in a single parameter, in the same way as image scaling dimensions, as a number followed by <code>px</code>, optionally preceded by <code>x</code> to specify vertical spacing as opposed to horizontal.
== Examples ==
The examples below invoke the template as indicated.
{|class="wikitable"
|-
| Horizontal spacing: 20 pixels{{Spacing|20px}}<span style="font-family:Consolas;"><nowiki>{{Spacing|20px}}</nowiki></span>
|-
| Horizontal spacing: 40 pixels{{Spacing|40px}}<span style="font-family:Consolas;"><nowiki>{{Spacing|40px}}</nowiki></span>
|-
| Horizontal spacing: 60 pixels{{Spacing|60px}}<span style="font-family:Consolas;"><nowiki>{{Spacing|60px}}</nowiki></span>
|}
{|class="wikitable"
|- style="vertical-align:top"
| Vertical spacing: 20 pixels<br>{{Spacing|x20px}}<br><span style="font-family:Consolas;"><nowiki>{{Spacing|x20px}}</nowiki></span>
| Vertical spacing: 40 pixels<br>{{Spacing|x40px}}<br><span style="font-family:Consolas;"><nowiki>{{Spacing|x40px}}</nowiki></span>
| Vertical spacing: 60 pixels<br>{{Spacing|x60px}}<br><span style="font-family:Consolas;"><nowiki>{{Spacing|x60px}}</nowiki></span>
|}
</noinclude><includeonly>[[File:spacing-{{#ifeq:{{#sub:{{{1}}}|0|1}}|x|vert|horz}}.png|{{{1}}}]]</includeonly>