打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

“模板:Hatnote/doc”与“模板:See also/doc”:页面之间的差异

爱来自星云工艺喵!(づ。◕◡◡◕。)づ
(页面间差异)
Kuina留言 | 贡献
创建页面,内容为“Hatnote is a simple notice template intended for use posting editorial notes in articles. Note that the user should supply a short bolded description of what kind of editorial note this is. ;Sample Output: <nowiki>{{Note|'''Note:''' This is an editorial comment.}}</nowiki> ;Results in: {{Note|'''Note:''' This is an editorial comment.}} ;Sample Output: <nowiki>{{Note|'''Errata:''' Correction to this comm-link (include reference to source).}}</nowiki> ;Result…”
 
Kuina留言 | 贡献
无编辑摘要
 
第1行: 第1行:
Hatnote is a simple notice template intended for use posting editorial notes in articles. Note that the user should supply a short bolded description of what kind of editorial note this is.
{{See also|Test}}
This template is used to point to a small number of other related titles at the top of article sections.


;Sample Output:
==TemplateData==
<nowiki>{{Note|'''Note:''' This is an editorial comment.}}</nowiki>
<templatedata>
 
{
;Results in:
"description": "This template creates a hatnote to point to a small number of related pages. It is placed at the top of a section, directly underneath the section heading.",
{{Note|'''Note:''' This is an editorial comment.}}
"params": {
 
"1": {
;Sample Output:
"label": "Page 1",
<nowiki>{{Note|'''Errata:''' Correction to this comm-link (include reference to source).}}</nowiki>
"description": "The name of the first page that you want to link to.",
 
"type": "wiki-page-name",
;Results in:
"required": true,
{{Note|'''Errata:''' Correction to this comm-link (include reference to source).}}
"example": "Article name"
 
},
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly>
"2": {
"label": "Page 2",
"description": "The name of the second page that you want to link to.",
"type": "wiki-page-name",
"required": false
},
"3": {
"label": "Page 3",
"description": "The name of the third page that you want to link to. More pages can be added using the parameters \"4\", \"5\", \"6\", etc.",
"type": "wiki-page-name",
"required": false
},
"label 1": {
"label": "Label 1",
"type": "string",
"description": "What the first linked article is to be displayed as. ",
"aliases": [
"l1"
]
},
"label 2": {
"label": "Label 2",
"type": "string",
"description": "What the second linked article is to be displayed as.",
"aliases": [
"l2"
]
},
"selfref": {
"type": "boolean",
"label": "Self reference",
"description": "Set to \"yes\" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site.",
"example": "yes",
"default": "no"
},
"category": {
"label": "Category",
"description": "Set to \"no\", \"n\", \"false\", or \"0\" to suppresses the error tracking category (Category:Hatnote templates with errors). This only has an effect if no page names are specified.",
"type": "boolean",
"default": "yes",
"example": "no"
},
"label 3": {
"aliases": [
"l3"
],
"type": "string",
"label": "Label 3",
"description": "What the third linked article is to be displayed as. Other labels can be added by using increasing numbers (starting with \"label 4\" or \"l4\" for page 4) as parameter names."
}
},
"format": "inline"
}
</templatedata>

2025年5月30日 (五) 13:56的版本

This template is used to point to a small number of other related titles at the top of article sections.

TemplateData

This template creates a hatnote to point to a small number of related pages. It is placed at the top of a section, directly underneath the section heading.

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
Page 11

The name of the first page that you want to link to.

示例值
Article name
页面名称必需
Page 22

The name of the second page that you want to link to.

页面名称可选
Page 33

The name of the third page that you want to link to. More pages can be added using the parameters "4", "5", "6", etc.

页面名称可选
Label 1label 1 l1

What the first linked article is to be displayed as.

字符串可选
Label 2label 2 l2

What the second linked article is to be displayed as.

字符串可选
Self referenceselfref

Set to "yes" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site.

默认值
no
示例值
yes
布尔可选
Categorycategory

Set to "no", "n", "false", or "0" to suppresses the error tracking category (Category:Hatnote templates with errors). This only has an effect if no page names are specified.

默认值
yes
示例值
no
布尔可选
Label 3label 3 l3

What the third linked article is to be displayed as. Other labels can be added by using increasing numbers (starting with "label 4" or "l4" for page 4) as parameter names.

字符串可选
我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。