Difference between revisions of "Template:Place"

From Shangpa Resource Center
 
(7 intermediate revisions by the same user not shown)
Line 45: Line 45:
  
 
   .firstHeading {
 
   .firstHeading {
     margin-left: 31%;
+
     margin-left: 21%;
 
  }
 
  }
 
}}
 
}}
Line 52: Line 52:
 
{{#arraymap:{{{Name Variants|}}}|,|x|x|<br/>}}
 
{{#arraymap:{{{Name Variants|}}}|,|x|x|<br/>}}
 
{{#arraydefine: ArrayPlacesFoundedMonastery
 
{{#arraydefine: ArrayPlacesFoundedMonastery
  |{{#ask: [[Category:Person]] [[PlacesFoundedMonastery::{{BASEPAGENAME}}]] |headers=hide|intro=Monastry Founded by:&nbsp;|outro=<br/>|}}
+
  |{{#ask: [[Category:Person]] [[Monastery founded::{{BASEPAGENAME}}]] |headers=hide}}
 
  |, | sort=asc, unique
 
  |, | sort=asc, unique
 
}}{{#arraydefine: ArrayPlacesPrimarySeat
 
}}{{#arraydefine: ArrayPlacesPrimarySeat
  |{{#ask: [[Category:Person]] [[PlacesPrimarySeat::{{BASEPAGENAME}}]] |headers=hide |intro=Primary seat:&nbsp;|outro=<br/>|}}
+
  |{{#ask: [[Category:Person]] [[PlacesPrimarySeat::{{BASEPAGENAME}}]] |headers=hide }}
 
  |, | sort=asc, unique
 
  |, | sort=asc, unique
}}
+
}}{{#arraydefine: ArrayPlacesBirth
{{#arraydefine: ArrayPlacesBirth
+
  |{{#ask: [[Category:Person]] [[PlacesBirth::{{BASEPAGENAME}}]] |headers=hide }}
  |{{#ask: [[Category:Person]] [[PlacesBirth::{{BASEPAGENAME}}]] |headers=hide|intro=Born at that place:&nbsp;|outro=<br/>| }}
 
 
  |, | sort=asc, unique
 
  |, | sort=asc, unique
}}
+
}}{{#arraydefine: ArrayPlacesDeath
{{#arraydefine: ArrayPlacesDeath
+
  |{{#ask: [[Category:Person]] [[PlacesDeath::{{BASEPAGENAME}}]] |headers=hide}}
  |{{#ask: [[Category:Person]] [[PlacesDeath::{{BASEPAGENAME}}]] |headers=hide|intro=Died at that place:&nbsp;|outro=<br/>|}}
 
 
  |, | sort=asc, unique
 
  |, | sort=asc, unique
 
}}
 
}}
 
{{#ifexpr: {{#arraysize:ArrayPlacesFoundedMonastery}}+{{#arraysize:ArrayPlacesPrimarySeat}}+{{#arraysize:ArrayPlacesBirth}}+{{#arraysize:ArrayPlacesDeath}} = 0 ||<h2 class="h2_person">Associated Persons</h2>
 
{{#ifexpr: {{#arraysize:ArrayPlacesFoundedMonastery}}+{{#arraysize:ArrayPlacesPrimarySeat}}+{{#arraysize:ArrayPlacesBirth}}+{{#arraysize:ArrayPlacesDeath}} = 0 ||<h2 class="h2_person">Associated Persons</h2>
{{#ifeq: {{#arraysize:ArrayPlacesFoundedMonastery}} | 0 || <h3 class="h3_person">Monastry Founded by</h3><ul>{{#arrayprint: ArrayPlacesFoundedMonastery||@@@@|<li>[[@@@@]]</li> }}</ul> }}
+
{{#ifeq: {{#arraysize:ArrayPlacesFoundedMonastery}} | 0 || <h3 class="h3_person">Monastry Founded by</h3><ul>{{#arrayprint: ArrayPlacesFoundedMonastery||@@@@|<li>@@@@</li> }}</ul> }}
{{#ifeq: {{#arraysize:ArrayPlacesPrimarySeat}} | 0 || <h3 class="h3_person">Primary seat</h3><ul>{{#arrayprint: ArrayPlacesPrimarySeat||@@@@|<li>[[@@@@]]</li> }}</ul> }}
+
{{#ifeq: {{#arraysize:ArrayPlacesPrimarySeat}} | 0 || <h3 class="h3_person">Primary seat</h3><ul>{{#arrayprint: ArrayPlacesPrimarySeat||@@@@|<li>@@@@</li> }}</ul> }}
{{#ifeq: {{#arraysize:ArrayPlacesBirth}} | 0 || <h3 class="h3_person">Born at that place</h3><ul>{{#arrayprint: ArrayPlacesBirth||@@@@|<li>[[@@@@]]</li> }}</ul> }}
+
{{#ifeq: {{#arraysize:ArrayPlacesBirth}} | 0 || <h3 class="h3_person">Born at that place</h3><ul>{{#arrayprint: ArrayPlacesBirth||@@@@|<li>@@@@</li> }}</ul> }}
{{#ifeq: {{#arraysize:ArrayPlacesDeath}} | 0 || <h3 class="h3_person">Died at that place</h3><ul>{{#arrayprint: ArrayPlacesDeath||@@@@|<li>[[@@@@]]</li> }}</ul> }}
+
{{#ifeq: {{#arraysize:ArrayPlacesDeath}} | 0 || <h3 class="h3_person">Died at that place</h3><ul>{{#arrayprint: ArrayPlacesDeath||@@@@|<li>@@@@</li> }}</ul> }}
 
}}
 
}}
 
<h2 class="h2_person">History</h2>
 
<h2 class="h2_person">History</h2>

Latest revision as of 18:33, 9 June 2019

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

{{Place
|Place ID=
|Name=
|Place Type=
|Name Variants=
|Coordinates=
|Events=
|Notes=
|Links=
}}

Edit the page to see the template text.