Template:Redirect2/doc
File:Edit-copy green.svg | This is a documentation subpage for Template:Redirect2. It may contain usage information, categories and other content that is not part of the original template page. |
File:Lua-Logo.svg | This template uses Lua: |
- For two sources:
{{Redirect2|REDIRECT1|REDIRECT2}}
→{{Redirect2|REDIRECT1|REDIRECT2|USE}}
→{{Redirect2|REDIRECT1|REDIRECT2||PAGE1}}
→{{Redirect2|REDIRECT1|REDIRECT2|USE|PAGE1}}
→{{Redirect2|REDIRECT1|REDIRECT2|USE1|PAGE1|USE2|PAGE2}}
→{{Redirect2|REDIRECT1|REDIRECT2|other uses|PAGE1|and|PAGE2}}
→{{Redirect2|REDIRECT1|REDIRECT2|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3}}
→{{Redirect2|REDIRECT1|REDIRECT2|USE1|PAGE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4}}
→
Alternatives edit
When the two redirects have different disambiguation pages, {{redirect-multi}}
is more effective:
{{redirect-multi|2|REDIRECT1|REDIRECT2}}
→
TemplateData edit
TemplateData for Redirect2
<templatedata> { "params": { "1": { "label": "First redirecting page", "type": "wiki-page-name", "required": true, "suggested": true, "description": "Name of page that redirects here" }, "2": { "label": "Second redirecting page", "type": "wiki-page-name", "required": true, "suggested": true, "description": "Name of page that redirects here" }, "3": { "label": "Use 1", "type": "line", "required": true, "suggested": true, "description": "Displayed as: For Use 1, see ... If left empty, defaults to For other uses, see ..." }, "4": { "label": "Target 1", "type": "wiki-page-name", "required": true, "suggested": true, "description": "Page to link to. Default is REDIRECT1 (disambiguation)." }, "5": { "label": "Use 2", "type": "line", "description": "Second use. Can be 'and' to give: For Use 1, see Target1 and Target2." }, "6": { "label": "Target 2", "type": "wiki-page-name", "description": "Page to link second use to." }, "7": { "label": "Use 3", "type": "line", "description": "Third use. Can be 'and'." }, "8": { "label": "Target 3", "type": "wiki-page-name", "description": "Page to link third use to." } }, "format": "inline", "description": "This template produces a hatnote similar to: \"Foo\" and \"Bar\" redirects here. For other uses, see Foo (disambiguation)." } </templatedata>