Difference between pages "Template:Memorialvolunteerbox" and "Template:T2013"

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
m (getting spacing back to normal)
 
m (1 revision imported)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'memorialvolunteerbox' template.
+
Used on [[Timeline]] to populate pages that need the following country and group info throughout wiki:
It should be called in the following format:
+
Use:
 
<pre>
 
<pre>
{{memorialvolunteerbox
+
{{T2013|countryname|stagingdate|stagingcity|groupcode|swearingin}}
|firstname=
 
|middlename=
 
|lastname=
 
|country=
 
|yearservicestarted=
 
|yearserviceended=
 
|groupcode=
 
|site=
 
|site2=
 
|site3=
 
|region=
 
|region2=
 
|region3=
 
|program=
 
|assignment01=
 
|assignment02=
 
|assignment03=
 
|fatalitycause=
 
|fatalitydate=
 
|map= ("yes" to display; "no" leave field blank)
 
}}
 
</pre>
 
  
Edit the page to see the template text.
+
{{T2013|Zambia|February 1|Washington DC|Z65|March 4}}
  
{|
 
| colspan="2" align="center" | '''<big>EXAMPLE:</big>'''
 
|-
 
|
 
<pre>{{memorialvolunteerbox
 
|firstname= Joe
 
|middlename=
 
|lastname= Peaceman
 
|country= Armenia
 
|yearservicestarted= 2008
 
|yearserviceended= 2010
 
|groupcode= A-17
 
|site= Jermuk
 
|site2=
 
|site3= Vyke
 
|region= Vayots Dzor
 
|region2=
 
|region3=
 
|program= Environment
 
|assignment01=
 
|assignment02=
 
|assignment03=
 
|map= yes
 
|fatalitycause=
 
|fatalitydate=
 
}}
 
 
</pre>
 
</pre>
  
 +
[[Category:templates]]
 +
</noinclude>
  
|
+
<includeonly>  
 
+
{{#if:{{{2|}}}|{{#set_internal:Country staging date
 
+
 
+
|Country name is={{{1}}}  
 
+
 
+
|Staging date={{{2}}} 2013
 
+
 
+
|2013 staging date={{{2}}} 2013
 
+
 
+
|Staging city={{{3}}}  
 
+
{{memorialvolunteerbox
+
|2013 staging city={{{3}}}  
|firstname= Joe
+
|middlename=
+
|group code={{{4}}}  
|lastname= Peaceman
+
|country= Armenia
+
|2013 swearing in={{{5}}} 2013
|yearservicestarted= 2008
+
|yearserviceended= 2010
+
|swearing in={{{5}}} 2013
|groupcode= A-17
+
|site= Jermuk
+
}}|}}</includeonly>
|site2=
 
|site3= Vyke
 
|region= Vayots Dzor
 
|region2=
 
|region3=
 
|program= Environment
 
|assignment01=
 
|assignment02=
 
|assignment03=
 
|map= yes
 
|fatalitycause=auto
 
|fatalitydate=Jan 1 2005
 
}}
 
|}
 
 
 
</noinclude><includeonly>
 
{| style="width: 30em; font-size: 90%; border: 1px solid #CC0000; background-color: #FFFFFF; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
! style="text-align: center; background-color:#cc0000;" colspan="2"; |IN MEMORY OF <big>{{PAGENAME}}</big><br>
 
[[Cause of death::{{{fatalitycause}}}]]<br>
 
[[Date of death::{{{fatalitydate}}}]]<br>
 
 
 
|-
 
! [[:category:{{{country}}}|Country]]
 
| [[Served in::{{{country|}}}]]
 
|-
 
! [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]
 
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
|-
 
! {{#if:{{{groupcode|}}}|[[:category:groupcodes|Group Code]]|}}
 
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
 
|-
 
! {{#if:{{{site|}}}|[[:category:sites|Site(s)]]|}}
 
| {{#arraymap:{{{site|}}}|,|x|[[Name of community was::x]]}}{{#arraymap:{{{site2|}}}|,|x|, [[Name of community was::x]]}}{{#arraymap:{{{site3|}}}|,|x|, [[Name of community was::x]]}}
 
|-
 
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
 
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}{{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}{{#arraymap:{{{region3|}}}|,|x|,[[Name of region was::x]]}}
 
|-
 
! [[:category:programs|Program]]
 
| [[Served in sector::{{{program|}}}]]
 
|-
 
! {{#if:{{{assignment01|}}}|[[:category:assignments|Assignment(s)]]|}}
 
| {{#arraymap:{{{assignment01|}}}|,|x|[[Primary assignment was::x]]}}{{#arraymap:{{{assignment02|}}}|,|x|, [[Primary assignment was::x]]}}{{#arraymap:{{{assignment03|}}}|,|x|, [[Primary assignment was::x]]}}
 
|-
 
! style="text-align: center; background-color:#CC0000;" colspan="3"|In Memory of those who passed in [http://www.peacecorpswiki.org/Special:BrowseData/Memorial?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]
 
|-
 
! colspan="3"|{{#ask:[[Category:Volunteer memorial]]|format=list|limit=15}}
 
|-
 
! style="text-align: center; background-color:#CC0000;" colspan="3"|Started service in [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]
 
|-
 
! colspan="3"|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}
 
|-
 
! style="text-align: center; background-color:#CC0000;" colspan="3"|{{#if:{{{region|}}}|Region: [[{{{region}}}]]|}}
 
|-
 
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:#CC0000;" colspan="3"|{{#if:{{{region2|}}}|Region: [[{{{region2}}}]]|}}
 
|-
 
! colspan="3"|{{#if:{{{region2|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region2}}}]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:#CC0000;" colspan="3"|{{#if:{{{program|}}}|Program: [[{{{program}}}]]|}}
 
|-
 
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in::{{{country}}}]][[Served in sector::{{{program}}}]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:#CC0000;" colspan="3"|Other [[:Category:[[Served in::{{{country}}}]]_Volunteers|Volunteers]] who served in [[{{{country}}}]]
 
|-
 
! colspan="3"|{{#ask:[[Served in::{{{country}}}]]|format=list|limit=15}}
 
|}
 
 
 
{{#if:{{{map|}}}|{{Location
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
 
}}|}}
 
 
 
[[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]]
 
[[category:{{{yearservicestarted}}}]]
 
{{#if:{{{site|}}}|[[category:{{{site|}}}]]}}
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
 
{{#if:{{{fatalitydate|}}}|[[category:Volunteer memorial]]}}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
[[Category:volunteers]]
 
</includeonly>
 

Latest revision as of 13:40, 23 August 2016

Used on Timeline to populate pages that need the following country and group info throughout wiki: Use:

{{T2013|countryname|stagingdate|stagingcity|groupcode|swearingin}}

{{T2013|Zambia|February 1|Washington DC|Z65|March 4}}