Difference between revisions of "Template:Topic"

From Shangpa Resource Center
Line 15: Line 15:
 
}}
 
}}
 
{{#ifeq: {{#arraysize:MySubTopicsArray}} | 0 |  
 
{{#ifeq: {{#arraysize:MySubTopicsArray}} | 0 |  
{{#ask: [[Subject::{{BASEPAGENAME}}]] |?TibetanTitle |?Author |headers=hide |format=ul |limit=5000 }}
+
{{#ask: [[Subject::{{BASEPAGENAME}}]] |?TibetanTitle |?Author |headers=hide |format=template | template=TopicListItem |limit=5000 }}
 
|  
 
|  
 
{{#arrayprint: MySubTopicsArray||@@@@|<h2>@@@@</h2>{{#ask: [[Subject::{{BASEPAGENAME}}]] [[SubTopics::@@@@]] |?TibetanTitle |?Author |headers=hide |format=ul }} }}
 
{{#arrayprint: MySubTopicsArray||@@@@|<h2>@@@@</h2>{{#ask: [[Subject::{{BASEPAGENAME}}]] [[SubTopics::@@@@]] |?TibetanTitle |?Author |headers=hide |format=ul }} }}

Revision as of 13:26, 9 June 2019

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.