Difference between revisions of "Template:Person"

From Shangpa Resource Center
Line 61: Line 61:
 
}}
 
}}
 
{{#arraydefine: MyTextAuthorArray
 
{{#arraydefine: MyTextAuthorArray
  |{{#ask: [[Author::{{BASEPAGENAME}}]] |mainlabel=- |headers=hide |link=none |limit=5000 |?TibetanTitle }}
+
  |{{#ask: [[Author::{{BASEPAGENAME}}]] |mainlabel=- |headers=hide |link=none |limit=5000 |?WylieTitle }}
 
  |, | sort=asc, unique
 
  |, | sort=asc, unique
 
}}{{#arraydefine: MyTextAssociatedArray
 
}}{{#arraydefine: MyTextAssociatedArray
  |{{#ask: [[Associated Person::{{BASEPAGENAME}}]] |mainlabel=- |headers=hide |link=none |limit=5000 |?TibetanTitle }}
+
  |{{#ask: [[Associated Person::{{BASEPAGENAME}}]] |mainlabel=- |headers=hide |link=none |limit=5000 |?WylieTitle}}
 
  |, | sort=asc, unique
 
  |, | sort=asc, unique
 
}}<div class="text_right_column">
 
}}<div class="text_right_column">
Line 75: Line 75:
 
</ul> |}}
 
</ul> |}}
 
<h2 class="h2_person">Associated works</h2>
 
<h2 class="h2_person">Associated works</h2>
{{#ifeq: {{#arraysize:MyTextAuthorArray}} | 0 | | <h3>Author</h3><ul>{{#arrayprint: MyTextAuthorArray||@@@@|<li>[[@@@@]]</li> }}</ul> }}
+
{{#ifeq: {{#arraysize:MyTextAuthorArray}} | 0 || <h3>Author</h3><ul>{{#arrayprint: MyTextAuthorArray||@@@@|<li>[[@@@@]]</li> }}</ul> }}
{{#ifeq: {{#arraysize:MyTextAssociatedArray}} | 0 | | <h3>Associated</h3><ul>{{#arrayprint: MyTextAssociatedArray||@@@@|<li>[[@@@@]]</li> }}</ul> }}
+
{{#ifeq: {{#arraysize:MyTextAssociatedArray}} | 0 || <h3>Associated</h3><ul>{{#arrayprint: MyTextAssociatedArray||@@@@|<li>[[@@@@]]</li> }}</ul> }}
 
{{#if: {{{Notes|}}}|<h2 class="h2_person">Notes</h2> {{{Notes|}}}|}}  
 
{{#if: {{{Notes|}}}|<h2 class="h2_person">Notes</h2> {{{Notes|}}}|}}  
 
</div>
 
</div>

Revision as of 14:19, 16 February 2019

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

{{Person
|PersonID=
|Gender=
|Date of Birth=
|Date of Death=
|Name Variants=
|Notes=
|Teachers=
|Students=
|Primary seat=
|Place of birth=
|Place of death=
|Monastery founded=
|Associated lineages=
|Links=
}}

Edit the page to see the template text.