Jump to content
Wikipedia The Free Encyclopedia

Template:Redirect-multi

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
This template uses Lua:

This template produces a redirect hatnote, analogous to {{redirect }}, for use when multiple redirects need to be specified.

Usage

The first parameter supplied to the template should be a number specifying the number of redirects. If this is left blank or a non-numeric value supplied, it will default to 1.

Following the number parameter, a series of parameters should be supplied representing that number of redirects:

{{redirect-multi|3|REDIRECT1|REDIRECT2|REDIRECT3}}
"REDIRECT1", "REDIRECT2", and "REDIRECT3" redirect here. For other uses, see REDIRECT1 (disambiguation), REDIRECT2 (disambiguation), and REDIRECT3 (disambiguation).

If no further parameters are provided, then the template automatically supplies disambiguation links generated from each redirect as "other uses", as in the preceding example.

If further parameters are supplied, they use the same "for-see" structure as {{redirect }}, with pairs of use and target parameters and the and keyword to add multiple targets to a single use. For example:

{{redirect-multi|3|REDIRECT1|REDIRECT2|REDIRECT3|USE1|PAGE1|and|PAGE2#SECTION|USE2|PAGE3{{!}}DISPLAY}}
"REDIRECT1", "REDIRECT2", and "REDIRECT3" redirect here. For USE1, see PAGE1 and PAGE2 § SECTION. For USE2, see DISPLAY.

If insufficient redirects are provided, an error message is produced (and an error-tracking category, which can be suppressed by supplying a false value in a category parameter):

{{redirect-multi|3|REDIRECT1|REDIRECT2|category=false}}Error: missing redirect parameter (help).

Generic
For and about
Other topics
Redirect
Distinguish
For use in sections
Special
Subject specific
The above documentation is transcluded from Template:Redirect-multi/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /