Template:HorizontalBar: Difference between revisions
Appearance
en>Renegade CSS'd |
No edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{| | <div style="border: 1px solid #DADADA; padding: 0.1em 0.3em 0.2em 0.3em; {{#if: {{{height|}}}|min-height: {{{height}}};}}">{{#if: {{{image|}}}|[[Image:{{{image}}}|{{{align|left}}}|{{{width|20px}}}]]}}{{{1}}} | ||
|width | </div>{{clr}}<noinclude> | ||
==Usage== | |||
<pre>{{HorizontalBar|TEXT}}</pre> | |||
<noinclude>Usage | 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. | ||
<pre>{{HorizontalBar| | |||
Copy-paste the code above and replace | ===Optional Parameters=== | ||
</noinclude> | *'''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.</noinclude> | |||
Latest revision as of 09:12, 2 April 2025
{{{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.