Difference between revisions of "Template:Place"

From Shangpa Resource Center
Line 14: Line 14:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
+
</noinclude><includeonly>
! Place ID
+
{{#set:PlaceID={{{Place ID|}}}}}
| [[PlaceID::{{{Place ID|}}}]]
+
{{#set:PlaceType={{{Place Type|}}}}}
|-
+
{{#arraymap:{{{Name Variants|}}}|,|x|{{#set:NameVariants=x}}}}
! Name
+
{{#arraymap:{{{Events|}}}|,|x|{{#set:Events=x}}}}
| [[Name::{{{Name|}}}]]
+
{{#arraymap:{{{Links|}}}|,|x|{{#set:Links=x}}}}
 +
{{#set:Notes={{{Notes|}}}}}
 +
<div class="text_left_column">
 +
{| class="text_properties"
 +
! Resource ID
 +
| {{{Place ID|}}}
 
|-
 
|-
 
! Place Type
 
! Place Type
| [[PlaceType::{{{Place Type|}}}]]
+
| {{{Place Type|}}}
 
|-
 
|-
 
! Name Variants
 
! Name Variants
| {{#arraymap:{{{Name Variants|}}}|,|x|[[NameVariants::x]]}}
+
| {{#arraymap:{{{Name Variants|}}}|,|x|x}}
 
|-
 
|-
 
! Events
 
! Events
| {{#arraymap:{{{Events|}}}|,|x|[[Events::x]]}}
+
| {{#arraymap:{{{Events|}}}|,|x|x}}
 
|-
 
|-
 
! Notes
 
! Notes
| [[Notes::{{{Notes|}}}]]
+
| {{{Notes|}}}
 
|-
 
|-
 
! Links
 
! Links
| {{#arraymap:{{{Links|}}}|,|x|[[Links::x]]}}
+
| {{#arraymap:{{{Links|}}}|,|x|x}}
 
|}
 
|}
 +
</div>
 +
{{#css:
 +
  .mw-parser-output {
 +
    display: flex;
 +
  }
  
 +
  .firstHeading {
 +
    margin-left: 31%;
 +
}
 +
}}
 +
<div class="text_right_column">
 +
<h2 class="h2_person">Name Variants</h2>
 +
{{#arraymap:{{{Name Variants|}}}|,|x|x}}
 +
</div>
 
[[Category:Place]]
 
[[Category:Place]]
 
</includeonly>
 
</includeonly>

Revision as of 11:07, 11 December 2018

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

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

Edit the page to see the template text.