Difference between revisions of "Template:Topic"

From Shangpa Resource Center
Line 14: Line 14:
 
  |, | sort=asc, unique
 
  |, | sort=asc, unique
 
}}
 
}}
{{#if: {{#arraysize:MySubTopicsArray}} != 0 |  
+
{{#ifeq: {{#arraysize:MySubTopicsArray}} | 0 |  
{{#arrayprint: MySubTopicsArray||@@@@|<h2>@@@@</h2>{{#ask: [[SubTopics::@@@@]] |?TibetanTitle |?WylieTitle |?Author |format=ul }} }}
 
| zae
 
 
{{#ask: [[Topics::{{BASEPAGENAME}}]] |?TibetanTitle |?WylieTitle |?Author |format=ul }}
 
{{#ask: [[Topics::{{BASEPAGENAME}}]] |?TibetanTitle |?WylieTitle |?Author |format=ul }}
 +
|
 +
{{#arrayprint: MySubTopicsArray||@@@@|<h2>@@@@</h2>{{#ask: [[SubTopics::@@@@]] |?TibetanTitle |?WylieTitle |?Author |format=ul }} }}
 
}}
 
}}
 
[[Category:Topic]]
 
[[Category:Topic]]
 
</includeonly>
 
</includeonly>

Revision as of 16:18, 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.