Difference between revisions of "Template:Topic"
From Shangpa Resource Center
Line 11: | Line 11: | ||
</noinclude><includeonly>__NOTOC__{{#set:ShortDescription={{{Short Description|}}}}}{{#set:LongDescription={{{Long Description|}}}}}{{{Long Description|}}} | </noinclude><includeonly>__NOTOC__{{#set:ShortDescription={{{Short Description|}}}}}{{#set:LongDescription={{{Long Description|}}}}}{{{Long Description|}}} | ||
{{#arraydefine: MySubTopicsArray | {{#arraydefine: MySubTopicsArray | ||
− | |{{#ask: [[ | + | |{{#ask: [[Subject::{{BASEPAGENAME}}]] [[SubTopics::+]] |mainlabel=- |headers=hide |link=none |?SubTopics }} |
|, | sort=asc, unique | |, | sort=asc, unique | ||
}} | }} | ||
{{#ifeq: {{#arraysize:MySubTopicsArray}} | 0 | | {{#ifeq: {{#arraysize:MySubTopicsArray}} | 0 | | ||
− | {{#ask: [[ | + | {{#ask: [[Subject::{{BASEPAGENAME}}]] |?TibetanTitle |?Author |headers=hide |format=ul }} |
| | | | ||
{{#arrayprint: MySubTopicsArray||@@@@|<h2>@@@@</h2>{{#ask: [[SubTopics::@@@@]] |?TibetanTitle |?Author |headers=hide |format=ul }} }} | {{#arrayprint: MySubTopicsArray||@@@@|<h2>@@@@</h2>{{#ask: [[SubTopics::@@@@]] |?TibetanTitle |?Author |headers=hide |format=ul }} }} |
Revision as of 12:46, 13 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.