Template:Category explanation/doc: Difference between revisions

Content deleted Content added
Rewrite for clarity
add high-use (more than 100k transclusions)
 
(3 intermediate revisions by 2 users not shown)
Line 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}
 
This template is for use on [[WP:CATEGORY|category]] pages (in the Category: namespace), producing a [[WP:HATNOTE|hatnote]] describing the category. It takes a single parameter{{Snd}} the category description{{Snd}} producing the hatnote:
Line 7 ⟶ 8:
 
== Examples ==
* <span style="color:darkgreen;">This code: {{tlc|{{BASEPAGENAME}}|articles related to <nowiki>[[foo]]</nowiki>}} produces:</span> {{{{BASEPAGENAME}}|articles related to [[foo]]}}
* <span style="color:darkgreen;">This code: {{tlc|{{BASEPAGENAME}}|articles related to <nowiki>[[foo]].</nowiki>}} produces:</span>{{{{BASEPAGENAME}}|articles related to [[foo]].}}
* <span style="color:red;">This code: {{tlc|{{BASEPAGENAME}}|articles related to <nowiki>[[foo]]:</nowiki>}} (undesirably) produces:</span>{{{{BASEPAGENAME}}|articles related to [[foo]]:}}
 
==Redirects==
Line 21 ⟶ 22:
 
==See also==
{{Category hatnote templates}}
{{see also|Wikipedia:Hatnote#Categories}}
{{main category|Hatnote templates for category pages}}
* {{Tlx|Cat main}}
* {{Tlx|Cat more}}
* {{Tlx|Category main section}}
* {{Tlx|Category see also}}
 
{{Namespace category}}