Difference between revisions of "Template:CategoryContents"

From Synfig Studio :: Documentation
Jump to: navigation, search
(This template lists pages in category, considering their translated titles.)
 
(localized CategoryContents)
Line 1: Line 1:
 
<includeonly><dpl>
 
<includeonly><dpl>
category = {{PAGENAME}}
+
category = {{{1}}}/{{#ifeq: {{#titleparts:{{PAGENAME}}||-1}}|{{PAGENAME}}||/{{#titleparts:{{PAGENAME}}||-1}}}}
 
include={Title}.dpl
 
include={Title}.dpl
 
format=,\n* [[%PAGE%|,]],
 
format=,\n* [[%PAGE%|,]],
Line 9: Line 9:
 
== Usage ==
 
== Usage ==
  
Place this code inside of category page:
+
List contents of specific category on the page. Usage:
<pre>{{CategoryContents}}</pre>
+
 
 +
<pre>{{CategoryContents|Example}}</pre>
 +
 
 +
NOTE: Output is localized, so if you use {{CategoryContents|Example}} on Spanish page, you will automatically get content of Example/es category
 
</noinclude>
 
</noinclude>

Revision as of 12:21, 7 September 2009


This template lists pages in category, considering their translated titles.

Usage

List contents of specific category on the page. Usage:

{{CategoryContents|Example}}

NOTE: Output is localized, so if you use

on Spanish page, you will automatically get content of Example/es category