模板:Editnotice/doc
此页面是Template:Editnotice的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
此模板文档被引用于MediaWiki:Editnotice-*中。 任何对此模板文档的修改会立即反映于维基百科的用户界面。 为了避免造成大规模的影响,编者可以在本模板的沙盒 和测试样例 页面进行实验。2 测试后无误的版本可以一次性地加入此模板文档中,但是修改前请务必于讨论页发起讨论。 |
此模板的文档不存在、不全面或不能详细描述其功能及/或其代码中的参数。请帮助扩充并改进其文档。 |
所有编辑提示请见Special:PrefixIndex/Template:Editnotices/和Special:PrefixIndex/MediaWiki:Editnotice。
用法
这个模板用于编辑提示,也就是编辑区上方的文字提示。编辑提示可以每个命名空间定制,也可以每页定制。
如要创建一个编辑提示,请按照WP:编辑提示的步骤进行。
{{editnotice | header = | headerstyle = | text = | textstyle = | image = }}
注:除text
参数,所有参数均可省略。
参数
|header=头部文本
|headerstyle=头部文本的CSS格式
|text=主要文本
|textstyle=主要文本的CSS格式
|image=图片
示例
{{editnotice | 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 = }}
Attention editors
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. |
{{editnotice | 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 = }}
Frequently asked questions
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. |
{{editnotice | 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 = [[File:Flag of the United Kingdom.svg|50px]] }}
This article is written in British English, which differs from American English in some ways. See American and British English differences. According to the relevant style guide, this should not be changed without broad consensus. |
命名空间编号
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:
- ^ 用户页编辑提示现在可以通过用户页子页面 "/Editnotice" 实现。这允许非管理员用户创建他们自己的用户页编辑提示。用户页编辑提示的显示由 MediaWiki:Editnotice-2控制。
- ^ 用户讨论页编辑提示现在可以通过用户讨论页子页面 "/Editnotice" 实现。这允许非管理员用户创建他们自己的用户讨论页编辑提示。用户讨论页编辑提示的显示由 MediaWiki:Editnotice-3控制。
参见
- Wikipedia:编辑提示 - 更多关于编辑提示的事项。
- {{editnotice pagename}} – 返回当前页面用户提示的页名称。
- {{editnotice talkpagename}} – 返回当前页面用户提示的讨论页名称。