Skantlyn:Hatnote templates documentation
Hatnote templates
[pennfenten]Kammwrians Lua: expandTemplate: template "No redirect" does not exist. For a summary page on how to use these templates, see the example page here. For the full editing guideline on hatnotes, see Wikipedia:Hatnote.
Generic
[pennfenten]- {{hatnote|CUSTOM TEXT}} → CUSTOM TEXT
- {{rellink|CUSTOM TEXT}} → CUSTOM TEXT
Other uses (of the title)
[pennfenten]"This page is about … For other uses …"
[pennfenten]{{About}} is the main template for noting other uses.
Note. When used in main namespace, the word "page" in the following hatnotes is replaced by "article".
- {{about|USE1}} → Skantlyn:About
- {{about|USE1||PAGE2}} (When the disambiguation page has a different name – Note the empty second parameter) → Skantlyn:About
- {{about|USE1|USE2|PAGE2}} (When there is only one other use) → Skantlyn:About
- {{about|USE1|USE2|PAGE2|and|PAGE3}} (Two pages for USE2) → Skantlyn:About
- {{about|USE1|USE2|PAGE2#SUBSECTIONSkantlyn:TlfPAGE2TITLE}} (Using the {{!}} template to give the link a different title) → Skantlyn:About
- {{about|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}} (When there are up to four other uses – You should generally create a disambiguation page at this point) → Skantlyn:About
- {{about|USE1|USE2|PAGE2|USE3|PAGE3|other uses}} (When there are several standard other uses and also a disambiguation page with default name – Note that the last page name is not specified) → Skantlyn:About
- {{about|USE1|USE2|PAGE2|USE3|PAGE3|other uses|PAGE4}} (When there are several standard other uses and also a disambiguation page with non-default name) →Skantlyn:About
- {{about|USE1|USE2|PAGE2|USE3|PAGE3|other uses|PAGE4|and}} → Skantlyn:About
- {{about||USE2|PAGE2|USE3|PAGE3|other uses}} (When you don't need to state the focus of this article/page – Note the empty first parameter) → Skantlyn:About
- {{about|||PAGE1|and|PAGE2}} → Skantlyn:About
- Note: {{for||PAGE1|PAGE2}} produces the same result.
- {{other uses-section|USE}} (disambiguous) → Skantlyn:Other uses-section
- Note: this hatnote says "section", instead of "article" or "page".
"See also …"
[pennfenten]- {{see also|OTHER TOPIC|OTHER TOPIC2}} → Skantlyn:See also
- Note: use when OTHER TOPIC is related to that of the current article and already contains a self-explanatory parenthetical.
- {{see also2|[[OTHER TOPIC]]|[[OTHER TOPIC2]]|[[OTHER TOPIC3]] and other text}} → Skantlyn:See also2
"For …, see …"
[pennfenten]{{For}} can be used instead of {{About}} so as not to display: This page is about USE1. but still specify a specific other use. This effect can also be achieved by using an empty first parameter in {{About}} as in:
- For example: {{for|OTHER TOPIC|PAGE1}} is the same as {{about||OTHER TOPIC|PAGE1}} (note the empty first parameter).
However, it is somewhat clearer when using the {{For}} template, since the word "about" does not appear in the statement.
- {{for|OTHER TOPIC}} (disambiguous) →
- {{for|OTHER TOPIC|PAGE1}} →
- {{for|OTHER TOPIC|PAGE1|PAGE2}} →
- {{for|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} →
- {{for||PAGE1|PAGE2}} → Error: no context parameter provided. Use {{other uses}} for "other uses" hatnotes. (help).
- Variations
As with {{Other uses}}, there are a whole family of "for" templates.
- {{for2|OTHER TOPIC|CUSTOM TEXT}} → For OTHER TOPIC, see CUSTOM TEXT.
"For other uses, see …"
[pennfenten]When such a wordy hatnote as {{About}} is not needed, {{Other uses}} is often useful.
- {{other uses}} (disambiguous) → Skantlyn:Other uses
- {{other uses|PAGE1}} → Skantlyn:Other uses
- {{other uses|PAGE1|PAGE2}} → Skantlyn:Other uses
- Variations
There are, historically, a whole family of "other uses" templates for specific cases. {{About}} is the standard hatnote for "other uses" and many of them can be specified using the {{About}} template. However, the individual templates may be easier to use in certain contexts.
Here are the variations and (when appropriate) the equivalents using the {{About}}, {{Other uses}} or {{For}} templates.
- {{other uses2|PAGE1}} (disambiguous) → Skantlyn:Other uses2
- Note: adds "(disambiguation)" to whatever is input as the PAGE1.
- Note: {{other uses|PAGE1 (disambiguation)}} produces the same result.
- {{two other uses|USE1|USE2|PAGE2}} → Skantlyn:Two other uses
- Note: same as {{about}}, except it forces a second use to be noted if unspecified by parameters.
- {{two other uses|USE1|USE2|PAGE2|USE3|PAGE3}} → Skantlyn:Two other uses
- {{three other uses|USE1|USE2|PAGE2|USE3|PAGE3}} Skantlyn:Three other uses
- {{three other uses||USE2|PAGE2|USE3|PAGE3}} → Skantlyn:Three other uses
- {{three other uses|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4}} → Skantlyn:Three other uses
"For other uses of …, see …"
[pennfenten]- {{other uses of}} (disambiguous) → Skantlyn:Other uses of
- {{other uses of|TOPIC}} (disambiguous) → Skantlyn:Other uses of
- {{other uses of|TOPIC|PAGE1}} → Skantlyn:Other uses of
"For more details on …, see …"
[pennfenten]{{details}} is used to make summary style explicit. To be used in a section for which there is also a separate article on the subject.
- {{details|Article|TOPIC}} → Skantlyn:Details
{{Details3}} allows any text to links:
- {{details3|[[article 1]], [[article 2]], and [[article 3]]|TOPIC}} → Skantlyn:Details3
"… redirects here. For other uses, see …"
[pennfenten]- {{redirect|REDIRECT}} (disambiguous) →
- {{redirect|REDIRECT||PAGE1}} →
- {{redirect|REDIRECT|USE1|PAGE1}} →
- {{redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}} →
- {{redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}} →
- {{redirect|REDIRECT|USE1|PAGE1|and|PAGE2}} →
- {{redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|and|PAGE3}} →
- Variations
- {{redirect-synonym|TERM|OTHER TOPIC}} → Skantlyn:Redirect-synonym
- {{redirect2|REDIRECT1|REDIRECT2}} (disambiguous) → Skantlyn:Redirect2
- {{redirect2|REDIRECT1|REDIRECT2|USE|PAGE1}} → Skantlyn:Redirect2
- {{redirect2|REDIRECT1|REDIRECT2|USE1|PAGE1|USE2|PAGE2}} → Skantlyn:Redirect2
- {{redirect2|REDIRECT1|REDIRECT2|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}} → Skantlyn:Redirect2
- {{redirect3|REDIRECT|TEXT}} → Skantlyn:Redirect3
- {{redirect4|REDIRECT1|REDIRECT2}} (disambiguous) → Skantlyn:Redirect4
- {{redirect6|REDIRECT|USE1|PAGE1}} (disambiguous) → Skantlyn:Redirect6
- {{redirect6|REDIRECT|USE1|PAGE1||PAGE2}} → Skantlyn:Redirect6
- {{redirect7|"REDIRECT1", "REDIRECT2", and "REDIRECT3"|USE1|PAGE1|USE2|PAGE2}} → Skantlyn:Redirect7
- Note: If the number of pages redirecting to the target page is two, {{redirect2}} can be used instead. If the number is three and there are three corresponding disambiguation pages, {{redirect10}} can be used.
- {{redirect10|REDIRECT1|REDIRECT2|REDIRECT3}} (disambiguous) → Skantlyn:Redirect10
- ... Not to be confused with ...
- {{redirect-distinguish|REDIRECT|PAGE1}} → Skantlyn:Redirect-distinguish
- {{redirect-distinguish|REDIRECT|PAGE1|PAGE2|PAGE3|PAGE4}} → Skantlyn:Redirect-distinguish
- {{redirect-distinguish2|REDIRECT|TEXT}} → Skantlyn:Redirect-distinguish2
"Further information: …"
[pennfenten]- {{further|PAGE}} → Skantlyn:Further
- {{further|PAGE1|PAGE2|PAGE3}} → Skantlyn:Further
- {{further2|[[Article 1]], [[Article 2]], and [[Article Something#3|Article 3]]}} → Skantlyn:Further2
Other people, places, etcetera
[pennfenten]Other people
[pennfenten]- {{other people}} (disambiguous) → Skantlyn:Other people
- {{other people|NAME}} (disambiguous) → Skantlyn:Other people
- {{other people|NAME|PAGE}} → Skantlyn:Other people
- {{other people|NAME|PAGE|named=titled}} → Skantlyn:Other people
- {{other people2|PAGE}} → Skantlyn:Other people2
- {{other people3}} (disambiguous) → Skantlyn:Other people3
- Note: same as {{About}} except uses "other people" instead of "other uses" if only 1 parameter is used
- {{other people3|PERSON1}} (disambiguous) → Skantlyn:Other people3
- {{other people3|PERSON1|PERSON2}} (disambiguous) → Skantlyn:Other people3
- {{other people3|PERSON1|PERSON2|PAGE2}} → Skantlyn:Other people3
- {{other people3|PERSON1||PAGE2}} → Skantlyn:Other people3
- {{other people5|NAME1|NAME2|NAME3|NAME4}} → Skantlyn:Other people5
- Note: defaults to "named" as in {{Other people}}, exists for options like "nicknamed", "known as", etc.
Other places
[pennfenten]- {{other places}}, analogous to {{Other uses}} (disambiguous) → Skantlyn:Other places
- {{other places|PAGE}}, analogous to {{Other uses2}}(disambiguous) → Skantlyn:Other places
- {{other places3|PAGE}}, analogous to {{Other uses}} → Skantlyn:Other places3
Other hurricanes
[pennfenten]For articles on storms:
- {{other hurricanes}} (disambiguous) → Skantlyn:Other hurricanes
- {{other hurricanes|PAGE1}} → Skantlyn:Other hurricanes
- {{other hurricanes|PAGE1|THIS}} → Skantlyn:Other hurricanes
- {{other hurricanes||THIS}} → Skantlyn:Other hurricanes
Other ships
[pennfenten]For articles on ships:
- {{other ships|SHIP1}} → Skantlyn:Other ships
Distinguish
[pennfenten]"Not to be confused with …"
[pennfenten]- {{distinguish|PAGE1}} → Skantlyn:Distinguish
- {{distinguish|PAGE1|PAGE2|PAGE3|PAGE4}} → Skantlyn:Distinguish
- {{distinguish2|TEXT}} → Skantlyn:Distinguish2
"… redirects here. It is not to be confused with …"
[pennfenten]- {{redirect-distinguish|REDIRECT|PAGE1}} → Skantlyn:Redirect-distinguish
- {{redirect-distinguish|REDIRECT|PAGE1|PAGE2|PAGE3|PAGE4}} → Skantlyn:Redirect-distinguish
- {{redirect-distinguish2|REDIRECT|TEXT}} → Skantlyn:Redirect-distinguish2
"Main article: …" etc.
[pennfenten]- {{main|Main Article}} →
Chif erthygel: Main Article
- {{main|Main Article|Article2}} →
Chif erthyglow: Main Article a Article2
- {{main list|Article1}} → Skantlyn:Mainlist
- {{ArticlePreceeding|George Washington}} → Skantlyn:ArticlePreceeding
- {{ArticleSucceeding|Thomas Jefferson}} → Skantlyn:ArticleSucceeding
- {{ArticlePair|George Washington|Thomas Jefferson}} → Skantlyn:ArticlePair
- {{cat main|MAIN ARTICLE}} → Skantlyn:Cat main
Wikipedia self-reference
[pennfenten]- {{selfref|ANYTEXT}} → ANYTEXT
- See: Manual of Style (self-references to avoid) for more details.
Categories
[pennfenten]Category-specific templates produce bold category names.
- {{category see also|THIS|THAT|THE OTHER}} → Skantlyn:Category see also
This is a template for linking categories horizontally. Horizontal linkage is often the right solution when vertical linkage (i.e. as sub-category and parent category) is not appropriate. In most cases, this template should be used on both categories to create reciprocal linkage between the two categories.
- {{cat main|MAIN ARTICLE}} → Skantlyn:Cat main
- {{CatPreceding|OTHER TOPIC}} → Skantlyn:CatPreceding
- {{CatSucceeding|OTHER TOPIC}} → Skantlyn:CatSucceeding
- {{category pair|TOPIC1|TOPIC2}} → Skantlyn:Category pair
- {{contrast|OTHERCAT|OTHERCAT2}} → Skantlyn:Contrast
- {{contrast|OTHERCAT|OTHERCAT2|plural=yes}} → Skantlyn:Contrast
Family names
[pennfenten]Lists
[pennfenten]User pages
[pennfenten]- {{this user talk|TOPIC|PAGE1}} →
Notes
[pennfenten]Do not use subst: with these templates, as that will prevent:
- propagating changes as the template is modified; and the
- What links here (WLH) listing.
These templates are used in thousands of articles; therefore, changing the syntax could break thousands of articles. If you wish to create or edit a disambiguation or redirection template, first ask yourself the following questions:
- Is there already a template that will do this job? Since many disambiguation and redirection templates have already been created, first check: Category:Disambiguation and redirection templates.
- Do I really need a new template for this? Will it likely be used on any other articles or should I just use {{Hatnote}} instead? Before creating a new template, see the template namespace guideline.
- If I change the parameters around on an existing template, do I know what the result will be? Will it break existing uses of the template and if so, can I fix all of the errors? Before making any changes, see Template sandbox and test cases.
See also
[pennfenten]Skantlyn:Navbox hatnote templates