Difference between revisions of "Template:Notice Box"
From Nookipedia, the Animal Crossing wiki
m (Changing width to match navbox. Works better on mobile.) |
Dorsal Axe (talk | contribs) |
||
Line 1: | Line 1: | ||
− | <includeonly>{| width=90% align=center style="margin-top: 10px; margin-bottom: 10px; height:70px; background-color: {{{colorinner|}}}; border: 3px solid {{{colorouter|}}}; {{roundy|25px}};" | + | <includeonly><div class="nomobile"><{| width=90% align=center style="margin-top: 10px; margin-bottom: 10px; height:70px; background-color: {{{colorinner|}}}; border: 3px solid {{{colorouter|}}}; {{roundy|25px}};" |
| | | | ||
{| width=100% style="height:70px; background: {{{background|}}}; {{roundy|20px}};" | {| width=100% style="height:70px; background: {{{background|}}}; {{roundy|20px}};" | ||
Line 6: | Line 6: | ||
| {{#if:{{{rightimage|}}}|width=50px|}} style="padding:0 25px 0 0;" | {{{rightimage|}}} | | {{#if:{{{rightimage|}}}|width=50px|}} style="padding:0 25px 0 0;" | {{{rightimage|}}} | ||
|} | |} | ||
− | |}</includeonly> | + | |}</div> |
+ | <div class="onlymobile"> | ||
+ | <div style="background-color:#cae8d6; border: 3px solid #4eb176; box-shadow: 0 0 0 2pt #008033; {{roundy|25px}} padding:0 10px 0 10px; text-align:center"> | ||
+ | <div style="float: left; width: 25px; padding: 10px 15px 0 15px;">{{{leftimage|}}}</div> | ||
+ | <div style="float: center; text-align: left; padding: 10px 0; font-family: Coustard; font-size: 1.0em">{{{header|}}}</div></h3> | ||
+ | <div style="float: center; text-align: left; padding: 0 30px 0 0; font-size: 0.7em">{{{message|}}}</div></p> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Notice Templates]] | [[Category:Notice Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 12:12, March 2, 2020
Template documentation (view)
<{| width=90% align=center style="margin-top: 10px; margin-bottom: 10px; height:70px; background-color: ; border: 3px solid ; border-radius: 25px;;"
|}
|
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]]. }}
<{| width=90% align=center style="margin-top: 10px; margin-bottom: 10px; height:70px; background-color: ; border: 3px solid ; border-radius: 25px;;"
|}
|
This page documents a Nookipedia policy. A policy is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be blocked. |