Difference between revisions of "Template:Notice Box/doc"

From Nookipedia, the Animal Crossing wiki
m (fix oversight)
(Rearranged; now it has an example that gets rendered.)
Line 1: Line 1:
This is a base template for notice boxes, and is used by the different notice templates.
+
==Usage==
 +
<pre>
 +
{{Notice Box
 +
|colorinner =
 +
|colorouter =
 +
|background =
 +
|leftimage =
 +
|rightimage =
 +
|header =
 +
|message =
 +
</pre>
 +
 
 +
This is a base template used by many [[:Category:Notice Templates|notice templates]].
 +
 
 +
===Example===
 +
<pre>
 +
{{Notice Box
 +
|colorinner = #4E6AC1
 +
|colorouter = #002E93
 +
|background = #c5ceed
 +
|leftimage = [[File:Copper NL.png|x75px|link=|This page is an official policy page]]
 +
|rightimage = [[File:Booker NL.png|x75px|link=|This page is an official policy page]]
 +
|header = This page documents a [[Nookipedia:Policy|Nookipedia policy]].
 +
|message = This is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be [[Nookipedia:Block policy|blocked]].  
 +
}}
 +
</pre>
  
{| class="wikitable"
 
|-
 
! Code !! Function
 
|-
 
| colorinner || Inner border color
 
|-
 
| colorouter || Outer border color
 
|-
 
| background || Background color
 
|-
 
| leftimage || Image to be shown on the left side of template
 
|-
 
| rightimage || Image to be shown on the right side of template
 
|-
 
| header || Text for header, displayed in larger font
 
|-
 
| message || Main body of text
 
|}
 
 
Below is an example of usage, taken from [[Template:Policy]].
 
<code><nowiki>
 
 
{{Notice Box
 
{{Notice Box
 
|colorinner = #4E6AC1
 
|colorinner = #4E6AC1
 
|colorouter = #002E93
 
|colorouter = #002E93
 
|background = #c5ceed
 
|background = #c5ceed
|leftimage = [[File:Copper NL.png|35px|link=|This page is an official policy page]]
+
|leftimage = [[File:Copper NL.png|x75px|link=|This page is an official policy page]]
|rightimage =
+
|rightimage = [[File:Booker NL.png|x75px|link=|This page is an official policy page]]
 
|header = This page documents a [[Nookipedia:Policy|Nookipedia policy]].
 
|header = This page documents a [[Nookipedia:Policy|Nookipedia policy]].
 
|message = This is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be [[Nookipedia:Block policy|blocked]].  
 
|message = This is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be [[Nookipedia:Block policy|blocked]].  
 
}}
 
}}
</nowiki></code>
 

Revision as of 07:33, April 9, 2019

Usage

{{Notice Box
|colorinner = 
|colorouter = 
|background = 
|leftimage = 
|rightimage = 
|header = 
|message = 

This is a base template used by many notice templates.

Example

{{Notice Box
|colorinner = #4E6AC1
|colorouter = #002E93
|background = #c5ceed
|leftimage = [[File:Copper NL.png|x75px|link=|This page is an official policy page]]
|rightimage = [[File:Booker NL.png|x75px|link=|This page is an official policy page]]
|header = This page documents a [[Nookipedia:Policy|Nookipedia policy]].
|message = This is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be [[Nookipedia:Block policy|blocked]]. 
}}


This page is an official policy page
This page documents a Nookipedia policy.
This is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be blocked.
This page is an official policy page
This page is an official policy page
This page documents a Nookipedia policy.
This is a widely accepted standard that all editors should normally follow. Users who fail to adhere to policies may be blocked.
This page is an official policy page