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": "Use",
             "label": "Use1",
             "description": "Displayed as: For Use, see ...",
             "description": "Displayed as: For Use1, see ...",
             "type": "string",
             "type": "string",
             "required": false
             "required": false
         },
         },
         "3": {
         "3": {
             "label": "Target",
             "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

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.

Template parameters

ParameterDescriptionTypeStatus
Redirecting page1

Name of page that redirects here

Page namerequired
Use12

Displayed as: For Use1, see ...

Stringoptional
Target13

Page to link to. Default is [[PAGENAME (disambiguation)]].

Page nameoptional
Use24

Second use. Can be 'and' to give: For Use1, see [[Target1]] and [[Target2]]

Stringoptional
Target25

Page to link second use to.

Page nameoptional
Use36

Third use, can be 'and'

Stringoptional
Target37

Page to link third use to.

Page nameoptional

Template:Commons Template:Otheruses templates