ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Difference between revisions of "Template:HorizontalBar"
From ModEnc
(CSS'd) |
(First test.) |
||
Line 1: | Line 1: | ||
− | {| | + | <div style="background:#F0F0F0; border: 1px solid #DADADA; padding: 0.0em 0.3em 0.2em 0.3em; {{#if: {{{height|}}}|min-height: {{{height}}};}}">{{#if: {{{image|}}}|[[Image:{{{image}}}|{{{align|left}}}|{{{width|20px}}}]]}}{{{1}}} |
− | | | + | </div><noinclude>Usage: |
− | | | + | <pre>{{HorizontalBar|TEXT}}</pre> |
− | |} | + | Copy-paste the code above and replace <code>TEXT</code> with what the bar should say. Use this template to create new horizontal bar templates. |
− | <noinclude>Usage: | + | |
− | <pre>{{HorizontalBar| | + | ===Optional Parameters=== |
− | Copy-paste the code above and replace | + | *'''image''' - name of an image to put next to the text. |
− | </noinclude> | + | *'''align''' - on which side of the text the image resides. Defaults to ''left''. |
+ | *'''width''' - width of the image. Defaults to 20px. | ||
+ | *'''height''' - minimum height of the div.</noinclude> |
Revision as of 15:38, 14 April 2008
{{{1}}}
Usage:
{{HorizontalBar|TEXT}}
Copy-paste the code above and replace TEXT
with what the bar should say. Use this template to create new horizontal bar templates.
Optional Parameters
- image - name of an image to put next to the text.
- align - on which side of the text the image resides. Defaults to left.
- width - width of the image. Defaults to 20px.
- height - minimum height of the div.