Difference between revisions of "Template:CategoryContents"

From Synfig Studio :: Documentation
Jump to: navigation, search
(localized CategoryContents)
m (back to rogin)
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><dpl>
+
<includeonly>
category = {{{1}}}/{{#ifeq: {{#titleparts:{{PAGENAME}}||-1}}|{{PAGENAME}}||/{{#titleparts:{{PAGENAME}}||-1}}}}
+
{{#dpl:
include={Title}.dpl
+
|category={{{1}}}{{#ifeq:{{#titleparts:{{PAGENAME}}||-1}}|{{PAGENAME}}||/{{#titleparts:{{PAGENAME}}||-1}}}}
format=,\n* [[%PAGE%|,]],
+
|include={Title}.dpl
</dpl></includeonly>
+
|format=,\n* [[%PAGE%|,]],
 +
|noresultsheader=&nbsp;
 +
}}
 +
</includeonly>
 
<noinclude>
 
<noinclude>
 
This template lists pages in category, considering their translated titles.
 
This template lists pages in category, considering their translated titles.
Line 11: Line 14:
 
List contents of specific category on the page. Usage:
 
List contents of specific category on the page. Usage:
  
<pre>{{CategoryContents|Example}}</pre>
+
<nowiki>{{CategoryContents|Example}}</nowiki>
  
NOTE: Output is localized, so if you use {{CategoryContents|Example}} on Spanish page, you will automatically get content of Example/es category
+
NOTE: Output is localized, so if you use <nowiki>{{CategoryContents|Example}}</nowiki> on Spanish page, you will automatically get content of Example/es category
 
</noinclude>
 
</noinclude>

Latest revision as of 21:15, 16 October 2016


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 {{CategoryContents|Example}} on Spanish page, you will automatically get content of Example/es category