Template:Redirect2/doc: Difference between revisions

From Ikwipedia
Jump to navigation Jump to search
No edit summary
 
m 1 revision imported
 
(No difference)

Latest revision as of 07:51, 6 November 2024

  • 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 source]

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

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

TemplateData[edit source]

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>