Difference between revisions of "Template:CategoryContents"

From Synfig Studio :: Documentation
Jump to: navigation, search
(fix errors, reformat)
(don't use parameters)
Line 1: Line 1:
<includeonly>{{#dpl:category={{{1}}}{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|{{PAGENAME}}||/{{#titleparts:{{PAGENAME}}||-1}}}}|include={Title}.dpl|format=,\n* [[%PAGE%|,]],}}</includeonly>
+
<includeonly>{{#dpl:category={{PAGENAME}}{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|{{PAGENAME}}||/{{#titleparts:{{PAGENAME}}||-1}}}}|include={Title}.dpl|format=,\n* [[%PAGE%|,]],}}</includeonly>
 
<noinclude>
 
<noinclude>
 
This template lists pages in category, considering their translated titles.
 
This template lists pages in category, considering their translated titles.
 +
Use this template on category page to list its contents in localized format.
  
== Usage ==
+
<pre>{{CategoryContents}}</pre>
 
+
List contents of specific category on the page. Usage:
+
 
+
<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:31, 7 September 2009


This template lists pages in category, considering their translated titles. Use this template on category page to list its contents in localized format.

{{CategoryContents}}