Template:Redirect: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div role="note" class="hatnote noexcerpt">{{{redirect|{{{1|}}}}}} redirects here. For {{{subject|{{{2|}}}}}}, see [[{{{target|{{{3|}}}}}}{{#if: {{{label|}}} {{{4|}}} | {{!}}{{{label|{{{4}}}}}}}}]]</div></includeonly><noinclude>{{documentation|content=Used when a disambiguation page is unnecessary.
<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]]}}}}}}}]].}} {{#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 ==
== Example ==
; Wikitext
; Wikitext
<pre>{{redirect|
<pre>{{Redirect
| redirect = Redirect
| redirect = Redirect
| subject = the disambiguation template
| use1 = the template that adds a see also
| target = Redirect
| article1 = Template:See also
| label = Redirect}}</pre>
| other
| disambig = Template:About
}}</pre>


; Result
; Result
{{redirect|
{{Redirect
| redirect = Redirect
| redirect = Redirect
| subject = the disambiguation template
| use1 = the template that adds a see also
| target = Template:Redirect
| article1 = Template:See also
| label = Redirect}}
| other
| disambig = Template:About
}}


; Wikitext
; Wikitext
<pre>{{redirect|Redirect|the disambiguation template|Template:Redirect|Redirect}}</pre>
<pre>{{redirect|Redirect}}</pre>


; Result
; Result
{{redirect|Redirect|the disambiguation template|Template:Redirect|Redirect}}
{{redirect|Redirect}}


[[Category:Templates]] [[Category:Disambiguation templates]]
[[Category:Templates]] [[Category:Disambiguation templates]]
== Template data ==
== Template data ==
<templatedata>
<templatedata>
Line 29: Line 32:
{
{
"params": {
"params": {
"1": {},
"2": {
"2": {},
"aliases": [
"3": {},
"3",
"4": {},
"4",
"redirect": {},
"5",
"subject": {},
"6",
"target": {},
"7",
"label": {}
"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>

Revision as of 12:37, 5 January 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.

Template parameters

ParameterDescriptionTypeStatus
Other uses2 3 4 5 6 7 8

Adds a link to a disambiguation page. Only accepts "other".

Suggested values
other
Example
other
Unknownsuggested
Redirectredirect

Source redirect

Unknownrequired
use1use1

no description

Unknownoptional
article1article1

no description

Unknownoptional
disambigdisambig

no description

Unknownoptional
use2use2

no description

Unknownoptional
article2article2

no description

Unknownoptional
use3use3

no description

Unknownoptional
article3article3

no description

Unknownoptional