Difference between revisions of "Template:Edit Notice"

From Nookipedia, the Animal Crossing wiki
(Adding link parameter, if given a value it will generate a pre-filled notice box that will link to the page's associated edit notice, if any.)
m
Line 4: Line 4:
 
|textcolor      = #f0f1f4
 
|textcolor      = #f0f1f4
 
|shadowcolor    = #575e75
 
|shadowcolor    = #575e75
|leftimage      = [[File:Lloid NL.png|28px|link=]]
+
|leftimage      = [[File:Lloid NH.png|28px|link=]]
 
|rightimage    =  
 
|rightimage    =  
 
|header        = {{#if:{{{link|}}}|This {{lc:{{NAMESPACE}}}} has an associated edit notice|{{{header|Before you edit...}}}}}
 
|header        = {{#if:{{{link|}}}|This {{lc:{{NAMESPACE}}}} has an associated edit notice|{{{header|Before you edit...}}}}}

Revision as of 14:25, September 8, 2020

Lloid NH.png
Before you edit...
 
Lloid NH.png
Before you edit...
 

Template documentation (view)


Usage

{{Edit Notice|Please do good stuff and not bad stuff.}}

This template is used as a notice that goes above the edit box when an editor is modifying a particular page.

You can set up an edit notice on a particular page through MediaWiki's Edit Notice interface. Every page can have a specific notice via "MediaWiki:Editnotice-N-Title", where "N" is again the namespace number (see table below). Note that slashes (/) are replaced by hyphens (-). For example, "MediaWiki:Editnotice-2-Joe-Sandbox" corresponds to both "User:Joe-Sandbox" as well as "User:Joe/Sandbox".

The optional link parameter can be used to generate a default message, and link to the Edit Notice associated with the page, if any.

Built-in namespaces

Index Name Talk
0 (Main) Talk 1
2 User User talk 3
4 Nookipedia Nookipedia talk 5
6 File File talk 7
8 MediaWiki MediaWiki talk 9
10 Template Template talk 11
12 Help Help talk 13
14 Category Category talk 15

Examples

{{Edit Notice|Please do good stuff and not bad stuff.}}


Lloid NH.png
Before you edit...
Please do good stuff and not bad stuff.
Lloid NH.png
Before you edit...
Please do good stuff and not bad stuff.


{{Edit Notice|link=true}}


Lloid NH.png
This template has an associated edit notice
You can find it here: MediaWiki:Editnotice-10-Edit Notice.
  • Edit notices are often used to provide special instructions to editors before making changes to high-use pages.
Lloid NH.png
This template has an associated edit notice
You can find it here: MediaWiki:Editnotice-10-Edit Notice.
  • Edit notices are often used to provide special instructions to editors before making changes to high-use pages.