Template:SOFTREDIRECT
This template uses TemplateStyles: |
This template can be used for interwiki redirects (where #REDIRECT doesn't work).
For the sites that support it, the target page will have the "Redirected from..." line as if it was a local redirect. (Most Wikimedia sites don't support this, but the English Wiktionary does. For example.) However, please continue to use #REDIRECT [[Other page]]
for redirects within Wikimedia Commons. For category "redirects" within Commons, please use {{category redirect|other category}}.
Note: This isn't really a redirect to Meta's main page - that's just the example.
The template automatically sets the following categories: This places tagged pages in Category:Commons soft redirects or Category:User soft redirects
Usage
{{SOFTREDIRECT |1= }}
Normal usage is simply {{SOFTREDIRECT|Page name}}.
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1
or useTemplateData=only
on the /doc
subpage and transcluding it with {{Documentation}} into the template. <nowiki>
-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>
-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
This template can be used for interwiki redirects (where #REDIRECT doesn't work). For the sites that support it, the target page will have the "Redirected from..." line as if it was a local redirect. (Most Wikimedia sites don't support this, but the English Wiktionary does.) However, please continue to use "#REDIRECT [[Other page]]" for redirects within Wikimedia Commons. For category "redirects" within Commons, please use {{category redirect}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
target | 1 | The redirect target | Line | required |
link text | 2 | The text of the redirect link, by default the target title | Line | optional |
notice text | 3 | Text for redirect notice (above the link) | Content | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Example
{{SOFTREDIRECT|w:Main Page|Wikipedia's main page|Fake redirect}}
renders as:
See also
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation
" (xx
being the code of your language)