Template:Separator: Difference between revisions

From Shifti
Jump to navigation Jump to search
remove headers again for maximum flexibility, add documentation
add a touch of space between the dingbats and text
Line 1: Line 1:
{{#if:{{{1|}}}|{{#if:{{{2|}}}|<div class="center">[[Image:Separator {{{1}}} left.png|{{{3|100px}}}]]{{{2}}}[[Image:Separator {{{1}}} right.png|{{{3|100px}}}]]</div>|[[Image:Separator {{{1}}}.png|{{{3|200px}}}|center]]}}|<hr/>}}<noinclude>
{{#if:{{{1|}}}|{{#if:{{{2|}}}|<div class="center">[[Image:Separator {{{1}}} left.png|{{{3|100px}}}]]&nbsp;{{{2}}}&nbsp;[[Image:Separator {{{1}}} right.png|{{{3|100px}}}]]</div>|[[Image:Separator {{{1}}}.png|{{{3|200px}}}|center]]}}|<hr/>}}<noinclude>


This template is used for producing separators with fancy dingbat images and text. It has three parameters, all optional. The first parameter defines which dingbat image set to use, the second is the text to insert into the dingbat, and the third can be used to adjust the size of the images away from the default.
This template is used for producing separators with fancy dingbat images and text. It has three parameters, all optional. The first parameter defines which dingbat image set to use, the second is the text to insert into the dingbat, and the third can be used to adjust the size of the images away from the default.

Revision as of 21:58, 24 July 2007

{{#if:|{{#if:|

[[Image:Separator {{{1}}} left.png|100px]] {{{2}}} [[Image:Separator {{{1}}} right.png|100px]]

|[[Image:Separator {{{1}}}.png|200px|center]]}}|


}}

This template is used for producing separators with fancy dingbat images and text. It has three parameters, all optional. The first parameter defines which dingbat image set to use, the second is the text to insert into the dingbat, and the third can be used to adjust the size of the images away from the default.

When used with no parameters whatsoever, the template simply places a horizontal rule.

Dingbat image sets come in threes and must be named with the following pattern:

  • Separator <identifier>.png
  • Separator <identifier> left.png
  • Separator <identifier> right.png

Where <identifier> is whatever string is used in this template to select it.