Template:Hatnote templates documentation

From blackwiki
Revision as of 03:22, 14 June 2009 by 174.3.103.39 (talk)
Jump to navigation Jump to search

Template:Tfd

Otheruses templates

To discuss these templates as a whole, please see: Disambiguation (talk). 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: Otheruses templates (example usage).

Generic

For example: {{dablink|For other senses of this term, see [[etc...]]}} . (Note: adaptable, but fails to standardize hatnotes).
Note: similar in usage to the Dablink template, but used for hatnotes that don't make sense on mirrors of Wikipedia, such as linking an article from the main namespace to the Wikipedia namespace. (See: Avoid self-references for more details).

Otheruses

Note: when used in the main namespace, the word "page" is replaced by "article" in the following hatnotes.

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

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

Variations

Serving the same purpose are the variations of {{otheruses4}}, or the redirect {{about}}. These are marginally easier to use for each individual purpose; however, because having so many different templates complicates things, it could be argued that the time saved by using them is lost by the time required to learn about them.

The following templates are variations of {{otheruses4}}, or the redirect {{about}}:

Note: {{about}} will produce the same result.
Note: {{about|USE}} will produce the same result.
Note: adds "(disambiguation)" to whatever is input as the PAGE.
Note: {{about|||PAGE}} (with two empty parameters) will produce the same result.
Note: use when there is both a singular and plural disambiguation page. (Only works when the plural is formed by simply adding a "s" at the end)
Note: use when there are two disambiguation pages, such as a noun and an adjective or a singular and irregular plural. There are only two parameters, at least one parameter is required. (This usage cannot be recreated with {{about}}, only with {{dablink}} or {{for}})
Note: {{about|USE||PAGE}} (with one empty parameter) will produce the same result.
Note: same as {{Otheruses4}}, except that it says "section", instead of "article" or "page" and indents only as far as {{Main}} and other section quasi-hatnotes.
For (other topic)

Both {{for}} (and {{for2}}) can be used, instead of {{otheruses4}} or the redirect {{about}}, to not display: This page is about USE1. This effect can also be achieved by using an empty first parameter in {{otheruses4}} or the redirect {{about}}.

For example: {{For|OTHER TOPIC|PAGE}} is the same as {{otheruses4||OTHER TOPIC|PAGE}} (note empty first parameter).

Also, {{for3}} is somewhat different, appending the word the in its mention of the second parameter, then generating a link, using either the second or (if present) the third parameter, as a parenthetical. Additionally, {{the}} is simply a rendering of {{for3}}, without bothering with the optional first argument.

See also
Note: use when OTHER TOPIC is related to that of the current article and already contains a self-explanatory parenthetical.

Other people

Other places

Template:Otherplaces

Template:Otherplaces2

Template:Otherplaces3

Otherhurricaneuses

For articles on storms:

Otherusesof (topic)

Redirect

"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 the
  2. What links here (WLH) listing.

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

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:

  1. Is there another template already, that will do this job? Since many disambiguation and redirection templates have already been created, first check: Category:Disambiguation and redirection templates.
  2. Do I really need a new template for this? Will it likely be used on any other articles or should I just use {{dablink}} instead? Before creating a new template, see: Template namespace guideline.
  3. 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 test cases.
(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