Difference between revisions of "Template:NoticeBoard"
From OdleWiki
m (Adjusted margin) |
m (Added instructions for icon size.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div style="width: 80%; margin: 0 auto 1em auto; border: solid 1px #{{{color}}}; border-left: solid 10px #{{{color}}};"> | + | <div style="width: 80%; margin: 0 auto 1em auto; border: solid 1px #{{{color}}}; border-left: solid 10px #{{{color}}};padding-top: 10px;"> |
<div style="width: 10%; float: left; text-align: center;"> | <div style="width: 10%; float: left; text-align: center;"> | ||
− | [[File:{{{icon}}}|35px]] | + | [[File:{{{icon}}}|{{{size|35px}}}]] |
</div> | </div> | ||
− | <div style="float: left; width: 85%; padding-bottom:6px;"> | + | <div style="float: left; width: 85%; padding-bottom:6px; margin 12px 0;"> |
− | <span style="font-size: 150%; color: #{{{color}}}; font-weight: bold | + | <span style="font-size: 150%; color: #{{{color}}}; font-weight: bold;">{{{notice}}}</span><br /> |
{{{text}}} | {{{text}}} | ||
Line 13: | Line 13: | ||
</div> | </div> | ||
+ | |||
+ | <noinclude> | ||
+ | == How to Use This Template == | ||
+ | |||
+ | <pre><nowiki> | ||
+ | {{Template:NoticeBoard | ||
+ | |icon=[Name of the icon to use for this notice] | ||
+ | |size=[Size of the icon, in pixels. If you do not specify a size, the default of 35px will be used.] | ||
+ | |color=[Border color in hex—do not include the hash mark] | ||
+ | |notice=[Title of the notice] | ||
+ | |text=[text of the notice] | ||
+ | }} | ||
+ | </nowiki></pre> | ||
+ | |||
+ | Be sure to include the following afterward, if necessary: | ||
+ | |||
+ | <pre><nowiki> | ||
+ | <includeonly> | ||
+ | [[Category:]] | ||
+ | </includeonly> | ||
+ | </nowiki></pre> | ||
+ | |||
+ | To add the category automatically. | ||
+ | |||
+ | </noinclude> |
Latest revision as of 14:32, 21 May 2017
[[File:{{{icon}}}|35px]]
{{{notice}}}
{{{text}}}
How to Use This Template
{{Template:NoticeBoard |icon=[Name of the icon to use for this notice] |size=[Size of the icon, in pixels. If you do not specify a size, the default of 35px will be used.] |color=[Border color in hex—do not include the hash mark] |notice=[Title of the notice] |text=[text of the notice] }}
Be sure to include the following afterward, if necessary:
<includeonly> [[Category:]] </includeonly>
To add the category automatically.