Difference between revisions of "Template:Notice Box"
From Nookipedia, the Animal Crossing wiki
Dorsal Axe (talk | contribs) m |
Dorsal Axe (talk | contribs) (Reintroducing rightimage parameter) |
||
Line 6: | Line 6: | ||
<div style="clear:both;"></div> | <div style="clear:both;"></div> | ||
<div style="margin: 0 auto; width: 100%; background-color:{{{secondarycolor|white}}}; {{roundy|13px}} text-align:center"> | <div style="margin: 0 auto; width: 100%; background-color:{{{secondarycolor|white}}}; {{roundy|13px}} text-align:center"> | ||
− | <div style="text-align: left; padding: 5px 15px 5px 15px; font-size: 1.0em">{{{message|Add an informative notice in this box!}}}</div> | + | <div style="display:table-cell; width: 100%; vertical-align:middle; text-align: left; padding: 5px 15px 5px 15px; font-size: 1.0em">{{{message|Add an informative notice in this box!}}}</div> |
+ | <div style="display:table-cell; vertical-align:middle; text-align: right; padding: 5px 15px 5px 15px; font-size: 1.0em">{{{rightimage|[[File:Nookipedia Leaf.png|28px|link=]]}}}</div> | ||
</div></div></div> | </div></div></div> | ||
<!-- MOBILE TEMPLATE --> | <!-- MOBILE TEMPLATE --> | ||
Line 15: | Line 16: | ||
<div style="clear:both;"></div> | <div style="clear:both;"></div> | ||
<div style="margin: 0 auto; width: 100%; background-color:{{{secondarycolor|white}}}; {{roundy|13px}} text-align:center"> | <div style="margin: 0 auto; width: 100%; background-color:{{{secondarycolor|white}}}; {{roundy|13px}} text-align:center"> | ||
− | <div style="text-align: left; padding: 5px 15px 5px 15px; font-size: 0.7em"><small>{{{message|Add an informative notice in this box!.}}}</small></div> | + | <div style="display:table-cell; vertical-align:middle; width: 100%; text-align: left; padding: 5px 15px 5px 15px; font-size: 0.7em"><small>{{{message|Add an informative notice in this box!.}}} |
+ | <div style="display:table-cell; vertical-align:middle; text-align: right; padding: 5px 15px 5px 15px; font-size: 1.0em">{{{rightimage|[[File:Nookipedia Leaf.png|28px|link=]]}}}</div> | ||
+ | </small></div> | ||
</div></div></div> | </div></div></div> | ||
<br> | <br> |
Revision as of 11:05, March 8, 2020
Notice box
Add an informative notice in this box!
Notice box
Add an informative notice in this box!.
Template documentation (view)
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
Usage
{{Notice Box |primarycolor = |secondarycolor = |textcolor = |shadowcolor = |leftimage = |rightimage = |header = |message = }}
This is a base template used by many notice templates.
Example
{{Notice Box |primarycolor = #5571c3 |secondarycolor = #c5ceed |textcolor = #eceff8 |shadowcolor = #374f95 |leftimage = [[File:Copper NH Character Icon.png|26px|link=|]] |rightimage = |header = This page documents a Nookipedia policy. |message = A '''[[Nookipedia:Policy|policy]]''' is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be [[Nookipedia:Block policy|blocked]]. }}