Difference between revisions of "Template:Redirect category shell"

From Timelines
Jump to: navigation, search
(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>
+
}}<noinclude>
 
{{Documentation|content=
 
{{Documentation|content=
 
{{template shortcut|Rcat shell}}
 
{{template shortcut|Rcat shell}}
 
__TOC__
 
__TOC__
=[[Template:Redirect category shell]]=
+
===Purpose===
===Note 1===
+
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.
A new unnamed parameter, {{para|1}}, has been introduced in this most recent version and, once the new template has been created, should work as follows:
+
 
 +
===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" would equal the highest number of rcats that would work in the ''This is a redirect'' template, and at this point, I'm not sure there is a limit other than what might be a wikimarkup ceiling.
+
"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.
  
===Note 2===
+
===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.
* <s>There is a flaw that does not allow the ''Miscellaneous redirects'' category to be populated when other rcats have been used in the unnamed parameter, so editors will be unable to "call for help" by leaving the first parameter blank and adding rcats in a "second" unnamed parameter.  Workin' on that one.</s>
 
: Code has been included that fixes the ''Category:Miscellaneous redirects'' flaw.
 
:: Timestamp – 04:06, 22 February 2016 (UTC)
 
:: Improved – 22:54, 22 February 2016 (UTC)
 
  
===Note 3===
+
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, in which editors must add the {{para|embed|yes}} parameter to every rcat that is applied, 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}}. Before this change is implemented for all rcats, it is important to get other opinions about this, so I have opened a discussion and linked to it here on this page. &nbsp;''Good&nbsp;faith!''&nbsp;'''''[[User talk:Paine Ellsworth|<span style="font-size:85%;color:darkblue;font-family:Segoe Script">Paine</span>]]'''''&nbsp; <s><small>18:20, 16 February 2016 (UTC)</small></s> <small>12:34, 20 February 2016 (UTC)</small>
 
  
===[[Template talk:This is a redirect#Sandbox version|Discussion link]]===
 
 
}}
 
}}
</noinclude>-->
+
{{Documentation}}
 +
</noinclude>

Revision as of 20:17, 18 July 2016

Template documentation

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}}.

Template documentation[create]