跳转到内容

欢迎来到MCServerWiki!如果您是第一次来到这里,请点击:创建账户

模板:About/doc:修订间差异

来自MCServerWiki
Admin
Admin留言 | 贡献 (导入1个版本)
PexEric
PexEric留言 | 贡献
 
第1行: 第1行:
本模板与模板文档搬运自[https://zh.moegirl.org.cn/Template:About 萌娘百科的About模板],依[https://creativecommons.org/licenses/by-nc-sa/4.0/ CC BY-NC-SA]协议引入;你可以查看[https://zh.wikipedia.org/wiki/template:About?action=history 中文维基百科][https://zh.moegirl.org.cn/Template:About?action=history 萌娘百科]的原贡献者,经过编辑者的修改,本模板可能已与来源有很大差异。
{{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}}
* <code>&#123;&#123;'''About'''|本条目描述=荣誉版主用户组|另一含义=关键词“'''版主'''”的其他含义|另一条目名=版主&#125;&#125;</code>
*{{Tl|About|Use1|<nowiki/>|Article2|<nowiki>section=yes</nowiki>}} → {{About|Use1||Article2|section=yes}}
{{about|本条目描述=荣誉版主用户组|另一含义=关键词'''版主'''的其他含义|另一条目名=版主}}
*{{Tl|About|Use1|Use2|Article2|<nowiki>section=yes</nowiki>}} → {{About|Use1|Use2|Article2|section=yes}}
* <code>&#123;&#123;'''About'''|本条目描述=荣誉版主用户组|消歧义页=版主&#125;&#125;</code> →
*{{Tl|About|Use1|Use2|Article2||Article3|<nowiki>section=yes</nowiki>}} → {{About|Use1|Use2|Article2|和|Article3|section=yes}}
{{about|本条目描述=荣誉版主用户组|消歧义页=版主}}
*{{Tl|About|Use1|Use2|Article2|其他用法|<nowiki>section=yes</nowiki>}} {{About|Use1|Use2|Article2|其他用法|section=yes}}
=== 简单的调用方法 ===
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1&#125;&#125;</code>(常见情况,只有2个用法)→
{{about|本页用法|其他用法1|其他条目1}}
* <code>&#123;&#123;'''About'''|本页用法| |消歧义条目&#125;&#125;</code>(留空参数2可以自动填写说明)→
{{about|本页用法||消歧义条目}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1|and|其他条目2&#125;&#125;</code>(”and“不能改成中文)→
{{about|本页用法|其他用法1|其他条目1|and|其他条目2}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1#子章节<nowiki>{{!}}其他条目1标题}}</nowiki></code>(使用<nowiki>{{!}}</nowiki>代替竖线来显示不同标题)→
{{about|本页用法|其他用法1|其他条目1#子章节{{!}}其他条目1标题}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1|其他用法2|其他条目2|and|其他条目3&#125;&#125;</code>(随意组合<!--;表达较长时建议使用{{Tl|Otheruseslist}}-->)→
{{about|本页用法|其他用法1|其他条目1|其他用法2|其他条目2|and|其他条目3}}
* <code>&#123;&#123;'''About'''|本页用法|用法1|条目1|用法2|条目2|用法3|条目3|用法4|条目4&#125;&#125;</code>(最多接受9个参数;此时请建立[[帮助:消歧义页#建立消歧义页|消歧义页]]并使用上述第2种最简短的用法)→
{{about|本页用法|用法1|条目1|用法2|条目2|用法3|条目3|用法4|条目4}}
* <code>&#123;&#123;'''About'''| |其他用法1|其他条目1&#125;&#125;</code>(可以不说明本页用法,留空参数1即可)→
{{about||其他用法1|其他条目1}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1|1|消歧义条目&#125;&#125;</code>(如果除了消歧义页外还要列出其他用法,可以在倒数第二个参数使用”1“)→
{{about|本页用法|其他用法1|其他条目1|1|消歧义条目}}
=== 其他说明 ===
* <code>&#123;&#123;'''About'''|本章用法|其他用法1|其他条目1|'''section=yes'''&#125;&#125;</code>(如果在章节下使用,请在最后添加一个section参数,赋予任意非空值,比如yes或1)→
{{about|本章用法|其他用法1|其他条目1|section=yes}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1|'''前=在上方加提示。'''&#125;&#125;</code>(如果要在这行说明上方添加提示,请添加pre或者”前“参数)→
{{about|本页用法|其他用法1|其他条目1|前=在上方加提示。}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1|'''后=在下方加提示。'''&#125;&#125;</code>(如果要在这行说明下方添加提示,请添加post或者”后“参数)→
{{about|本页用法|其他用法1|其他条目1|后=在下方加提示。}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1|pre=上方无效。|post=下方有效。&#125;&#125;</code>(不能在上下方同时添加提示)→
{{about|本页用法|其他用法1|其他条目1|pre=上方无效。|post=下方有效。}}
* <code>&#123;&#123;'''About'''|一名MCBBS的用户|绰号为“<nowiki>{{Ruby|ljyys|逻辑与运算}}</nowiki>”的MCBBS用户|阴阳师元素祭祀|'''offset=6'''&#125;&#125;</code>(通过 offset 参数向下移动图标,默认值 -2)→
{{about|一名MCBBS的用户|绰号为“{{Ruby|ljyys|逻辑与运算}}”的MCBBS用户|阴阳师元素祭祀|offset=6}}
=== 错误示例 ===
* <code>&#123;&#123;'''About'''|本页用法|其他用法1|其他条目1| |其他条目2&#125;&#125;</code>(部分参数空缺导致后方参数被忽略)→
{{about|本页用法|其他用法1|其他条目1||其他条目2}}
* <code>&#123;&#123;'''About'''|本页用法|其他用法1&#125;&#125;</code>(缺少参数直接报错)→
{{about|本页用法|其他用法1}}


== 其他 ==
可选的{{p|text}}参与可以在消息末尾添加自定义文本。请务必仅在必须且其他题注模板无法满足需求是才加入此参数。此模板同时支持{{p|selfref}}参数。
* 在编辑时使用本模板请务必预览结果。
<!--* 条目较多或者表述很长时请使用{{Tl|Otheruseslist}}。-->


<includeonly>[[Category:消歧义模板]][[Category:页顶提示模板]][[Category:只适用于条目的页顶模板]]</includeonly>
==模板参数==
<noinclude>[[分类:模板文档]]</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.
Bold text
yes
字符串 选填
自定义文本 text Text to be appended to the end. 字符串 选填