Template:CyclePage: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 8: Line 8:


{{#if:{{#ask:[[Category: Tibetan Texts]][[parentcycle::{{PAGENAME}}]]}}|<h2>Sub-cycles</h2>|}}
{{#if:{{#ask:[[Category: Tibetan Texts]][[parentcycle::{{PAGENAME}}]]}}|<h2>Sub-cycles</h2>|}}
{{#arraydefine: values|
{{#ask:[[Category: Tibetan Texts]][[parentcycle::{{PAGENAME}}]]
|?cycle
|sort=cycle
|order=asc
|format=list
|sep=,
|template=subCycleList
}}
|,}}
{{#arrayunique:values}}
{{#arrayprint:values|<br>}}
<ul>
<ul>
{{#arraymap:
{{#arraymap:
{{#arraydefine: values|
{{#ask:[[Category: Tibetan Texts]][[parentcycle::{{PAGENAME}}]]
|?cycle
|sort=cycle
|order=asc
|format=list
|sep=,
|template=subCycleList
}}
|, |print=list, sort=asc, unique}}
|,|@@|<li>@@</li>|}}
|,|@@|<li>@@</li>|}}
</ul>
</ul>

Revision as of 15:38, 12 December 2017