Difference between revisions of "Template:Notice Box"
From Nookipedia, the Animal Crossing wiki
Decomposer (talk | contribs) (Removed font tag as it is deprecated, and added Documentation template. Functionality should remain the same.) |
(Adjusting padding when rightimage is present, and shrinking rightmost cell when it isn't present.) |
||
Line 3: | Line 3: | ||
{| width=100% style="height:70px; background: {{{background|}}}; {{roundy|20px}};" | {| width=100% style="height:70px; background: {{{background|}}}; {{roundy|20px}};" | ||
| width=50px style="padding:0 0 0 25px;" | {{{leftimage|}}} | | width=50px style="padding:0 0 0 25px;" | {{{leftimage|}}} | ||
− | | style="text-align:left; padding:0 0 0 15px;" | <span style="font-family: Coustard; font-size: 1.4em">{{{header|}}}</span><br>{{{message|}}} | + | | style="text-align:left; padding:0 {{#if:{{{rightimage|}}}|15px|0}} 0 15px;" | <span style="font-family: Coustard; font-size: 1.4em">{{{header|}}}</span><br>{{{message|}}} |
− | | width=50px style="padding:0 25px 0 0;" | {{{rightimage|}}} | + | | {{#if:{{{rightimage|}}}|width=50px|}} style="padding:0 25px 0 0;" | {{{rightimage|}}} |
|} | |} | ||
|}</includeonly> | |}</includeonly> |
Revision as of 22:44, November 5, 2019
Template documentation (view)
|
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]]. }}
|