Template:Redirect: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Use template demo template)
 
(5 intermediate revisions by 2 users not shown)
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]]}}}}}}}]].}} {{#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 ==
== Example ==
; Wikitext
{{Template demo
<pre>{{redirect|
| style = list
| <nowiki>{{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
; Result
}}</nowiki>
{{redirect|
| <nowiki>{{redirect|Redirect}}</nowiki>
| redirect = Redirect
}}
| subject = the disambiguation template
| target = Template:Redirect
| label = Redirect}}
 
; Wikitext
<pre>{{redirect|Redirect|the disambiguation template|Template:Redirect|Redirect}}</pre>
 
; Result
{{redirect|Redirect|the disambiguation template|Template:Redirect|Redirect}}
 
[[Category:Templates]] [[Category:Disambiguation templates]]


== Template data ==
== Template data ==
Line 29: Line 20:
{
{
"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>
}}
[[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.

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