Template:Redirect/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Salix alba →TemplateData: add optional parameters |
meta>Salix alba example uses and expand template data |
||
Line 3: | Line 3: | ||
* [[Template:R template index|R template index]] for templates to categorize redirects. | * [[Template:R template index|R template index]] for templates to categorize redirects. | ||
}} | }} | ||
== Examples== | |||
* {{tlx|Redirect|REDIRECT}} (disambiguous) → {{Redirect|REDIRECT}} | |||
* {{tlx|Redirect|REDIRECT<nowiki>||</nowiki>PAGE1}} → {{Redirect|REDIRECT||PAGE1}} | |||
* {{tlx|Redirect|REDIRECT|USE1|PAGE1}} → {{Redirect|REDIRECT|USE1|PAGE1}} | |||
* {{tlx|Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}} → {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}} | |||
* {{tlx|Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}} → {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}} | |||
* {{tlx|Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}} → {{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}} | |||
* {{tlx|Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|and|PAGE3}} → {{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|and|PAGE3}} | |||
== TemplateData == | == TemplateData == | ||
<templatedata> | <templatedata> | ||
Line 14: | Line 23: | ||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "Use1", | ||
"description": "Displayed as: For | "description": "Displayed as: For Use1, see ...", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
"3": { | "3": { | ||
"label": " | "label": "Target1", | ||
"description": "Page to link to. Default is PAGENAME (disambiguation).", | "description": "Page to link to. Default is [[PAGENAME (disambiguation)]].", | ||
"type": "string/wiki-page-name", | |||
"required": false | |||
}, | |||
"4": { | |||
"label": "Use2", | |||
"description": "Second use. Can be 'and' to give: For Use1, see [[Target1]] and [[Target2]]", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"5": { | |||
"label": "Target2", | |||
"description": "Page to link second use to.", | |||
"type": "string/wiki-page-name", | |||
"required": false | |||
}, | |||
"6": { | |||
"label": "Use3", | |||
"description": "Third use, can be 'and'", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"7": { | |||
"label": "Target3", | |||
"description": "Page to link third use to.", | |||
"type": "string/wiki-page-name", | "type": "string/wiki-page-name", | ||
"required": false | "required": false |
Revision as of 06:56, 15 July 2013
Using this template does not create a redirect. See
|
Examples
{{Redirect|REDIRECT}}
(disambiguous) →{{Redirect|REDIRECT||PAGE1}}
→{{Redirect|REDIRECT|USE1|PAGE1}}
→{{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2}}
→{{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}}
→{{Redirect|REDIRECT|USE1|PAGE1|and|PAGE2}}
→{{Redirect|REDIRECT|USE1|PAGE1|USE2|PAGE2|and|PAGE3}}
→
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Redirecting page | 1 | Name of page that redirects here | Page name | required |
Use1 | 2 | Displayed as: For Use1, see ... | String | optional |
Target1 | 3 | Page to link to. Default is [[PAGENAME (disambiguation)]]. | Page name | optional |
Use2 | 4 | Second use. Can be 'and' to give: For Use1, see [[Target1]] and [[Target2]] | String | optional |
Target2 | 5 | Page to link second use to. | Page name | optional |
Use3 | 6 | Third use, can be 'and' | String | optional |
Target3 | 7 | Page to link third use to. | Page name | optional |
Template:Commons Template:Otheruses templates