This wiki is for the exclusive use of my friends and colleagues. Account creation and anonymous editing have been turned off.

If you are a friend or colleague of mine, and would like to participate in this project, please send me a message.

If you find these pages useful, please donate to help cover server costs. Thanks!

Difference between revisions of "Template:NoticeBoard"

From OdleWiki
(Created page with "<div style="width: 80%; margin: 0 auto 1em auto; border: solid 1px #{{{color}}}; border-left: solid 10px #{{{color}}};"> <div style="width: 10%; float: left; text-align: cent...")
 
m (Added instructions for icon size.)
 
(5 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; padding-top: 10px;">
+
  <div style="width: 10%; float: left; text-align: center;">
[[File:{{{icon}}}|50px]]
+
[[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; margin-top: 8px;">{{{notice}}}</span><br />
+
<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.