This template is protected from editing.

Difference between revisions of "Template:Lang cat"

From Team Fortress Wiki
Jump to: navigation, search
(fix auto lang cat)
(hide whole switch if 1 isn't defined)
Line 1: Line 1:
{{#switch:{{lc:{{{namespace-overrride|{{NAMESPACE}}}}}}}<!--
+
{{#if:{{{1|}}}
 +
| {{#switch:{{lc:{{{namespace-overrride|{{NAMESPACE}}}}}}}<!--
  
 
     // Blacklist certain namespaces from being placed in categories. -->
 
     // Blacklist certain namespaces from being placed in categories. -->
Line 31: Line 32:
 
  // Auto language tracking
 
  // Auto language tracking
 
  -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{auto lang cat}}|}}<!--  
 
  -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{auto lang cat}}|}}<!--  
  --><noinclude>{{doc begin}}
+
  -->
 +
}}<noinclude>{{doc begin}}
 
{{tl|lang cat}} places pages in their correct language category. It should only be used directly on [[:Category:Templates|templates]].
 
{{tl|lang cat}} places pages in their correct language category. It should only be used directly on [[:Category:Templates|templates]].
  

Revision as of 02:12, 21 December 2010

Documentation for Lang cat

{{lang cat}} places pages in their correct language category. It should only be used directly on templates.

Usage

Advanced usage

  • By default {{lang cat}} will ignore any Talk page or page in the User or Team Fortress Wiki namespace. However, this can be overriden for specific instances by setting the parameter namespace-override to true.
  • A specific sort-key can also be defined with the parameter sort. Keep in mind that using this parameter will use the specified sortkey for every page that the template is used on.