Difference between revisions of "Template:Person"

From Shangpa Resource Center
 
Line 12: Line 12:
 
|Teachers=
 
|Teachers=
 
|Students=
 
|Students=
|Associated works=
 
 
|Primary seat=
 
|Primary seat=
 
|Place of birth=
 
|Place of birth=
Line 22: Line 21:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
+
</noinclude><includeonly>
 +
{{#set:PersonID={{{PersonID|}}}}}
 +
{{#set:DateOfBirth={{{Date of Birth|}}}}}
 +
{{#set:DateOfDeath={{{Date of Death|}}}}}
 +
{{#arraymap:{{{Name Variants|}}}|,|x|{{#set:NameVariants=x}}}}
 +
{{#set:Notes={{{Notes|}}}}}
 +
{{#arraymap:{{{Teachers|}}}|,|x|{{#set:Teachers=x}}}}
 +
{{#arraymap:{{{Students|}}}|,|x|{{#set:Students=x}}}}
 +
{{#set:PlacesPrimarySeat={{{Primary seat|}}}}}
 +
{{#set:PlacesBirth={{{Place of birth|}}}}}
 +
{{#set:PlacesDeath={{{Place of death|}}}}}
 +
{{#arraymap:{{{PlacesFoundedMonastery|}}}|,|x|{{#set:Monastery founded=x}}}}
 +
{{#arraymap:{{{Associated lineages|}}}|,|x|{{#set:AssociatedLineages=x}}}}
 +
{{#arraymap:{{{Links|}}}|,|x|{{#set:Links=x}}}}
 +
{| class="wikitable"
 
! PersonID
 
! PersonID
 
| [[PersonID::{{{PersonID|}}}]]  
 
| [[PersonID::{{{PersonID|}}}]]  
Line 46: Line 59:
 
! Students
 
! Students
 
| {{#arraymap:{{{Students|}}}|,|x|[[Students::x]]}}
 
| {{#arraymap:{{{Students|}}}|,|x|[[Students::x]]}}
|-
 
! Associated works
 
| {{#arraymap:{{{Associated works|}}}|,|x|[[AssociatedWorks::x]]}}
 
 
|-
 
|-
 
! Primary seat
 
! Primary seat

Revision as of 14:14, 10 December 2018

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.