Difference between revisions of "Template:Topic"

From Shangpa Resource Center
Line 10: Line 10:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>{{#set:ShortDescription={{{Short Description|}}}}}{{#set:LongDescription={{{Long Description|}}}}}{{{Long Description|}}}
 
</noinclude><includeonly>{{#set:ShortDescription={{{Short Description|}}}}}{{#set:LongDescription={{{Long Description|}}}}}{{{Long Description|}}}
{{#ask: [[Topics::{{BASEPAGENAME}}]]  
+
{{#arraydefine: MySubTopicsArray
 +
|{{#ask: [[SubTopics::+]] |mainlabel=- |headers=hide |?SubTopics |limit=5000 }}
 +
|, | sort=asc, unique
 +
}}
 +
 
 +
{{#arrayprint: MySubTopicsArray|<br/>|@@@@|
 +
{{#ask: [[Category:Text]] [[SubTopics::@@@@]] |headers=hide |?TibetanTitle |?Author }}</div>
 +
}}
 +
 
 +
{{#ask: [[Topics::{{BASEPAGENAME}}]] [[SubTopics::@@@@]]
 
|?TibetanTitle
 
|?TibetanTitle
 
|?WylieTitle
 
|?WylieTitle

Revision as of 15:44, 7 December 2018

This is the "Topic" template. It should be called in the following format:

{{Topic
|Short Description=
|Long Description=
}}

Edit the page to see the template text.