ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:HorizontalBar: Difference between revisions

From ModEnc
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|width="100%" style="background:#F0F0F0;border-bottom-color:#000000;border-bottom-style:solid;border-bottom-width:1px;border-top-color:#000000;border-top-style:solid;border-top-width:1px;"
<div style="background:#F0F0F0; 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="3%"|
</div>{{clr}}<noinclude>
|'''''{{{1}}}'''''
==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|text}}</pre>
 
Copy-paste the code above and replace "text" with what the bar should say. This generates bars like the [[Template:Disambig|Disambigation]] one, but with customizable text. Can be used to create new fixed content horizontal bar templates.
===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 14:04, 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.