Template:Redirect: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) (Use template demo template) |
||
(8 intermediate revisions by 2 users 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 == | |||
{{Template demo | |||
< | | style = list | ||
| <nowiki>{{Redirect | |||
| redirect = Redirect | | redirect = Redirect | ||
| | | use1 = the template that adds a see also | ||
| | | article1 = Template:See also | ||
| | | other | ||
}}</ | | disambig = Template:About | ||
}}</nowiki> | |||
| <nowiki>{{redirect|Redirect}}</nowiki> | |||
{{redirect| | |||
}} | }} | ||
== Template data == | == Template data == | ||
Line 32: | Line 20: | ||
{ | { | ||
"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> | ||
}} | |||
[[Category:Templates]] | |||
[[Category:Disambiguation templates]] | |||
</noinclude> |
Latest revision as of 21:32, 19 January 2025
Template documentation
Used when a disambiguation page is unnecessary.
Example
Markup
{{Redirect | redirect = Redirect | use1 = the template that adds a see also | article1 = Template:See also | other | disambig = Template:About }}Renders as
"Redirect" redirects here. For the template that adds a see also, see Template:See also. For other uses, see Template:About (disambiguation).
Markup
{{redirect|Redirect}}Renders as
"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 |