Template:Redirect: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) m (Added quotes) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div role="note" class="hatnote noexcerpt">{{{redirect|{{{1|}}}}}} redirects here. For | <includeonly><div role="note" class="hatnote noexcerpt">"{{{redirect|{{{1|}}}}}}" redirects here. {{#if: {{{use1|}}} | For {{{use1}}}, see [[{{{article1|{{color|red|Error! No target article was specified {{main namespace only|[[Category:Articles with errors]]}}}}}}}]].| For other uses, see [[{{{disambig|{{PAGENAME}}}}} (disambiguation)]].}} {{#if: {{{use2|}}} | For {{{use2}}}, see [[{{{article2|{{color|red|Error! No target article was specified {{main namespace only|[[Category:Articles with errors]]}}}}}}}]].}} {{#if: {{{use3|}}} | For {{{use3}}}, see [[{{{article3|{{color|red|Error! No target article was specified {{main namespace only|[[Category:Articles with errors]]}}}}}}}]].}} {{#if: {{{use4|}}} | For {{{use4}}}, see [[{{{article4|{{color|red|Error! No target article was specified {{main namespace only|[[Category:Articles with errors]]}}}}}}}]].}} {{#ifeq: {{{1|}}} {{{2|}}} {{{3|}}} {{{4|}}} {{{5|}}} {{{6|}}} {{{7|}}} {{{8|}}} | other| For other uses, see [[{{{disambig|{{PAGENAME}}}}} (disambiguation)]].}}</div></includeonly><noinclude>{{documentation|content=Used when a disambiguation page is unnecessary. | ||
== Example == | |||
; Wikitext | ; Wikitext | ||
<pre>{{ | <pre>{{Redirect | ||
| redirect = Redirect | | redirect = Redirect | ||
| | | use1 = the template that adds a see also | ||
| | | article1 = Template:See also | ||
| | | other | ||
| disambig = Template:About | |||
}}</pre> | }}</pre> | ||
; Result | ; Result | ||
{{ | {{Redirect | ||
| redirect = Redirect | | redirect = Redirect | ||
| | | use1 = the template that adds a see also | ||
| | | article1 = Template:See also | ||
| | | other | ||
| disambig = Template:About | |||
}} | }} | ||
; Wikitext | ; Wikitext | ||
<pre>{{redirect | <pre>{{redirect|Redirect}}</pre> | ||
; Result | ; Result | ||
{{redirect | {{redirect|Redirect}} | ||
[[Category:Templates]] [[Category:Disambiguation templates]] | [[Category:Templates]] [[Category:Disambiguation templates]] | ||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
Line 32: | Line 32: | ||
{ | { | ||
"params": { | "params": { | ||
" | "2": { | ||
" | "aliases": [ | ||
" | "3", | ||
" | "4", | ||
" | "5", | ||
" | "6", | ||
" | "7", | ||
" | "8" | ||
], | |||
"label": "Other uses", | |||
"description": "Adds a link to a disambiguation page. Only accepts \"other\".", | |||
"example": "other", | |||
"suggestedvalues": [ | |||
"other" | |||
], | |||
"suggested": true | |||
}, | |||
"redirect": { | |||
"label": "Redirect", | |||
"description": "Source redirect", | |||
"required": true | |||
}, | |||
"use1": {}, | |||
"article1": {}, | |||
"disambig": {}, | |||
"use2": {}, | |||
"article2": {}, | |||
"use3": {}, | |||
"article3": {} | |||
} | } | ||
}</templatedata>}}</noinclude> | }</templatedata>}}</noinclude> |
Latest revision as of 19:03, 19 September 2024
Template documentation
Used when a disambiguation page is unnecessary.
Example
- Wikitext
{{Redirect | redirect = Redirect | use1 = the template that adds a see also | article1 = Template:See also | other | disambig = Template:About }}
- Result
"Redirect" redirects here. For the template that adds a see also, see Template:See also. For other uses, see Template:About (disambiguation).
- Wikitext
{{redirect|Redirect}}
- Result
"Redirect" redirects here. For other uses, see Redirect (disambiguation).
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Other uses | 2 3 4 5 6 7 8 | Adds a link to a disambiguation page. Only accepts "other".
| Unknown | suggested |
Redirect | redirect | Source redirect | Unknown | required |
use1 | use1 | no description | Unknown | optional |
article1 | article1 | no description | Unknown | optional |
disambig | disambig | no description | Unknown | optional |
use2 | use2 | no description | Unknown | optional |
article2 | article2 | no description | Unknown | optional |
use3 | use3 | no description | Unknown | optional |
article3 | article3 | no description | Unknown | optional |