Difference between revisions of "Template:Redirect category shell"
(←Created page with '{{Mbox | name = This is a redirect | type = move | image = none | style = margin-top: 1.1em; border: solid 1px darkblue; border-left-width: 0.5em; | textstyle...') |
m (update documentation) |
||
Line 21: | Line 21: | ||
{{#if: {{{2|}}}|{{{2}}}|{{{1|}}}}} | {{#if: {{{2|}}}|{{{2}}}|{{{1|}}}}} | ||
:''<small>For more information follow the '''boldface''' category link(s). This template automates [[Wikipedia:Protection policy|protection levels]].</small>'' | :''<small>For more information follow the '''boldface''' category link(s). This template automates [[Wikipedia:Protection policy|protection levels]].</small>'' | ||
− | }} | + | }}<noinclude> |
{{Documentation|content= | {{Documentation|content= | ||
{{template shortcut|Rcat shell}} | {{template shortcut|Rcat shell}} | ||
__TOC__ | __TOC__ | ||
− | =[[ | + | ===Purpose=== |
− | === | + | This template supplements the redirect categorization that is presently done by the {{tl|This is a redirect}} template or by adding [[WP:RCAT|rcat]]s individually to redirects. This template is the direct result of discussions about the benefits and the shortcomings of the ''This is a redirect'' template. |
− | + | ||
+ | ===Usage=== | ||
+ | An unnamed parameter, {{para|1}}, has been introduced in this template and works as follows: | ||
<pre> | <pre> | ||
{{Redirect category shell|1= | {{Redirect category shell|1= | ||
Line 45: | Line 47: | ||
}} | }} | ||
</pre> | </pre> | ||
− | "N" | + | "N" represents the highest number of rcats that can be used in this template, and at this point, I'm not sure there is a limit other than what might be a wikimarkup ceiling. |
− | === | + | ===Notes=== |
This is still undergoing tests. The existing ''This is a redirect'' template can remain in its present form as, in some cases, a simpler choice for editors. This new template can also be used for future tagging of redirects. It needs only one parameter, {{para|1}} for as many rcat templates that are needed. The following still needs work: | This is still undergoing tests. The existing ''This is a redirect'' template can remain in its present form as, in some cases, a simpler choice for editors. This new template can also be used for future tagging of redirects. It needs only one parameter, {{para|1}} for as many rcat templates that are needed. The following still needs work: | ||
+ | ====Embed flaw==== | ||
* The {{para|embed|yes}} parameter must be used ''in each rcat'', e.g., | * The {{para|embed|yes}} parameter must be used ''in each rcat'', e.g., | ||
<pre> | <pre> | ||
Line 59: | Line 62: | ||
</pre> | </pre> | ||
: And yes, I do consider this a "flaw", because editors should not have to add a redundant parameter each time they add an rcat to this template. | : And yes, I do consider this a "flaw", because editors should not have to add a redundant parameter each time they add an rcat to this template. | ||
− | |||
− | |||
− | |||
− | |||
− | + | Testing has confirmed that the embed flaw can be eliminated. To do so entails a major edit to each and every rcat template. An example of the needed change can be viewed at {{tl|R from incorrect name/sandbox}}. | |
− | Testing has confirmed that the embed flaw | ||
− | |||
}} | }} | ||
− | </noinclude | + | {{Documentation}} |
+ | </noinclude> |
Revision as of 20:17, 18 July 2016
This page is a redirect:
|
Contents
Purpose
This template supplements the redirect categorization that is presently done by the {{This is a redirect}} template or by adding rcats individually to redirects. This template is the direct result of discussions about the benefits and the shortcomings of the This is a redirect template.
Usage
An unnamed parameter, |1=
, has been introduced in this template and works as follows:
{{Redirect category shell|1= {{rcat 1}} {{rcat 2}} {{rcat 3}} {{rcat N}} }}
...or more simply:
{{Redirect category shell| {{rcat 1}} {{rcat 2}} {{rcat 3}} {{rcat N}} }}
"N" represents the highest number of rcats that can be used in this template, and at this point, I'm not sure there is a limit other than what might be a wikimarkup ceiling.
Notes
This is still undergoing tests. The existing This is a redirect template can remain in its present form as, in some cases, a simpler choice for editors. This new template can also be used for future tagging of redirects. It needs only one parameter, |1=
for as many rcat templates that are needed. The following still needs work:
Embed flaw
- The
|embed=yes
parameter must be used in each rcat, e.g.,
{{Redirect category shell| {{R from move|embed=yes}} {{R from alternative spelling|embed=yes}} {{R printworthy|embed=yes}} }}
- And yes, I do consider this a "flaw", because editors should not have to add a redundant parameter each time they add an rcat to this template.
Testing has confirmed that the embed flaw can be eliminated. To do so entails a major edit to each and every rcat template. An example of the needed change can be viewed at {{R from incorrect name/sandbox}}.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |