Template:Hatnote templates documentation

From blackwiki
Jump to navigation Jump to search
Edit-paste.svg
This is template documentation box for all of the Otheruses templates.

Such templates are not necessarily intended to be viewed directly. If they use variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.


Template:Tnavbar

Otheruses templates

To discuss these templates as a whole, please see Wikipedia talk:Disambiguation If you wish to discuss general wordings, rather than the wording or formatting of this specific template, don't post here, or else what you say will probably go unnoticed.

For a summary page on how to use these templates, see Wikipedia:Otheruses templates (example usage).

Generic

For example, {{dablink|For other senses of this term, see [[etc...]]}}. This template is adaptable, but fails to standardize hatnotes.
(Similar to Dablink, but used for messages that wouldn't make sense on mirrors of Wikipedia, such as a link in the main article namespace that links to one in the Wikipedia namespace. See Wikipedia:Avoid self-references for more details.)

Otheruses

{{About}} is the main template for giving other uses; it redirects to {{otheruses4}}.

Script error: No such module "about".
  • {{otheruses4|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}} (fully specified):
Template:Otheruses4

Variations

There are also variations of {{about}}. These serve the same purpose, and are marginally easier to use for each individual purpose, but overall, it is complicated to have so many different templates; it could be argued that the time saved using them is lost as other editors have to familiarise themselves with them.

All of these templates are special cases of {{about}}.

Note: {{about}} will produce the same result.

Note: {{about|USE}} will produce the same result.

Note: this simply adds "(disambiguation)" to what you input as PAGE.

Note: {{about|||PAGE}} will produce the same result - note the two empty parameters.

Note: this is for when there is both a singular and plural disambiguation page; it only works when the plural is formed simply by adding "s" at the end.

Note: this is for when there are two disambiguation pages, such as noun and adjective, or singular and irregular plural. There are only two parameters and at least one is required.
Note: this cannot be recreated with {{about}} - only with {{dablink}} or {{for}}.

Note: {{about|USE||PAGE}} will produce the same result - note the empty parameter.

For (other topic)

{{for}} (and {{for2}}) can be used instead of {{about}} to not include the first part - "This article is about USE". However, this can also simply be achieved with an empty first parameter in {{about}}.
For example, {{For|OTHER TOPIC|PAGE}} becomes {{About||OTHER TOPIC|PAGE}}.
{{for3}} is somewhat different, appending the word the in its mention of the second parameter, then generates a link using either the second or (if present) the third parameter as a parenthetical. {{the}} is simply a rendering of {{for3}} without bothering with the optional first argument.

Other people

Other places

Template:Otherplaces

Template:Otherplaces2

Template:Otherplaces3

Otherhurricaneuses

For articles on storms.

Otherusesof (topic)

Redirect

Template:Redirect6

"Not to be confused with"...

Notes

Do not use subst: with these templates, as that will prevent:

  1. propagating changes as the template is modified; and
  2. the What links here (WLH) listing.


Please do not edit these templates unless you know what you are doing

These templates may be used in thousands of articles, and changing the syntax could therefore break thousands of articles. If you wish to edit a disambiguation template first ask yourself:

  1. Is there already another template that will do this job? We have lots of disambiguation templates already, see Category:Disambiguation and redirection templates.
  2. Do I really need a template for this? Will it ever get used on any other articles, or should I just use {{dablink}} instead?
  3. Do I know what will happen if I change the parameters around? Will it break existing uses of the template, and if so, can I fix them all?
(This box appears in several articles in Template talk and Wikipedia namespaces.)
Template documentation[view] [edit] [history] [purge]

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Hatnote templates documentation|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Hatnote templates documentation|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Hatnote templates documentation|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

TemplateData for VisualEditor

No description.

Template parameters

ParameterDescriptionTypeStatus
Statestate

no description

Unknownoptional

See also