Template:Editnotice
{{{1}}} |
This template has been protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. |
This template is a wrapper template for editnotices, notices that appear above the text area on edit pages. Editnotices can be per-namespace, per-base page, or per-page.
To create a new editnotice, please follow the instructions at Commons:Editnotice. See also standard editnotice templates at Category:Editnotice templates or for a user page insert {{Editnotice userpage}}
.
Usage
{{editnotice
|expiry =
|id =
|header =
|headerstyle =
|text =
|textstyle =
|image =
}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
expiry | expiry date | When the editnotice will cease to be visible on the affected page(s). This can be useful when an editnotice is created for reasons of a temporal nature. Any valid time format may be used, for example:
| indefinite | optional |
id | ID | HTML ID of the edit notice | empty | optional |
header | header | Header text | empty | optional |
headerstyle | header style | CSS for the header | empty | optional |
text 1 | text | The body text of the edit notice | empty | required |
textstyle | text style | CSS for the body text | empty | optional |
image | image | Image name to be shown on the left of the edit notice, e.g. “Example.svg” | empty | optional |
imageright | right image | Image name to be shown on the right of the edit notice, e.g. “Example.svg” | empty | optional |
class | box class | Extra CSS class for the whole box | empty | optional |
style | box style | CSS style for the whole box | empty | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template is a wrapper template for editnotices, notices that appear above the text area on edit pages. Editnotices can be per-namespace, per-base page, or per-page.
|
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: Administrators
See also
- Edit notices created so far: Special:PrefixIndex/Template:Editnotices/
- Commons:Editnotice – More about editnotices.
- {{Editnotice pagename}} – Returns the pagename for the editnotice for the current page.
- {{Editnotice talkpagename}} – Returns the full talkpage name for the editnotice for the current page.
- {{Editnotice userpage}} – Premade editnotice for user pages.
- {{Fmbox}} – Alternative template for editnotice boxes.
Localization
This template is not intended to be localized.
Examples
{{editnotice | id = loremipsumedn | header = Attention editors | headerstyle = font-size: 150%; | text = Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | textstyle = font-size: 120%; | image = }}
|
{{editnotice | id = faqedn | header = Frequently asked questions | headerstyle = font-size: 120%; | text = Before editing, please consult the list of Frequently Asked Questions specific to this book. The FAQ includes questions on many issues that have been discussed. | textstyle = background-color: #fee; | image = }}
|
{{editnotice | id = engvaredn | header = | headerstyle = | text = This book is written in '''British English''', which differs from American English in some ways. See [[w:American and British English differences|]]. According to the local manual of style, this should not be changed without broad consensus. | textstyle = | image = [[File:Flag of the United Kingdom.svg|50px|link=|alt=]] }}
This book is written in British English, which differs from American English in some ways. See American and British English differences. According to the local manual of style, this should not be changed without broad consensus. |
Namespace key
0 – Gallery
1 – Talk:
2 – User: [1]
3 – User talk: [2]
4 – Commons:
5 – Commons talk:
6 – File:
7 – File talk:
8 – MediaWiki:
9 – MediaWiki talk:
10 – Template:
11 – Template talk:
12 – Help:
13 – Help talk:
14 – Category:
15 – Category talk:
100 – Creator:
101 – Creator talk:
102 - TimedText:
103 - TimedText talk:
104 - Sequence:
105 - Sequence talk:
106 - Institution:
107 - Institution talk:
- ↑ User edit notices are now implemented by creating a subpage on the user page named "/Editnotice". This allows non-admin users to edit their own notices. Display of the user edit notice is controlled by MediaWiki:Editnotice-2.
- ↑ User talk edit notices are now implemented by creating a subpage on the user talk page named "/Editnotice". This allows non-admin users to edit their own notices. Display of the user talk edit notice is controlled by MediaWiki:Editnotice-3.