Jump to content

模板:Distinguish

From mediawiki.org
This page is a translated version of the page Template:Distinguish and the translation is 67% complete.
本页面的主题不是 [[:{{{1}}}]].
模板文档

用法

{{Distinguish}} is used to create hatnotes to warn about possible confusion with a small number of other, related, titles at the top of article sections according to Wikipedia:Layout.

It is not for use in the "See also" section at the bottom of an article.

{{Distinguish|条目1|...|条目4|label 1=标签1|...|label 4=标签4}}
  • 可以列举1~4个条目。
  • The word "or" is always placed between the final two entries when displayed.
  • If more than 4 entries are supplied, a message will be displayed pointing out the problem.
  • You can use parameters label 1 to label 4 to specify alternative labels for the links.
Adding newline characters will break article links.

示例

本页面的主题不是 article1.
本页面的主题不是 article1article2.
本页面的主题不是 article1、​article2、​ 或article3.
本页面的主题不是 article1、​article2、​ article3、​或article4.
本页面的主题不是 label1.
  • {{Distinguish|article1|article2|label 1=label1|label 2=label2}}
本页面的主题不是 label1label2.

TemplateData

[查看 · 讨论 · 编辑]

这是该模板的模板数据,用于可视化编辑器及其它工具。

Distinguish

Adds warning "Not to be confused" on the reader's page, with a short list of related pages.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page 11

Full name of related page

Page namerequired
Label 1l1 label 1

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional
Page 22

Full name of related page

Page nameoptional
Label 2l2 label 2

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional
Page 33

Full name of related page

Page nameoptional
Label 3l3 label 3

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional
Page 44

Full name of related page

Page nameoptional
Label 4l4 label 4

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional