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

From Nookipedia, the Animal Crossing wiki
m (fix oversight)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This is a base template for notice boxes, and is used by the different notice templates.
+
{{High Risk Template}}
  
{| class="wikitable"
+
==Usage==
|-
+
<pre>
! 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
+
|primarycolor  =
|colorouter = #002E93
+
|secondarycolor =
|background = #c5ceed
+
|textcolor      =
|leftimage = [[File:Copper NL.png|35px|link=|This page is an official policy page]]
+
|shadowcolor    =
|rightimage =
+
|leftimage      =
|header = This page documents a [[Nookipedia:Policy|Nookipedia policy]].
+
|rightimage    =
|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]].  
+
|header        =
 +
|message        =
 +
}}
 +
</pre>
 +
 
 +
This is a base template used by many [[:Category:Notice templates|notice templates]].
 +
 
 +
===Example===
 +
<pre>
 +
{{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]].
 +
}}
 +
</pre>
 +
 
 +
{{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]].  
 
}}
 
}}
</nowiki></code>
 

Latest revision as of 16:54, November 27, 2021

Emotion Surprise NH Icon.png
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.
Emotion Surprise NH Icon.png
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]]. 
}}


Copper NH Character Icon.png
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.
Copper NH Character Icon.png
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.