Jump to content

Template:BigHorizontalBar: Difference between revisions

From ModEnc²
en>Renegade
css'd
mNo edit summary
Tag: Manual revert
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|width="100%" class="table_biggreybar"
<div style="border: 1px solid #DADADA; padding: 0.1em 0.3em 0.2em 0.3em; min-height: {{{height|60px}}}; overflow: hidden;"><div style="text-align: center; font-size: large;">{{{1}}}</div>{{#if: {{{image|}}}|[[Image:{{{image}}}|{{{align|left}}}|{{{width|40px}}}]]}}{{{2}}}
!{{{1}}}
</div>{{clr}}<noinclude>
|-
==Usage==
|{{{2}}}
<pre>{{BigHorizontalBar|HEADLINE|TEXT}}</pre>
|}
Copy-paste the code above and replace <code>HEADLINE</code> with the headling of your bar and <code>TEXT</code> with what the bar should say. Use this template to create new headlined horizontal bar templates.
<noinclude>Usage:
<pre>{{BigHorizontalBar|Headline|Text}}</pre>
Copy-paste the code above and replace "Headline" with your desired headline, and "Text" with your desired text. Creates a standardized big h-bar as seen in [[Template:NeedTesting]].<br>


 
===Optional Parameters===
'''Example:'''<br>
*'''image''' - name of an image to put next to the text.
<pre>{{BigHorizontalBar|Big H-Bar Example|All H-Bars can be called by template - you don't need to hardcode them}}</pre>
*'''align''' - on which side of the text the image resides. Defaults to ''left''.
gives
*'''width''' - width of the image. Defaults to 40px.
{{BigHorizontalBar|Big H-Bar Example|All H-Bars can be called by template - you don't need to hardcode them}}
*'''height''' - minimum height of the div. Defaults to 60px.</noinclude>
</noinclude>

Latest revision as of 01:04, 2 April 2025

{{{1}}}
{{{2}}}


Usage

{{BigHorizontalBar|HEADLINE|TEXT}}

Copy-paste the code above and replace HEADLINE with the headling of your bar and TEXT with what the bar should say. Use this template to create new headlined 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 40px.
  • height - minimum height of the div. Defaults to 60px.