模板:Distinguish/doc

来自About High Performance
Sxzhang讨论 | 贡献2023年11月6日 (一) 20:23的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

Description

The "distinguish" template produces a hatnote to point out to our readers the existence of one or more articles whose title(s) is, or are, similar to the page in question. It is used in cases where the distinction between the titles is generally obvious and does not need further explanation.

For those cases where an explanation is required, please use the templates {{For}} and {{About}}. For use on category pages, the corresponding template is {{Category distinguish}}.

Usage

Here is an example of its standard usage (used, for purposes of this example, with the placeholder article "Foo"; the following could be placed on a theoretical article named "Foo (song)", or perhaps one named "Fou" or "Fu"): Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open filesLua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

This hatnote can be used to distinguish the topic from multiple other topics: Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open filesLua错误:无法创建进程:proc_open(): unable to create pipe Too many open files Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open filesLua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

The |text= parameter can be used to create customized text, in case context is required. An example is on the article Phobos (mythology), which contains a customized hatnote to distinguish it and "Phoebus" (a redirect of Apollo). Both links lead to topics about Greek gods, so the parenthetical disambiguation in "Phobos (mythology)" is insufficient to disambiguate the two. Since it is typically not preferable to link a redirect in a hatnote, the article "Apollo" is linked to directly and a short explanation fills in the necessary context: Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open filesLua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

Note that a final period is automatically added at the end of the sentence, and that only one blue link is used per disambiguated topic (i.e, do not type ...an [[epithet]] of the [[Greek]] god [[Apollo]].

When the target is a disambiguation page, display of the parentheses may be avoided by escaping the vertical bar using the magic word {{!}}: checkYLua错误:无法创建进程:proc_open(): unable to create pipe Too many open filesLua错误:无法创建进程:proc_open(): unable to create pipe Too many open files The escape is necessary, otherwise the template will read the next text as another topic: NLua错误:无法创建进程:proc_open(): unable to create pipe Too many open filesLua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

When to use

This hatnote is generally used when readers have misspelled their desired title, and the error would be apparent by simply displaying the alternative term without further explanation. For example, consider a reader looking for the punctuation mark who instead ends up at coma:

Coma
Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

Readers are presumed to recognize that they actually wanted comma by merely looking at the spelling, and this case generally requires no further explanation.

However, Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files is not suitable when the difference is not readily apparent without additional details. Consider a reader looking for a game they believe is named Reversi:

N Reversi
Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

In the above hatnote, it is not generally apparent how the suggested Reversis is different from Reversi, which is also a game.

In this case you should use Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files instead of Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files. The difference is to provide explanation upfront without requiring the reader to click through and differentiate the terms on their own.

checkY Reversi
This article is about the board game. For the card game, see Reversis.

Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files should only be used when the ambiguity exists for a portion of the readership that is sufficient to warrant a hatnote. Care should be taken to avoid trivial uses.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Distinguish

Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files

<templatedata> { "params": { "1": { "label": "Name of article", "description": "Name of article that you want to link to", "type": "wiki-page-name",

                       "suggested": true

}, "2": { "label": "Optional additional article to link (2)", "description": "Optional additional article to link", "type": "wiki-page-name" }, "3": { "label": "Optional additional article to link (3)", "description": "Optional additional article to link", "type": "wiki-page-name" }, "4": { "label": "Optional additional article to link (4)", "description": "Optional additional article to link", "type": "wiki-page-name" },

       "text": {
           "label": "Custom text",
           "description": "Custom message in wikitext; e.g. \"foo and bar\" produces \"Not to be confused with foo and bar.\"",
           "type": "string"
       },
       "selfref": {
           "label": "Self reference",
           "description": "If set, marks note as being a self reference, to not be shown when content is reused",
           "type": "boolean"
       }

}, "description": "A hatnote used when there is an ambiguity in an article's title.", "paramOrder": [ "1", "2", "3", "4",

               "text",
               "selfref"

], "format": "inline" } </templatedata>

Redirects

See also

Lua错误:无法创建进程:proc_open(): unable to create pipe Too many open files