Template:Redirect2/doc

From Ikwipedia
Revision as of 04:46, 21 September 2024 by wikipedia>Fgnievinski
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • 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

When the two redirects have different disambiguation pages, {{redirect-multi}} is more effective:

{{redirect-multi|2|REDIRECT1|REDIRECT2}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Redirect2 in articles based on its TemplateData.

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>