ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Template:BigHorizontalBar: Difference between revisions
Jump to navigation
Jump to search
Not in the mood for image fixing now |
Added overflow clipping |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<div style="background:#F0F0F0; border: 1px solid #DADADA; padding: 0.1em 0.3em 0.2em 0.3em; | <div style="background:#F0F0F0; 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}}} | ||
</div>{{clr}}<noinclude> | |||
==Usage== | ==Usage== | ||
<pre>{{BigHorizontalBar|HEADLINE|TEXT | <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. | 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. | ||
Line 9: | Line 9: | ||
*'''align''' - on which side of the text the image resides. Defaults to ''left''. | *'''align''' - on which side of the text the image resides. Defaults to ''left''. | ||
*'''width''' - width of the image. Defaults to 40px. | *'''width''' - width of the image. Defaults to 40px. | ||
*'''height''' - minimum height of the div.</noinclude> | *'''height''' - minimum height of the div. Defaults to 60px.</noinclude> |
Latest revision as of 16:12, 20 June 2022
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.