模板:About/doc:修订间差异
外观
< 模板:About
小 |
|||
第1行: | 第1行: | ||
{{Documentation header}} | |||
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> | |||
{{ombox|type=content|text=此模板应当只有在条目或话题名称非常接近的时候使用。绝大部分条目并不存在这个情况,所以请不要滥用。}} | |||
{{Lua|Module:About}} | |||
{{tcode|About}}应当被放在条目顶端,引导读者去阅读其他名称类似他们可能需要的条目或概念。此模板有许多形式,包括 | |||
*{{Tl|About|Use1}} → {{About|Use1}} | |||
*{{Tl|About|Use1|<nowiki/>|Article2}} → {{About|Use1||Article2}} | |||
*{{Tl|About|Use1|<nowiki/>|Article2|和|Article3}} → {{About|Use1||Article2|和|Article3}} | |||
*{{Tl|About|Use1|Use2|Article2}} → {{About|Use1|Use2|Article2}} | |||
*{{Tl|About|Use1|Use2|Article2|和|Article3}} → {{About|Use1|Use2|Article2|和|Article3}} | |||
*{{Tl|About|Use1|Use2|Article2|其他用法}} → {{About|Use1|Use2|Article2|其他用法}} | |||
同时<code>section=yes</code>参数也可被加入到{{tcode|About}}模板,用于放置在章节/小节顶端。当使用这个参数时,模板消息会有细微的变化: | |||
*{{Tl|About|Use1|<nowiki>section=yes</nowiki>}} → {{About|Use1|section=yes}} | |||
*{{Tl|About|Use1|<nowiki/>|Article2|<nowiki>section=yes</nowiki>}} → {{About|Use1||Article2|section=yes}} | |||
{{ | *{{Tl|About|Use1|Use2|Article2|<nowiki>section=yes</nowiki>}} → {{About|Use1|Use2|Article2|section=yes}} | ||
*{{Tl|About|Use1|Use2|Article2|和|Article3|<nowiki>section=yes</nowiki>}} → {{About|Use1|Use2|Article2|和|Article3|section=yes}} | |||
*{{Tl|About|Use1|Use2|Article2|其他用法|<nowiki>section=yes</nowiki>}} → {{About|Use1|Use2|Article2|其他用法|section=yes}} | |||
* | |||
{{ | |||
{{ | |||
* | |||
{{ | |||
* | |||
{{ | |||
{{ | |||
* | |||
{{ | |||
{{ | |||
* | |||
{{ | |||
可选的{{p|text}}参与可以在消息末尾添加自定义文本。请务必仅在必须且其他题注模板无法满足需求是才加入此参数。此模板同时支持{{p|selfref}}参数。 | |||
< | ==模板参数== | ||
<noinclude> | {| class="wikitable sortable" | ||
!colspan=2| 参数 | |||
! 描述 | |||
! 类型 | |||
! 状态 | |||
|- | |||
! 页面描述 | |||
| <code>1</code> | |||
| What the page this template is placed on is about ("This page is about …") | |||
| 字符串 | |||
| '''必填''' | |||
|- | |||
! 另一页描述 | |||
| <code>2</code> | |||
| What the first other page is about. If unused or blank, defaults to "For other uses". | |||
| 字符串 | |||
| 建议 | |||
|- | |||
! 另一页标题 | |||
| <code>3</code> | |||
| The title of the first other page. If unused, defaults to "[page title] (disambiguation)". | |||
| 页面 | |||
| 建议 | |||
|- | |||
! 另二页描述 | |||
| <code>4</code> | |||
| What the second other page is about. | |||
| 字符串 | |||
| 选填 | |||
|- | |||
! 另二页标题 | |||
| <code>5</code> | |||
| The title of the second other page. If unused or blank and parameter 4 exists, defaults to "[page title] (disambiguation)". | |||
| 页面 | |||
| 选填 | |||
|- | |||
! 另三页描述 | |||
| <code>6</code> | |||
| What the third other page is about. | |||
| 字符串 | |||
| 选填 | |||
|- | |||
! 另三页标题 | |||
| <code>7</code> | |||
| The title of the third other page. If unused or blank and parameter 6 exists, defaults to "[page title] (disambiguation)". | |||
| 页面 | |||
| 选填 | |||
|- | |||
! 另四页描述 | |||
| <code>8</code> | |||
| What the fourth other page is about. | |||
| 字符串 | |||
| 选填 | |||
|- | |||
! 另四页标题 | |||
| <code>9</code> | |||
| The title of the fourth other page. If unused or blank and parameter 8 exists, defaults to "[page title] (disambiguation)". | |||
| 页面 | |||
| 选填 | |||
|- | |||
! Custom text | |||
| <code>section</code> | |||
| Pass "yes" in this parameter to get wording appropriate for use at the top of a section. | |||
;'''Bold text''' | |||
;<code>yes</code> | |||
| 字符串 | |||
| 选填 | |||
|- | |||
! 自定义文本 | |||
| <code>text</code> | |||
| Text to be appended to the end. | |||
| 字符串 | |||
| 选填 | |||
|} | |||
<!-- To add more other pages, continue with this alternating pattern using increasing numbers, starting with 6 for the next page description. --> | |||
==参见== | |||
*[[Wikipedia:hatnote]] | |||
<includeonly> | |||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> | |||
[[Category:消歧义与重定向模板]] | |||
[[Category:顶顶模板]] | |||
</includeonly> | |||
<noinclude></noinclude> |
2022年5月7日 (六) 00:13的最新版本
Lua错误:callParserFunction: function "#dplvar" was not found。
![]() | 此模板应当只有在条目或话题名称非常接近的时候使用。绝大部分条目并不存在这个情况,所以请不要滥用。 |
模板:Tcode应当被放在条目顶端,引导读者去阅读其他名称类似他们可能需要的条目或概念。此模板有许多形式,包括
- {{About|Use1}} →
- {{:About|Use1}} →
- {{:About|Use1}} →
- {{Use2:About|Use1}} →
- {{Use2:About|Use1}} →
- {{Use2:About|Use1}} →
同时section=yes
参数也可被加入到模板:Tcode模板,用于放置在章节/小节顶端。当使用这个参数时,模板消息会有细微的变化:
- {{section=yes:About|Use1}} →
- {{:About|Use1}} →
- {{Use2:About|Use1}} →
- {{Use2:About|Use1}} →
- {{Use2:About|Use1}} →
可选的{{{text}}}
参与可以在消息末尾添加自定义文本。请务必仅在必须且其他题注模板无法满足需求是才加入此参数。此模板同时支持{{{selfref}}}
参数。
模板参数
[编辑源代码]参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
页面描述 | 1
|
What the page this template is placed on is about ("This page is about …") | 字符串 | 必填 |
另一页描述 | 2
|
What the first other page is about. If unused or blank, defaults to "For other uses". | 字符串 | 建议 |
另一页标题 | 3
|
The title of the first other page. If unused, defaults to "[page title] (disambiguation)". | 页面 | 建议 |
另二页描述 | 4
|
What the second other page is about. | 字符串 | 选填 |
另二页标题 | 5
|
The title of the second other page. If unused or blank and parameter 4 exists, defaults to "[page title] (disambiguation)". | 页面 | 选填 |
另三页描述 | 6
|
What the third other page is about. | 字符串 | 选填 |
另三页标题 | 7
|
The title of the third other page. If unused or blank and parameter 6 exists, defaults to "[page title] (disambiguation)". | 页面 | 选填 |
另四页描述 | 8
|
What the fourth other page is about. | 字符串 | 选填 |
另四页标题 | 9
|
The title of the fourth other page. If unused or blank and parameter 8 exists, defaults to "[page title] (disambiguation)". | 页面 | 选填 |
Custom text | section
|
Pass "yes" in this parameter to get wording appropriate for use at the top of a section.
|
字符串 | 选填 |
自定义文本 | text
|
Text to be appended to the end. | 字符串 | 选填 |
参见
[编辑源代码]