Editing
Template:Editnotice/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Parameters == * {{para|expiry|expiry date}} * {{para|id|optional HTML id}} * {{para|header|header text}} * {{para|headerstyle|CSS for header style}} * {{para|text|body text}} * {{para|textstyle|CSS for text style}} * {{para|image|image}} * {{para|imagesize|size of image, e.g., 35px}} * {{para|imageright|image on righthand side}} * {{para|class|CSS class name for the entire editnotice}} * {{para|style|CSS values for the entire editnotice}} ::<small>''Use only the name of the image file, so instead of "<nowiki>[[File:Wikipedia-logo-v2.svg]]</nowiki>", use "'''Wikipedia-logo-v2.svg'''" following "image =".''</small> If an editnotice targets a page that happens to be a redirect, the editnotice is categorized into the maintenance category {{cl|Editnotices whose targets are redirects}}. To suppress categorization, set {{para|redirect|yes}} explicitly. In almost all cases, this is not necessary. === Expiry date === The ''expiry'' parameter can be used to specify when an editnotice will cease to be visible on an article. This can be useful when an editnotice is created for reasons of a temporal nature. Any valid time format may be used, for example: * January 2012 * 4 April 2009 * 11:09 April 5 2013 To specify that an editnotice never expire, you can simply not provide an expiry parameter, though this makes the edit notice display the {{tl|Editnotice/notice}} template in order to remind editors of any unintentional usage. To suppress this message while still setting the edit notice to never expire, {{para|expiry|indefinite}} may be used. ===TemplateData=== <templatedata> { "params": { "expiry": { "description": "date the editnotice will expire and stop displaying; accepts any date format; leave blank to not expire", "type": "date" }, "redirect": { "description": "suppresses categorization if intended target is a redirect", "type": "boolean" }, "type": { "description": "box style type", "suggestedvalues": [ "system", "editnotice", "warning" ], "default": "editnotice" }, "id": { "description": "optional HTML id", "type": "string" }, "textstyle": { "label": "text style", "description": "CSS for text style", "type": "content" }, "style": { "description": "CSS values for the entire editnotice", "type": "content", "suggested": true }, "class": { "description": "CSS class name for the entire editnotice", "type": "content" }, "image": { "description": "image on the left", "type": "wiki-file-name", "suggested": true }, "imagesize": { "label": "image size", "example": "35px", "suggested": true }, "imageright": { "label": "right image", "description": "image on the right", "type": "wiki-file-name" }, "imagerightsize": { "description": "size of the image on the right", "example": "35px" }, "header": { "description": "header text", "type": "content", "suggested": true }, "headerstyle": { "label": "header style", "description": "CSS for header style", "type": "content" }, "text": { "aliases": [ "1" ], "description": "text of the editnotice", "type": "content", "required": true } }, "description": "Creates a notice that appears above the text area on edit pages", "paramOrder": [ "text", "textstyle", "header", "headerstyle", "expiry", "style", "class", "id", "image", "imagesize", "imageright", "imagerightsize", "type", "redirect" ] } </templatedata>
Summary:
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the Creative Commons Attribution-ShareAlike License 4.0 (see
Project:Copyrights
for details). You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information