This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
Usage
This template is a wrapper template for editnotices, notices that appear above the text area on edit pages. Editnotices can be per-namespace or per-article.
To create a new editnotice, please follow the instructions at WP:Editnotice. See also standard editnotice templates at Category:Editnotice templates or for a user page, use the {{Editnotice userpage}}
template instead.
Syntax
{{editnotice | expiry = | id = | header = | headerstyle = | text = | textstyle = | image = | imagesize = | style = | class = }}
Note: All parameters are optional, except for text
.
Parameters
|expiry=expiry date
|id=optional HTML id
|header=header text
|headerstyle=CSS for header style
|text=body text
|textstyle=CSS for text style
|image=image
|imagesize=size of image, e.g., 35px
|imageright=image on righthand side
|class=CSS class name for the entire editnotice
|style=CSS values for the entire editnotice
- Use only the name of the image file, so instead of "[[File:Wikipedia-logo-v2.svg]]", use "Wikipedia-logo-v2.svg" following "image =".
If an editnotice targets a page that happens to be a redirect, the editnotice is categorized into the maintenance category Category:Editnotices whose targets are redirects. To suppress categorization, set |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 5 April 2013
To specify that an editnotice never expire, you can simply not provide an expiry parameter, though this makes the edit notice display the {{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, |expiry=indefinite
may be used.
TemplateData
Creates a notice that appears above the text area on edit pages
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
text | text 1 | text of the editnotice | 内容 | 必需 |
text style | textstyle | CSS for text style | 内容 | 可选 |
header | header | header text | 内容 | 推荐 |
header style | headerstyle | CSS for header style | 内容 | 可选 |
expiry | expiry | date the editnotice will expire and stop displaying; accepts any date format; leave blank to not expire | 日期 | 可选 |
style | style | CSS values for the entire editnotice | 内容 | 推荐 |
class | class | CSS class name for the entire editnotice | 内容 | 可选 |
id | id | optional HTML id | 字符串 | 可选 |
image | image | image on the left | 文件 | 推荐 |
image size | imagesize | 无描述
| 未知 | 推荐 |
right image | imageright | image on the right | 文件 | 可选 |
imagerightsize | imagerightsize | size of the image on the right
| 未知 | 可选 |
type | type | box style type
| 未知 | 可选 |
redirect | redirect | suppresses categorization if intended target is a redirect | 布尔 | 可选 |
Instruction editnotices
For editnotices that provide instruction on how to edit a page, the {{Instruction editnotice}}
wrapper template may be used. It takes the same parameters as this template, but with the header, image, style, and expiration preset by default to encourage consistent formatting. It generates editnotices such as this:
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 = }}
This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
Usage
This template is a wrapper template for editnotices, notices that appear above the text area on edit pages. Editnotices can be per-namespace or per-article.
To create a new editnotice, please follow the instructions at WP:Editnotice. See also standard editnotice templates at Category:Editnotice templates or for a user page, use the {{Editnotice userpage}}
template instead.
Syntax
{{editnotice | expiry = | id = | header = | headerstyle = | text = | textstyle = | image = | imagesize = | style = | class = }}
Note: All parameters are optional, except for text
.
Parameters
|expiry=expiry date
|id=optional HTML id
|header=header text
|headerstyle=CSS for header style
|text=body text
|textstyle=CSS for text style
|image=image
|imagesize=size of image, e.g., 35px
|imageright=image on righthand side
|class=CSS class name for the entire editnotice
|style=CSS values for the entire editnotice
- Use only the name of the image file, so instead of "[[File:Wikipedia-logo-v2.svg]]", use "Wikipedia-logo-v2.svg" following "image =".
If an editnotice targets a page that happens to be a redirect, the editnotice is categorized into the maintenance category Category:Editnotices whose targets are redirects. To suppress categorization, set |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 5 April 2013
To specify that an editnotice never expire, you can simply not provide an expiry parameter, though this makes the edit notice display the {{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, |expiry=indefinite
may be used.
TemplateData
Creates a notice that appears above the text area on edit pages
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
text | text 1 | text of the editnotice | 内容 | 必需 |
text style | textstyle | CSS for text style | 内容 | 可选 |
header | header | header text | 内容 | 推荐 |
header style | headerstyle | CSS for header style | 内容 | 可选 |
expiry | expiry | date the editnotice will expire and stop displaying; accepts any date format; leave blank to not expire | 日期 | 可选 |
style | style | CSS values for the entire editnotice | 内容 | 推荐 |
class | class | CSS class name for the entire editnotice | 内容 | 可选 |
id | id | optional HTML id | 字符串 | 可选 |
image | image | image on the left | 文件 | 推荐 |
image size | imagesize | 无描述
| 未知 | 推荐 |
right image | imageright | image on the right | 文件 | 可选 |
imagerightsize | imagerightsize | size of the image on the right
| 未知 | 可选 |
type | type | box style type
| 未知 | 可选 |
redirect | redirect | suppresses categorization if intended target is a redirect | 布尔 | 可选 |
Instruction editnotices
For editnotices that provide instruction on how to edit a page, the {{Instruction editnotice}}
wrapper template may be used. It takes the same parameters as this template, but with the header, image, style, and expiration preset by default to encourage consistent formatting. It generates editnotices such as this:
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
{{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 article. The FAQ includes questions on many issues that have been discussed. | textstyle = background-color: #fee; | image = }}
检查到模板循环:模板:Editnotice
{{editnotice | id = engvaredn | header = | headerstyle = | text = This article is written in '''[[British English]]''', which differs from [[American English]] in some ways. See [[American and British English differences]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]], this should not be changed without broad consensus. | textstyle = | image = Flag of the United Kingdom.svg | imagesize = 50px }}
检查到模板循环:模板:Editnotice
Namespace key
0 – (Main)
1 – Talk:
2 – User: [note 1]
3 – User talk: [note 2]
4 – Wikipedia:
5 – Wikipedia 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 – Portal:
101 – Portal talk:
118 – Draft:
119 – Draft talk:
710 – TimedText:
711 – TimedText talk:
828 – Module:
829 – Module 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.
Editnotices created so far
See also
- Wikipedia:Editnotice – More about editnotices
{{editnotice pagename}}
– Returns the pagename for the editnotice for the current page{{editnotice talkpagename}}
– Returns the talkpage name for the editnotice for the current page
{{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 article. The FAQ includes questions on many issues that have been discussed. | textstyle = background-color: #fee; | image = }}
This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
Usage
This template is a wrapper template for editnotices, notices that appear above the text area on edit pages. Editnotices can be per-namespace or per-article.
To create a new editnotice, please follow the instructions at WP:Editnotice. See also standard editnotice templates at Category:Editnotice templates or for a user page, use the {{Editnotice userpage}}
template instead.
Syntax
{{editnotice | expiry = | id = | header = | headerstyle = | text = | textstyle = | image = | imagesize = | style = | class = }}
Note: All parameters are optional, except for text
.
Parameters
|expiry=expiry date
|id=optional HTML id
|header=header text
|headerstyle=CSS for header style
|text=body text
|textstyle=CSS for text style
|image=image
|imagesize=size of image, e.g., 35px
|imageright=image on righthand side
|class=CSS class name for the entire editnotice
|style=CSS values for the entire editnotice
- Use only the name of the image file, so instead of "[[File:Wikipedia-logo-v2.svg]]", use "Wikipedia-logo-v2.svg" following "image =".
If an editnotice targets a page that happens to be a redirect, the editnotice is categorized into the maintenance category Category:Editnotices whose targets are redirects. To suppress categorization, set |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 5 April 2013
To specify that an editnotice never expire, you can simply not provide an expiry parameter, though this makes the edit notice display the {{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, |expiry=indefinite
may be used.
TemplateData
Creates a notice that appears above the text area on edit pages
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
text | text 1 | text of the editnotice | 内容 | 必需 |
text style | textstyle | CSS for text style | 内容 | 可选 |
header | header | header text | 内容 | 推荐 |
header style | headerstyle | CSS for header style | 内容 | 可选 |
expiry | expiry | date the editnotice will expire and stop displaying; accepts any date format; leave blank to not expire | 日期 | 可选 |
style | style | CSS values for the entire editnotice | 内容 | 推荐 |
class | class | CSS class name for the entire editnotice | 内容 | 可选 |
id | id | optional HTML id | 字符串 | 可选 |
image | image | image on the left | 文件 | 推荐 |
image size | imagesize | 无描述
| 未知 | 推荐 |
right image | imageright | image on the right | 文件 | 可选 |
imagerightsize | imagerightsize | size of the image on the right
| 未知 | 可选 |
type | type | box style type
| 未知 | 可选 |
redirect | redirect | suppresses categorization if intended target is a redirect | 布尔 | 可选 |
Instruction editnotices
For editnotices that provide instruction on how to edit a page, the {{Instruction editnotice}}
wrapper template may be used. It takes the same parameters as this template, but with the header, image, style, and expiration preset by default to encourage consistent formatting. It generates editnotices such as this:
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
{{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 article. The FAQ includes questions on many issues that have been discussed. | textstyle = background-color: #fee; | image = }}
检查到模板循环:模板:Editnotice
{{editnotice | id = engvaredn | header = | headerstyle = | text = This article is written in '''[[British English]]''', which differs from [[American English]] in some ways. See [[American and British English differences]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]], this should not be changed without broad consensus. | textstyle = | image = Flag of the United Kingdom.svg | imagesize = 50px }}
检查到模板循环:模板:Editnotice
Namespace key
0 – (Main)
1 – Talk:
2 – User: [note 1]
3 – User talk: [note 2]
4 – Wikipedia:
5 – Wikipedia 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 – Portal:
101 – Portal talk:
118 – Draft:
119 – Draft talk:
710 – TimedText:
711 – TimedText talk:
828 – Module:
829 – Module 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.
Editnotices created so far
See also
- Wikipedia:Editnotice – More about editnotices
{{editnotice pagename}}
– Returns the pagename for the editnotice for the current page{{editnotice talkpagename}}
– Returns the talkpage name for the editnotice for the current page
{{editnotice | id = engvaredn | header = | headerstyle = | text = This article is written in '''[[British English]]''', which differs from [[American English]] in some ways. See [[American and British English differences]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]], this should not be changed without broad consensus. | textstyle = | image = Flag of the United Kingdom.svg | imagesize = 50px }}
This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
Usage
This template is a wrapper template for editnotices, notices that appear above the text area on edit pages. Editnotices can be per-namespace or per-article.
To create a new editnotice, please follow the instructions at WP:Editnotice. See also standard editnotice templates at Category:Editnotice templates or for a user page, use the {{Editnotice userpage}}
template instead.
Syntax
{{editnotice | expiry = | id = | header = | headerstyle = | text = | textstyle = | image = | imagesize = | style = | class = }}
Note: All parameters are optional, except for text
.
Parameters
|expiry=expiry date
|id=optional HTML id
|header=header text
|headerstyle=CSS for header style
|text=body text
|textstyle=CSS for text style
|image=image
|imagesize=size of image, e.g., 35px
|imageright=image on righthand side
|class=CSS class name for the entire editnotice
|style=CSS values for the entire editnotice
- Use only the name of the image file, so instead of "[[File:Wikipedia-logo-v2.svg]]", use "Wikipedia-logo-v2.svg" following "image =".
If an editnotice targets a page that happens to be a redirect, the editnotice is categorized into the maintenance category Category:Editnotices whose targets are redirects. To suppress categorization, set |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 5 April 2013
To specify that an editnotice never expire, you can simply not provide an expiry parameter, though this makes the edit notice display the {{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, |expiry=indefinite
may be used.
TemplateData
Creates a notice that appears above the text area on edit pages
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
text | text 1 | text of the editnotice | 内容 | 必需 |
text style | textstyle | CSS for text style | 内容 | 可选 |
header | header | header text | 内容 | 推荐 |
header style | headerstyle | CSS for header style | 内容 | 可选 |
expiry | expiry | date the editnotice will expire and stop displaying; accepts any date format; leave blank to not expire | 日期 | 可选 |
style | style | CSS values for the entire editnotice | 内容 | 推荐 |
class | class | CSS class name for the entire editnotice | 内容 | 可选 |
id | id | optional HTML id | 字符串 | 可选 |
image | image | image on the left | 文件 | 推荐 |
image size | imagesize | 无描述
| 未知 | 推荐 |
right image | imageright | image on the right | 文件 | 可选 |
imagerightsize | imagerightsize | size of the image on the right
| 未知 | 可选 |
type | type | box style type
| 未知 | 可选 |
redirect | redirect | suppresses categorization if intended target is a redirect | 布尔 | 可选 |
Instruction editnotices
For editnotices that provide instruction on how to edit a page, the {{Instruction editnotice}}
wrapper template may be used. It takes the same parameters as this template, but with the header, image, style, and expiration preset by default to encourage consistent formatting. It generates editnotices such as this:
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
{{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 article. The FAQ includes questions on many issues that have been discussed. | textstyle = background-color: #fee; | image = }}
检查到模板循环:模板:Editnotice
{{editnotice | id = engvaredn | header = | headerstyle = | text = This article is written in '''[[British English]]''', which differs from [[American English]] in some ways. See [[American and British English differences]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]], this should not be changed without broad consensus. | textstyle = | image = Flag of the United Kingdom.svg | imagesize = 50px }}
检查到模板循环:模板:Editnotice
Namespace key
0 – (Main)
1 – Talk:
2 – User: [note 1]
3 – User talk: [note 2]
4 – Wikipedia:
5 – Wikipedia 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 – Portal:
101 – Portal talk:
118 – Draft:
119 – Draft talk:
710 – TimedText:
711 – TimedText talk:
828 – Module:
829 – Module 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.
Editnotices created so far
See also
- Wikipedia:Editnotice – More about editnotices
{{editnotice pagename}}
– Returns the pagename for the editnotice for the current page{{editnotice talkpagename}}
– Returns the talkpage name for the editnotice for the current page
Namespace key
0 – (Main)
1 – Talk:
2 – User: [note 1]
3 – User talk: [note 2]
4 – Wikipedia:
5 – Wikipedia 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 – Portal:
101 – Portal talk:
118 – Draft:
119 – Draft talk:
710 – TimedText:
711 – TimedText talk:
828 – Module:
829 – Module 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.
Editnotices created so far
See also
- Wikipedia:Editnotice – More about editnotices
{{editnotice pagename}}
– Returns the pagename for the editnotice for the current page{{editnotice talkpagename}}
– Returns the talkpage name for the editnotice for the current page