Difference between revisions of "Template:SplitCategory/doc"

From OpenMedia
Jump to: navigation, search
m (+DEFAULTSORT:Categorisation)
m (-{{DEFAULTSORT:Categorisation}})
Line 21: Line 21:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
{{DEFAULTSORT:Categorisation}}
+
 
 
[[Category:Classification]]
 
[[Category:Classification]]
 
</includeonly>
 
</includeonly>

Revision as of 17:13, 17 February 2010

This is a documentation subpage for Template:SplitCategory (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Usage

The Template:SplitCategory assumes to get a colon-separeted input like:

{{SplitCategory|one, two, three}}

…and creates categories dependending on the language…

[[Category:one]] [[Category:two]] [[Category:three]] 

If “print = true”…

{{SplitCategory | one, two, three | print=true}}

…“one, two, three” is printed additionally right where the template is used.

If just “replace sep for print = ,• ” is specified

{{SplitCategory | one, two, three | replace sep for print = ,• }}

…a replacment is done and it looks nicely like “one • two • three” …;-)


See also