Template:Redirect: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><div role="note" class="hatnote noexcerpt">{{{redirect|{{{1|}}}}}} redirects here. For the {{{subject|{{{2|}}}}}}, see [[{{{target|{{{3|}}}}}}{{#if: {{{label|}}} {{{4|}}} | {{!}}{{{label|{{{4}}}}}}}}]]</div></includeonly><noinclude>{{documentation|content=Used when a disambiguation page is unnecessary. === Example 1 === ; Wikitext <pre>{{redirect|Hatnote}}</pre> ; Result {{redirect|Hatnote}} ; Wikitext <pre>{{See also|Hatnote|custom=Custom text}}</pre>...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div role="note" class="hatnote noexcerpt">{{{redirect|{{{1|}}}}}} redirects here. For the {{{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 1 ===
== Example ==
; Wikitext
; Wikitext
<pre>{{redirect|Hatnote}}</pre>
<pre>{{Redirect
| redirect = Redirect
| use1 = the template that adds a see also
| article1 = Template:See also
| other
| disambig = Template:About
}}</pre>


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


; Wikitext
; Wikitext
<pre>{{See also|Hatnote|custom=Custom text}}</pre>
<pre>{{redirect|Redirect}}</pre>


; Result
; Result
{{See also|Hatnote|custom=Custom text}}
{{redirect|Redirect}}


[[Category:Templates]] [[Category:Disambiguation templates]]
[[Category:Templates]] [[Category:Disambiguation templates]]
== Template data ==
== Template data ==
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"2": {
"label": "Link"
"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
},
},
"2": {},
"use1": {},
"3": {},
"article1": {},
"4": {},
"disambig": {},
"5": {},
"use2": {},
"custom": {},
"article2": {},
"custom2": {},
"use3": {},
"custom3": {},
"article3": {}
"custom4": {},
"custom5": {}
}
}
}
}</templatedata>}}</noinclude>
</templatedata>}}</noinclude>

Latest revision as of 13:45, 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