Template:R from HTML entity/doc: Difference between revisions

Content deleted Content added
create /doc page
 
m Add namespace-specific categories
 
(3 intermediate revisions by 3 users not shown)
Line 8:
{{info|image=Stop hand nuvola.svg|Please do not alter the printworthy settings of this rcat without first notifying the '''[[WP:Version 1.0 Editorial Team|Version 1.0 Editorial Team]]''', who are responsible for any and all materials, including redirects, that go into a printed version of ''Wikipedia''.}}
* Add this rcat to a redirect in the following manner:
<syntaxhighlight lang="wikitext">
<pre>
#REDIRECT [[(target pagearticle nametitle)]]
 
{{Rcat shell|
Line 15:
{{R unprintworthy}}
}}
</syntaxhighlight>
</pre>
: Template {{tl|Rcat shell}} is an alias for the ''Redirect category shell'' template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redirect. For more information see the documentation on its template page. This rcat may also tag a redirect individually:
<syntaxhighlight lang="wikitext">
<pre>
#REDIRECT [[(target pagearticle nametitle)]]
 
{{R from HTML entity}}
{{R unprintworthy}}
</syntaxhighlight>
</pre>
: This is in accord with instructions found at [[Wikipedia:REDCAT]].
* Use this rcat to tag any redirect in mainspace from an [[HTML entity]] to a page about the text that the HTML entity code returns.
Line 28:
==== {{vanchor|Print}}ability ====
* {{Para|printworthy|yes}} – By default, this template tags and categorizes redirects as unprintworthy. Use the printworthy parameter to subdue this behavior and populate {{Cat|Printworthy redirects}} in the following manner:
<syntaxhighlight lang="wikitext">
<pre>
{{Rcat shell|
{{R from HTML entity|printworthy=yes}}
{{R printworthy}}
}}
</syntaxhighlight>
</pre>
:''or''
<syntaxhighlight lang="wikitext">
<pre>
{{R from HTML entity|printworthy=yes}}
{{R printworthy}}
</syntaxhighlight>
</pre>
 
==== Aliases ====
Line 71:
[[Category:Templates for unprintworthy redirects|HTML entity]]
[[Category:Unprintworthy redirects| ]]
[[Category:Main namespace redirect templates]]}}</includeonly> <noinclude>
 
[[Category:RcatRedirect category template documentation pages|HTML entity]]
}}</includeonly> <noinclude>
[[Category:Rcat template documentation pages|HTML entity]]
</noinclude>