Difference between revisions of "Template:CyclePage"

((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
<includeonly>[[Category:{{PAGENAME}}]]{{#ask:[[Category: Tibetan Texts]][[cycle::{{PAGENAME}}]]
+
<includeonly>[[Category:{{PAGENAME}}]]
 +
 
 +
{{#ask:[[Category: Tibetan Texts]][[-parentcycle::{{PAGENAME}}]]
 
|?parentcycle
 
|?parentcycle
 
|sort=parentcycle
 
|sort=parentcycle
Line 6: Line 8:
 
|template=ParentCycleTags
 
|template=ParentCycleTags
 
|limit=10000
 
|limit=10000
}}[[Category:Cycles]][[Category:Rin chen gter mdzod Shechen Edition]][[Category:Rin chen gter mdzod]]
+
}}
 +
 
 +
[[Category:Cycles]][[Category:Rin chen gter mdzod Shechen Edition]][[Category:Rin chen gter mdzod]]
  
 
{{#tag:gallery|
 
{{#tag:gallery|
Line 16: Line 20:
  
 
{{#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}}]]
{{#ask:[[Category: Tibetan Texts]][[parentcycle::{{PAGENAME}}]]
+
|?cycle
|?cycle
+
|sort=cycle
|sort=cycle
+
|order=asc
|order=asc
+
|format=array
|format=list
+
|template=values
|template=subCycleList
+
}}
}}
 
|,}}
 
 
{{#arrayunique:values}}
 
{{#arrayunique:values}}
 
<ul>
 
<ul>

Revision as of 18:43, 12 December 2017