Template:Distinguish/doc: Difference between revisions
wiki>Mesocyclonic93 m Reverted edit by ~2026-22074-05 (talk) to last version by DB1729 |
Remove unsupported imported template links from documentation |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata --> | |||
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata | |||
{{High-use| 65005 }} | {{High-use| 65005 }} | ||
{{Lua|Module:distinguish}} | {{Lua|Module:distinguish}} | ||
This template produces a | This template produces a hatnote to point out to readers, who may have misspelled their desired title, the existence of one or more pages whose title(s) is, or are, similar to the current page. It is used in cases where the distinction between the titles is generally obvious and does not need further explanation. | ||
For cases where an explanation is required, please use the templates {{tl|For}} and {{tl|About}}. For use on category pages, the corresponding template is | For cases where an explanation is required, please use the templates {{tl|For}} and {{tl|About}}. For use on category pages, the corresponding template is <code>Template:Category distinguish</code>. | ||
== Usage == | == Usage == | ||
| Line 18: | Line 16: | ||
:{{demo-inline|<nowiki>{{distinguish|Bangla language|Mbangala language|Ngala language}}</nowiki>}} | :{{demo-inline|<nowiki>{{distinguish|Bangla language|Mbangala language|Ngala language}}</nowiki>}} | ||
The {{para|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 | The {{para|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,{{Clarify|reason=What is the relevant guideline? The link doesn't seem to explain. Please quote the guideline here in a footnote if possible.|date=September 2025}} the article "Apollo" is linked to directly and a short explanation fills in the necessary context: | ||
:{{demo-inline|<nowiki>{{distinguish|text=Phoebus, an epithet of the Greek god [[Apollo]]}}</nowiki>}} | :{{demo-inline|<nowiki>{{distinguish|text=Phoebus, an epithet of the Greek god [[Apollo]]}}</nowiki>}} | ||
| Line 45: | Line 43: | ||
: {{hatnote|This article is about the board game. For the card game, see [[Reversis]].}}<!-- Using a custom {{hatnote}} because {{about}} automatically detects the page type so it would replace "article" with "template". --> | : {{hatnote|This article is about the board game. For the card game, see [[Reversis]].}}<!-- Using a custom {{hatnote}} because {{about}} automatically detects the page type so it would replace "article" with "template". --> | ||
{{tlc|Distinguish}} 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 | {{tlc|Distinguish}} 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. | ||
== Redirects == | == Redirects == | ||
* | * <code>Template:Confused</code> | ||
* | * <code>Template:Confuse</code> | ||
* | * <code>Template:Misspelling</code> | ||
* | * <code>Template:Nottobeconfusedwith</code> | ||
* | * <code>Template:Ntbcw</code> | ||
== See also == | == See also == | ||
* {{tl|About}} | * {{tl|About}} | ||
* | * <code>Template:Category distinguish</code> | ||
* {{tl|For}} | * {{tl|For}} | ||
* | * <code>Template:Redirect</code> | ||
* | * <code>Template:R from misspelling</code> | ||
{{Hatnote templates}} | {{Hatnote templates}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Add categories below this line, and interwikis at Wikidata --> | <!-- Add categories below this line, and interwikis at Wikidata --> | ||
}}</includeonly> | }}</includeonly> | ||