More actions
Redirected page to Template:Soft redirect Tag: New redirect |
Removed redirect to Template:Soft redirect Tag: Removed redirect |
||
Line 1: | Line 1: | ||
#REDIRECT [[Template:Soft redirect]] | <noinclude>{{pp|small=yes}}</noinclude>{{Documentation subpage}} | ||
{{sandbox other||{{High-use}}}} | |||
== Summary == | |||
* This template is for creating [[Wikipedia:Soft redirect|soft redirects]], that is to say, short pages inviting readers to visit another page on a different [[meta:Wikimedia projects|Wikimedia project]]. This cannot be performed with a classical redirect due to technical restrictions. | |||
* This template is also used to redirect an entry to a [[Help:Special page|special page]], in which case hard redirects have been disabled. | |||
* Occasionally, it is used to effectively disable a redirect that has been deprecated, e.g. [[WP:DIVA]], in which case {{tl|Historical}} is usually also used, above the soft redirect template. | |||
* For redirecting [[WP:CAT|categories]], use {{Tlx|Category redirect}} instead. | |||
* For all other redirects within the English Wikipedia, please continue to use <strong><code><nowiki>#REDIRECT [[Other article]]</nowiki></code></strong>. | |||
* Per [[WP:SOFTSIS]], the plain {{tl|soft redirect}} template should {{plain link|1=https://en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&target=Template%3ASoft+redirect&namespace=0|2=not be used in the mainspace}}. Instead, use one of the [[Wikipedia:Wikimedia sister projects#Specialized soft redirect templates|specialized soft redirect templates]]. | |||
This template places tagged pages in [[:Category:Wikipedia soft redirects]] or [[:Category:User soft redirects]]. | |||
== Usage == | |||
=== Single parameter === | |||
<code><nowiki>{{</nowiki>Soft redirect|''target''}}</code> | |||
'''Example''' | |||
<code><nowiki>{{</nowiki>Soft redirect|Meta:Template:Interwiki redirect}}</code> will produce: | |||
{{Soft redirect|Meta:Template:Interwiki redirect|category=no}} | |||
===Two parameters=== | |||
<code><nowiki>{{</nowiki>Soft redirect|''target''|''label''}}</code> | |||
'''Example''' | |||
<code><nowiki>{{</nowiki>Soft redirect|Meta:Template:Interwiki redirect|"Template:Interwiki redirect" on Meta}}</code> will produce: | |||
{{Soft redirect|Meta:Template:Interwiki redirect|"Template:Interwiki redirect" on Meta|category=no}} | |||
== Other examples == | |||
* [[Wikipedia:Bylaws]] | |||
* [[Wikipedia:Special:SpecialPages]] | |||
== See also == | |||
* [[Wikipedia:Soft redirect]] guideline | |||
* {{Section link|Wikipedia:Wikimedia sister projects|Specialized soft redirect templates}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Target", | |||
"description": "Interwiki location (without brackets)", | |||
"example": "Meta:Template:Interwiki redirect", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Label", | |||
"description": "Text that will be linked to the target", | |||
"example": "\"Template:Interwiki redirect\" on Meta", | |||
"type": "string" | |||
}, | |||
"category": {} | |||
}, | |||
"description": "This template is for creating soft redirects for targets that cannot by redirected using a classical redirect due to technical restrictions." | |||
} | |||
</templatedata> | |||
<includeonly>{{sandbox other|| | |||
<!-- Categories below this line, please; interwikis at Wikidata --> | |||
[[Category:Soft redirect templates]] | |||
[[Category:Interwiki link templates]] | |||
[[Category:Redirect templates]] | |||
}}</includeonly> |
Latest revision as of 01:17, 18 February 2025
Script error: No such module "Protection banner".
This is a documentation subpage for Template:Soft redirect. It may contain usage information, categories and other content that is not part of the original template page. |
Summary
- This template is for creating soft redirects, that is to say, short pages inviting readers to visit another page on a different Wikimedia project. This cannot be performed with a classical redirect due to technical restrictions.
- This template is also used to redirect an entry to a special page, in which case hard redirects have been disabled.
- Occasionally, it is used to effectively disable a redirect that has been deprecated, e.g. WP:DIVA, in which case {{Historical}} is usually also used, above the soft redirect template.
- For redirecting categories, use
{{Category redirect}}
instead. - For all other redirects within the English Wikipedia, please continue to use
#REDIRECT [[Other article]]
. - Per WP:SOFTSIS, the plain {{soft redirect}} template should not be used in the mainspace. Instead, use one of the specialized soft redirect templates.
This template places tagged pages in Category:Wikipedia soft redirects or Category:User soft redirects.
Usage
Single parameter
{{Soft redirect|target}}
Example
{{Soft redirect|Meta:Template:Interwiki redirect}}
will produce:
Meta:Template:Interwiki redirect
This page is a soft redirect.
Two parameters
{{Soft redirect|target|label}}
Example
{{Soft redirect|Meta:Template:Interwiki redirect|"Template:Interwiki redirect" on Meta}}
will produce:
"Template:Interwiki redirect" on Meta
This page is a soft redirect.
Other examples
See also
- Wikipedia:Soft redirect guideline
- Wikipedia:Wikimedia sister projects Specialized soft redirect templates
This template is for creating soft redirects for targets that cannot by redirected using a classical redirect due to technical restrictions.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Target | 1 | Interwiki location (without brackets)
| String | required |
Label | 2 | Text that will be linked to the target
| String | optional |
category | category | no description | Unknown | optional |