Template:Redirect category shell: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Paine Ellsworth
m (update documentation)
m (59 revisions imported)
 
(59 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{Mbox
{{Mbox
| name  = This is a redirect
| name  = Redirect category shell
| type  = move  
| type  = move  
| image = none
| image = none
| style = margin-top: 1.1em; border: solid 1px darkblue; border-left-width: 0.5em;
| style = margin-top: 1.1em; border: solid 1px darkblue; border-left-width: 0.5em;
| textstyle = padding-top: 0.9em; padding-bottom: 0.9em;
| textstyle = padding-top: 0.9em; padding-bottom: 0.9em;
| text  = [[File:Symbol redirect arrow with gradient.svg|25px|link=]] '''This page is a [[Wikipedia:Redirect|redirect]]:'''{{#if:{{{e0|}}}
| text  = [[File:Symbol redirect arrow with gradient.svg|25px|link=]] '''This page is a [[Wikipedia:Redirect|redirect]]:'''{{#if:{{{h|}}}
  |:: ''{{{e0}}}''
  |:: ''{{{h}}}''
  }}<!--
  }}<!--
   Automatically detect protected redirects:
   Automatically detect protected redirects:
--><includeonly>{{#switch: {{PROTECTIONLEVEL:move}}
--><includeonly>{{#switch: {{PROTECTIONLEVEL:move}}
   |sysop|templateeditor={{pp-move|small=yes}}
   |sysop|templateeditor|extendedconfirmed={{pp-move|small=yes}}
  }}{{#switch: {{PROTECTIONLEVEL:edit}}
  }}{{#switch: {{PROTECTIONLEVEL:edit}}
   |sysop={{pp-protected|small=yes}}{{R protected|embed=yes}}
   |sysop={{pp-protected|small=yes}}{{R protected|embed=yes}}
   |templateeditor={{pp-protected|small=yes}}{{R template protected|embed=yes}}
   |templateeditor={{pp-protected|small=yes}}{{R template protected|embed=yes}}
  |extendedconfirmed={{pp-protected|small=yes}}{{R extended-protected|embed=yes}}
   |autoconfirmed={{pp-protected|small=yes}}{{R semi-protected|embed=yes}}
   |autoconfirmed={{pp-protected|small=yes}}{{R semi-protected|embed=yes}}
   | <!--Not protected, or only semi-move-protected-->
   | <!--Not protected, or only semi-move-protected-->
  }}</includeonly>{{#if: {{{1|}}}||
  }}</includeonly>{{#if: {{{1|}}}||<includeonly>
* '''[[:Category:Miscellaneous redirects|Manifold sort]]''':  If no [[Wikipedia:Categorization|category]] description other than a suitable page protection notice has been given, or if more categories might be needed, this redirect populates '''Category:Miscellaneous redirects''' by default.<includeonly>{{#ifeq: {{lc:{{{nocat|false}}}}} | false |{{{category|[[Category:Miscellaneous redirects]]}}}}}</includeonly>
* {{red|'''Important – Please Read! {{maroon|This template should {{em|not}} be applied without parameters by bot nor by any automated or semi-automated process. It should {{em|not}} be used without parameters {{em|unless you want to learn how to categorize redirects}}. For editors who want to learn how to categorize redirects, this template is a {{em|learning tool}}. {{em|Only}} those editors who intend to return to the redirect to learn which rcats to use should apply this template without parameters, or with an empty first parameter!}}'''}}</includeonly>
* '''Manifold sort''':  If help is needed to determine appropriate categories, then this redirect populates '''{{Cat|Miscellaneous redirects}}'''. Monitors of that category will check this redirect and add or remove [[WP:RCAT|rcat]]s as needed.{{#ifeq: {{lc:{{{nocat|false}}}}} | false |{{{category|<includeonly>[[Category:Miscellaneous redirects]]</includeonly>}}}}}
}}
}}
{{#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>When appropriate, [[Wikipedia:Protection policy|protection levels]] are automatically sensed, described and categorized.</small>''
}}<noinclude>
}}<noinclude>
{{Documentation|content=
{{template shortcut|Rcat shell}}
__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>
{{Redirect category shell|1=
{{rcat 1}}
{{rcat 2}}
{{rcat 3}}
{{rcat N}}
}}
</pre>
...or more simply:
<pre>
{{Redirect category shell|
{{rcat 1}}
{{rcat 2}}
{{rcat 3}}
{{rcat N}}
}}
</pre>
"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:
====Embed flaw====
* The {{para|embed|yes}} parameter must be used ''in each rcat'', e.g.,
<pre>
{{Redirect category shell|
{{R from move|embed=yes}}
{{R from alternative spelling|embed=yes}}
{{R printworthy|embed=yes}}
}}
</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.
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}}.
}}
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 04:24, 3 September 2020