Personal tools
 
Views

Template:Redirect/doc

From Debatepedia

Jump to: navigation, search

{{

 #ifeq: redirect/doc | doc
 | 

{{

   #ifeq: show | show
|
This is a documentation subpage for Template:Redirect/doc (see that page for the {{ #if: Template | template | article }} itself).
It contains usage information, categories and other content that is not part of the original {{ #if: Template |template page|article}}.
 }}Template:DEFAULTSORT:Redirect/doc{{
   #if: 
   | 
   | [[Category:{{
     #if: Template
     | Template
     | Article
   }} documentation]]
 }}

| }}

{{#if:| |
}}{{#ifeq:|1||This box: }}{{#ifeq:|1|{{#if:|view|v}}|{{#if:|v|view}}  {{#if:|d|talk}}  {{#if:|e|edit}}}}{{#if:|</span> |
}}

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}}.

  • {{otheruses4|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}} (fully specified):

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{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} will produce the same result.

Note: {{about{{#if:USE| |USE }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} will produce the same result.

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

Note: {{about{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} will produce the same result - note the two empty parameters.

  • {{otheruses5}}:

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{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} - only with {{dablink{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} or {{for{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}.

Note: {{about{{#if:USE| |USE }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} 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}}.

  • {{For}} (disambiguous):
  • {{For|OTHER TOPIC}} (disambiguous):
  • {{For|OTHER TOPIC|PAGE}}:
  • {{For|OTHER TOPIC|PAGE1|PAGE2}}:
  • {{For2|OTHER TOPIC|CUSTOM TEXT}}:

Other people

  • {{otherpersons}} (disambiguous):
  • {{otherpersons|USE}} (disambiguous):
  • {{otherpersons|USE|PAGE}}:
  • {{otherpeople2|PAGE}}:
  • {{otherpeople3|USE1|USE2}}:
  • {{otherpeople4|USE1|USE2|PAGE}}:

Other places

Otherhurricaneuses

For articles on storms.

Otherusesof (topic)

Redirect

  • {{Redirectstohere|REDIRECT notice}} (To Document dependent link[s], Template also has a hidden mode, (Set "|hide=true") which enables it to document a section title is a redirect page target section, and so should not be changed.); Some examples:
    {{#if:||{{#if:REDIRECT|{{#if:|REDIRECT{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,| and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,| and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:| all redirect to| both redirect to}}|REDIRECT redirects}} here.|
    Error: Template:Redirectstohere needs a page link as {{{1}}}
    }}</span>}}</span>

,
{{#if:||{{#if:REDIRECT|{{#if:Another name|REDIRECT{{#if:Another name|{{#if:A Foreign name|,  | and }}Another name}}{{#if:A Foreign name|{{#if:|,  | and }}A Foreign name}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,| and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,| and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:A Foreign name| all redirect to| both redirect to}}|REDIRECT redirects}} here.|
Error: Template:Redirectstohere needs a page link as {{{1}}}
}}</span>}}</span>


— with a little care, bolding the titled redirects can substitute for awkward phrases involving multiple name forms of the main article title; particularly those of the "also known as varieties"...
{{#if:||{{#if:Gustavus II Adolf|{{#if:Gustav Adolphus II|Gustavus II Adolf{{#if:Gustav Adolphus II|{{#if:Gustavus Vasa II of Sweden|,  | and }}Gustav Adolphus II}}{{#if:Gustavus Vasa II of Sweden|{{#if:|,  | and }}Gustavus Vasa II of Sweden}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,| and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,| and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:|{{#if:|,  | and }}}}{{#if:Gustavus Vasa II of Sweden| all redirect to| both redirect to}}|Gustavus II Adolf redirects}} here.|
Error: Template:Redirectstohere needs a page link as {{{1}}}
}}</span>}}</span>



  • {{Redirect|REDIRECT}} (disambiguous):
  • {{Redirect|REDIRECT||PAGE}}:
  • {{Redirect|REDIRECT|USE|PAGE}}:
  • {{Redirect2|REDIRECT1|REDIRECT2}} (disambiguous):
  • {{Redirect3|REDIRECT|TEXT}}:
  • {{Redirect4|REDIRECT1|REDIRECT2}} (disambiguous):
  • {{Redirect6|REDIRECT|USE1|PAGE1|USE2|PAGE2}}:
  • {{Redirect6|REDIRECT|USE1|PAGE1||}}

"Not to be confused with"...

  • {{Distinguish|PAGE}}:
  • {{Distinguish2|TEXT}}:

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?


Problem with the site? 

Tweet a bug on bugtwits
.