Template:Redirect: Difference between revisions

Jump to navigation Jump to search
m
dont show second half if not defined
(link the articles)
m (dont show second half if not defined)
 
Line 1: Line 1:
<includeonly>[[{{{1}}}]] redirects here. For {{{2}}}, see [[{{{3}}}]]. For {{{4}}}, see [[{{{5}}}]].</includeonly>
<includeonly>[[{{{1}}}]] redirects here. For {{{2}}}, see [[{{{3}}}]].{{#if: {{{4|}}}|For {{{4|}}}, see {{{5|}}}.}}</includeonly>
<noinclude><templatedata>
<noinclude><templatedata>
{
{
"params": {
"params": {
"redirect": {
"1": {
"label": "\"... redirects here.\"",
"label": "\"... redirects here.\"",
"description": "What redirects here.",
"description": "What redirects here.",
Line 10: Line 10:
"required": true
"required": true
},
},
"see": {
"2": {
"label": "\"see ... .\"",
"label": "\"see ... .\"",
"description": "The article for said thing that could be referred to.",
"description": "The article for said thing that could be also referred to.",
"example": "Apple (Company)",
"example": "Apple (Company)",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true
"required": true
},
},
"for": {
"3": {
"label": "\"For ...,\"",
"label": "\"For ...,\"",
"description": "The other thing that the article could be referring to.",
"description": "The thing that the redirect could also be referring to.",
"example": "the company",
"example": "the company",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"for2": {
"4": {
"label": "\"For ...\"",
"label": "\"For ...\"",
"description": "Another thing that could be referred to.",
"description": "Another thing that could be referred to.",
Line 30: Line 30:
"type": "string"
"type": "string"
},
},
"see2": {
"5": {
"label": "\"see ... .\"",
"label": "\"see ... .\"",
"description": "The page for said other thing being referred to.",
"description": "The article for said other thing being referred to.",
"example": "Apple (Disambiguation)",
"example": "Apple (Disambiguation)",
"type": "wiki-page-name"
"type": "wiki-page-name"
Line 38: Line 38:
},
},
"description": "Distinguish between multiple pages after a redirect.",
"description": "Distinguish between multiple pages after a redirect.",
"format": "block",
"format": "inline",
"paramOrder": [
"paramOrder": [
"redirect",
"1",
"for",
"2",
"see",
"3",
"for2",
"4",
"see2"
"5"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Navigation menu