Template:Template redirect/doc: Difference between revisions
Template page
More actions
Move template category declarations to documentation subpage |
|||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
== Usage == | == Usage == | ||
'''Usage:''' <tt><nowiki>{{</nowiki>template redirect}}</tt> or <tt><nowiki>{{</nowiki>template redirect|''parameter''}}</tt> | '''Usage:''' <tt><nowiki>{{</nowiki>template redirect}}</tt> or <tt><nowiki>{{</nowiki>template redirect|''parameter''}}</tt> | ||
{| class="wikitable" style="background:#fbfbfb; width:100%; margin-bottom:0" | {| class="wikitable" style="background:#fbfbfb; width:100%; margin-bottom:0" | ||
! scope="col" style="background:#a7c1f2;" {{!}} Parameter value | |||
! scope="col" style="background:#a7c1f2;" {{!}} Usage | |||
! scope="col" style="background:#a7c1f2;" {{!}} Category | |||
|- | |- | ||
! scope="row" {{!}} '''deprecated''' | |||
{{!}} For any redirects to deprecated templates | |||
{{!}} [[:Category:Redirects to deprecated templates]] | |||
|- | |- | ||
! scope="row" {{!}} '''license''' | |||
{{!}} For all license tags | |||
{{!}} [[:Category:Redirects to license tags]] | |||
|- | |- | ||
! scope="row" {{!}} '''copyvio''' | |||
{{!}} For any redirect that results in a speedy deletion tag (i.e. prohibited licenses) | |||
{{!}} [[:Category:License redirects to speedy deletion]] | |||
|- | |- | ||
! scope="row" {{!}} '''subst''' | |||
{{!}} Redirects that should be substituted like the template itself | |||
{{!}} [[:Category:Redirects to templates that should be substituted]] | |||
|- | |- | ||
! scope="row" {{!}} '''i18n''' | |||
{{!}} Redirects from templates with non-English names, like {{tl|Contra}} to {{tl|Oppose}} | |||
{{!}} [[:Category:Redirects from translated template names]] | |||
|} | |} | ||
Revision as of 10:14, 19 September 2021
Usage
Usage: {{template redirect}} or {{template redirect|parameter}}
| Parameter value | Usage | Category |
|---|---|---|
| deprecated | For any redirects to deprecated templates | Category:Redirects to deprecated templates |
| license | For all license tags | Category:Redirects to license tags |
| copyvio | For any redirect that results in a speedy deletion tag (i.e. prohibited licenses) | Category:License redirects to speedy deletion |
| subst | Redirects that should be substituted like the template itself | Category:Redirects to templates that should be substituted |
| i18n | Redirects from templates with non-English names, like {{Contra}} to {{Oppose}} | Category:Redirects from translated template names |
The main category is Category:Template redirects (added by default). Category:Protected template redirects may also added automatically if the page is fully protected.