Revision as of 14:17, 2 September 2008 view sourceUltraexactzz (talk | contribs)26,830 edits →Redirect: Adding redirect8← Previous edit | Revision as of 17:53, 7 September 2008 view source 79.73.71.54 (talk) →RedirectNext edit → | ||
Line 100: | Line 100: | ||
* <code>{{]|REDIRECT}}</code> (disambiguous): {{Redirect|REDIRECT}} | * <code>{{]|REDIRECT}}</code> (disambiguous): {{Redirect|REDIRECT}} | ||
* <code>{{]|REDIRECT |
* <code>{{]|REDIRECT|PAGE}}</code>: {{Redirect|REDIRECT||PAGE}} | ||
* <code>{{]|REDIRECT|USE|PAGE}}</code>: {{Redirect|REDIRECT|USE|PAGE}} | * <code>{{]|REDIRECT|USE|PAGE}}</code>: {{Redirect|REDIRECT|USE|PAGE}} | ||
* <code>{{]|REDIRECT1|REDIRECT2}}</code> (disambiguous): {{Redirect2|REDIRECT1|REDIRECT2}} | * <code>{{]|REDIRECT1|REDIRECT2}}</code> (disambiguous): {{Redirect2|REDIRECT1|REDIRECT2}} |
Revision as of 17:53, 7 September 2008
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. |
Otheruses templates
To discuss these templates as a whole, please see Misplaced Pages 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 Misplaced Pages:Otheruses templates (example usage).
Generic
{{Dablink|TEXT}}
: TEXT
- For example, {{dablink|For other senses of this term, see ]}}. This template is adaptable, but fails to standardize hatnotes.
{{Selfref|TEXT}}
: TEXT
- (Similar to Dablink, but used for messages that wouldn't make sense on mirrors of Misplaced Pages, such as a link in the main article namespace that links to one in the Misplaced Pages namespace. See Misplaced Pages:Avoid self-references for more details.)
Otheruses
{{About}} is the main template for giving other uses; it redirects to {{otheruses4}}.
{{otheruses4|USE1}}
(disambiguous): This redirect is about USE1. For other uses, see Hatnote templates documentation (disambiguation).{{otheruses4|USE1|USE2}}
: This redirect is about USE1. For USE2, see Hatnote templates documentation (disambiguation).{{otheruses4|USE1|USE2|PAGE2}}
: This redirect is about USE1. For USE2, see PAGE2.{{About||USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}
(alias and empty first param):
{{otheruses4|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}
(fully specified):
- This redirect is about USE1. For USE2, see PAGE2. For USE3, see PAGE3. For USE4, see PAGE4. For USE5, see PAGE5.
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}}.
{{otheruses}}
: For other uses, see Template:Hatnote templates documentation (disambiguation).
Note:
will produce the same result.
{{about}}
{{otheruses1|USE}}
: For other uses, see USE.
Note:
will produce the same result.
{{about|USE}}
{{otheruses2|PAGE}}
: Template:Otheruses2
Note: this simply adds "(disambiguation)" to what you input as PAGE.
{{otheruses3|PAGE}}
: For other uses, see PAGE.
Note:
will produce the same result - note the two empty parameters.
{{about|||PAGE}}
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.
{{otheruses6|PAGE1|PAGE2}}
: Template:Otheruses6
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}}
.
{{This|USE|PAGE}}
: This redirect is about USE. For PAGE, see Hatnote templates documentation (disambiguation).
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.
{{For}}
(disambiguous): Error: no context parameter provided. Use {{other uses}} for "other uses" hatnotes. (help).{{For|OTHER TOPIC}}
(disambiguous): For OTHER TOPIC, see Hatnote templates documentation (disambiguation).{{For|OTHER TOPIC|PAGE}}
: For OTHER TOPIC, see PAGE.{{For|OTHER TOPIC|PAGE1|PAGE2}}
: For OTHER TOPIC, see PAGE1 and PAGE2.{{For2|OTHER TOPIC|CUSTOM TEXT}}
: For OTHER TOPIC, see CUSTOM TEXT.{{For3||DIFFERENT MEANING|}}
: Template:For3{{For3|OTHER TOPIC|DIFFERENT MEANING}}
: Template:For3{{For3|OTHER TOPIC|DIFFERENT MEANING|CUSTOM PARENTHETICAL}}
: Template:For3{{The|DIFFERENT MEANING}}
: Template:The{{The|DIFFERENT MEANING|CUSTOM PARENTHETICAL}}
: Template:The
Other people
{{otherpersons}}
(disambiguous): For other people named Hatnote templates documentation, see Hatnote templates documentation (disambiguation).{{otherpersons|USE}}
(disambiguous): For other people named USE, see USE (disambiguation).{{otherpersons|USE|PAGE}}
: For other people named USE, see PAGE.{{otherpeople2|PAGE}}
: For other people named PAGE, see PAGE (disambiguation).{{otherpeople3|USE1|USE2}}
: For other people named USE1, see USE2.{{otherpeople4|USE1|USE2|PAGE}}
: Template:Otherpeople4
Other places
- {{Otherplaces}}, analogous to {{Otheruses}}
- {{Otherplaces2}}, analogous to {{Otheruses2}}
- {{Otherplaces3}}, analogous to {{Otheruses3}}
Otherhurricaneuses
- For articles on storms.
{{otherhurricaneuses}}
(disambiguous): For other storms of the same name, see Hatnote templates documentation (disambiguation).{{otherhurricaneuses|DISAMBIG}}
: For other storms of the same name, see DISAMBIG.{{otherhurricaneuses|DISAMBIG|THIS}}
: This redirect is about THIS. For other storms of the same name, see DISAMBIG.{{otherhurricaneuses3|USE1|USE2|MAIN}}
: Template:Otherhurricaneuses3
Otherusesof (topic)
{{otherusesof}} (disambiguous)
: For other uses of "Template:Hatnote templates documentation", see "Template:Hatnote templates documentation" (disambiguation).{{otherusesof|TOPIC}}
: For other uses of "TOPIC", see TOPIC (disambiguation).{{otherusesof|TOPIC|PAGE}}
: For other uses of "TOPIC", see PAGE.
Redirect
{{Redirect|REDIRECT}}
(disambiguous): "REDIRECT" redirects here. For other uses, see REDIRECT (disambiguation).{{Redirect|REDIRECT|PAGE}}
: "REDIRECT" redirects here. For other uses, see PAGE.{{Redirect|REDIRECT|USE|PAGE}}
: "REDIRECT" redirects here. For USE, see PAGE.{{Redirect2|REDIRECT1|REDIRECT2}}
(disambiguous): "REDIRECT1" and "REDIRECT2" redirect here. For other uses, see REDIRECT1 (disambiguation).{{Redirect2|REDIRECT1|REDIRECT2|USE|PAGE}}
: "REDIRECT1" and "REDIRECT2" redirect here. For USE, see PAGE.{{Redirect3|REDIRECT|TEXT}}
: "REDIRECT" redirects here. For TEXT, see REDIRECT (disambiguation).{{Redirect4|REDIRECT1|REDIRECT2}}
(disambiguous): Template:Redirect4{{Redirect5|REDIRECT|USE1|PAGE1|USE2|PAGE2}}
: Template:Redirect5{{Redirect6|REDIRECT|USE1|PAGE1||}}
: Template:Redirect6{{Redirect8|REDIRECT1|REDIRECT2}}
: "REDIRECT1" and "REDIRECT2" redirect here. For other uses, see REDIRECT1 (disambiguation).
"Not to be confused with"...
{{Distinguish|PAGE}}
: Not to be confused with PAGE.{{Distinguish2|TEXT}}
: Template:Distinguish2
Notes
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.
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:
- Is there already another template that will do this job? We have lots of disambiguation templates already, see Category:Disambiguation and redirection templates.
- Do I really need a template for this? Will it ever get used on any other articles, or should I just use {{dablink}} instead?
- 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 template's initial visibility currently defaults to autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{Hatnote templates documentation|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Hatnote templates documentation|state=expanded}}
will show the template expanded, i.e. fully visible.
TemplateData for VisualEditor
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
state | state | no description | Unknown | optional |
See also
The above documentation is transcluded from Template:Hatnote templates documentation/doc. (edit | history)Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Categories: