Difference between revisions of "Template:Volunteerinfobox"

From Peace Corps Wiki
Jump to: navigation, search
m (134 revisions)
 
(29 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
|region3=
 
|region3=
 
|program=
 
|program=
 +
|program2=
 
|assignment01=
 
|assignment01=
 
|assignment02=
 
|assignment02=
 
|assignment03=
 
|assignment03=
 +
|assignment04=
 
|state=
 
|state=
 
|uscity=
 
|uscity=
Line 107: Line 109:
 
| [[Served in::{{{country|}}}]]
 
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]|}}
+
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_volunteers_{{{yearservicestarted}}}|Years:]]|}}
 
| {{#if:{{{yearservicestarted|}}}|[[Started service in::{{{yearservicestarted}}}]]|}}{{#if:{{{yearserviceended|}}}|-|}}{{#if:{{{yearserviceended|}}}|[[Ended service in::{{{yearserviceended}}}]]|}}
 
| {{#if:{{{yearservicestarted|}}}|[[Started service in::{{{yearservicestarted}}}]]|}}{{#if:{{{yearserviceended|}}}|-|}}{{#if:{{{yearserviceended|}}}|[[Ended service in::{{{yearserviceended}}}]]|}}
 
|-
 
|-
Line 119: Line 121:
 
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}{{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}{{#arraymap:{{{region3|}}}|,|x|,[[Name of region was::x]]}}
 
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}{{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}{{#arraymap:{{{region3|}}}|,|x|,[[Name of region was::x]]}}
 
|-
 
|-
! {{#if:{{{program|}}}|[[Property:Served in sector|Program]]|}}
+
! {{#if:{{{program|}}}|[[Property:Served in sector|Program(s)]]|}}
| {{#arraymap:{{{program|}}}|,|x|[[Served in sector::x]]}}
+
| {{#if:{{{program|}}}|[[Served in sector::{{{program}}}]]|}}{{#if:{{{program2|}}}|,[[Served in sector::{{{program2}}}]]|}}{{#if:{{{program3|}}}|,[[Served in sector::{{{program3}}}]]|}}
 
|-
 
|-
 
! {{#if:{{{assignment01|}}}|[[Property:Primary assignment was|Assignment(s)]]|}}
 
! {{#if:{{{assignment01|}}}|[[Property:Primary assignment was|Assignment(s)]]|}}
| {{#arraymap:{{{assignment01|}}}|,|x|[[Primary assignment was::x]]}}{{#arraymap:{{{assignment02|}}}|,|x|, [[Primary assignment was::x]]}}{{#arraymap:{{{assignment03|}}}|,|x|, [[Primary assignment was::x]]}}
+
| {{#if:{{{assignment01|}}}|[[Primary assignment was::{{{assignment01}}}]]|}}{{#if:{{{assignment02|}}}|,[[Primary assignment was::{{{assignment02}}}]]|}}{{#if:{{{assignment03|}}}|,[[Primary assignment was::{{{assignment03}}}]]|}}
 
|-
 
|-
 
! {{#if:{{{state|}}}|[[Property:Is from state|From US state]]|}}
 
! {{#if:{{{state|}}}|[[Property:Is from state|From US state]]|}}
Line 131: Line 133:
 
| {{#arraymap:{{{uscity|}}}|,|x|[[Is from town or city::x]]}}
 
| {{#arraymap:{{{uscity|}}}|,|x|[[Is from town or city::x]]}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{yearservicestarted|}}}|[[:category:years|Started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{yearservicestarted|}}}|[[Volunteer name was::{{{firstname}}} {{{lastname}}}]]|}} {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_volunteers_{{{yearservicestarted}}}|started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]|}}
 
|-
 
|-
 
! colspan="3"|{{#if:{{{yearservicestarted|}}}|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}|}}
 
! colspan="3"|{{#if:{{{yearservicestarted|}}}|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}|}}
Line 143: Line 145:
 
! colspan="3"|{{#if:{{{region2|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region2}}}]]|format=list|limit=15}}|}}
 
! colspan="3"|{{#if:{{{region2|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region2}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{program|}}}|[[Property:Served in sector|Program]]: [[{{{program}}}]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"| {{#if:{{{program|}}}|[[Property:Served in sector|{{{program}}}]] in [[:Category:{{{country}}}_{{lcfirst:{{{program}}}}}|{{{country}}}]]: |}}{{#ifexist:{{{program|}}}|[[Image:{{{program}}}.gif|25px]]|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in sector::{{{program}}}]][[Served in sector::{{{program}}}]]|format=list|limit=15}}|}}
+
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in sector::{{{program}}}]][[Served in::{{{country}}}]]|format=list|limit=10}}|}}
 +
|-
 +
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{program2|}}}|[[Property:Served in sector|{{{program2}}}]] in [[:Category:{{{country}}}_{{{program2}}}|{{{country}}}]]: |}}{{#ifexist:{{{program2|}}}|[[Image:{{{program2}}}.gif|25px]]|}}
 +
|-
 +
! colspan="3"|{{#if:{{{program2|}}}|{{#ask:[[Served in sector::{{{program2}}}]][[Served in::{{{country}}}]]|format=list|limit=10}}|}}
 
|-
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|Other [[:Category:{{{country}}}_volunteers|Volunteers]] who served in [[{{{country}}}]]{{#if:{{{country|}}}|:[[Image:Flag_of_{{{country}}}.svg‎|20px|none]]|}}
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|Other [[:Category:{{{country}}}_volunteers|Volunteers]] who served in [[{{{country}}}]]{{#if:{{{country|}}}|:[[Image:Flag_of_{{{country}}}.svg‎|20px|none]]|}}
 
|-
 
|-
 
! colspan="3"|{{#ask:[[Served in::{{{country}}}]]|format=list|limit=15}}
 
! colspan="3"|{{#ask:[[Served in::{{{country}}}]]|format=list|limit=15}}
 +
|-
 +
! style="text-align: center; background-color:#ccccff;" colspan="3"|[[:Category:{{{country}}}_projects|Projects]] in [[{{{country}}}]]{{#if:{{{country|}}}|:[[Image:Flag_of_{{{country}}}.svg‎|20px|none]]|}}
 +
|-
 +
! colspan="3"|{{#ask:[[Project in::{{{country}}}]]|format=list}}
 
|-
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|'''Don't see yourself, Add yourself or a friend!'''  
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|'''Don't see yourself, Add yourself or a friend!'''  
Line 155: Line 165:
 
|-
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"| {{#if:{{{map|}}}|Mapped [[Volunteers who served in {{{country}}}|Volunteers]] around [[{{{country}}}]] [[:Category:{{{country}}} volunteers located|({{PAGESINCAT:{{{country}}}_volunteers_located}})]].|}}  
 
! style="text-align: center; background-color:#ccccff;" colspan="3"| {{#if:{{{map|}}}|Mapped [[Volunteers who served in {{{country}}}|Volunteers]] around [[{{{country}}}]] [[:Category:{{{country}}} volunteers located|({{PAGESINCAT:{{{country}}}_volunteers_located}})]].|}}  
{{#if:{{{map|}}}|You located yourself at based on your site: [[{{{site|}}}]]:
+
{{#if:{{{map|}}}|You located yourself at based on your site: [[{{{site|}}}]]
<small>Long/Lat {{Location2
+
<small>{{Location2
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}</small>
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}</small>
 
}}
 
}}
|-
+
|-  
! colspan="3"|{{#if:{{{map|}}}|{{#compound_query:[[Category:{{{country}}}_volunteers]][[Location Coordinates::+]];?Location Coordinates;icon=Vol.PNG‎|format=googlemap|width=350|height=400}}|}}
+
! colspan="3"|{{#if:{{{map|}}}|{{#compound_query:[[Category:{{{country}}}_volunteers]][[Location Coordinates::+]];?Location Coordinates;icon=Vol.PNG‎|format=openlayers
 +
|width=350|height=400}}|}}
 
|}
 
|}
 
 
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers]]|}}
 
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers]]|}}
 
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers_{{{yearservicestarted}}}]]|}}
 
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers_{{{yearservicestarted}}}]]|}}
Line 175: Line 185:
 
{{#if:{{{map|}}}|[[category:volunteers located]]|}}
 
{{#if:{{{map|}}}|[[category:volunteers located]]|}}
 
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
 
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
{{#if:{{{programs|}}}|[[category:{{{country}}}_{{{programs}}}]]|}}
+
{{#if:{{{program|}}}|[[category:{{{country}}}_{{lc:{{{program}}}}}]]|}}
 +
{{#if:{{{program2|}}}|[[category:{{{country}}}_{{lc:{{{program2}}}}}]]|}}
 +
{{#if:{{{program|}}}|[[category:{{{program}}}]]|}}
 +
{{#if:{{{program2|}}}|[[category:{{{program2}}}]]|}}
 +
{{#if:{{{assignment01|}}}|[[category:{{{country}}}_{{lc:{{{assignment01}}}}}]]|}}
 +
{{#if:{{{assignment02|}}}|[[category:{{{country}}}_{{lc:{{{assignment02}}}}}]]|}}
 +
{{#if:{{{assignment03|}}}|[[category:{{{country}}}_{{lc:{{{assignment03}}}}}]]|}}
 +
{{#if:{{{assignment04|}}}|[[category:{{{country}}}_{{lc:{{{assignment04}}}}}]]|}}
 +
{{#if:{{{assignment01|}}}|[[category:{{{assignment01}}}]]|}}
 +
{{#if:{{{assignment02|}}}|[[category:{{{assignment02}}}]]|}}
 +
{{#if:{{{assignment03|}}}|[[category:{{{assignment03}}}]]|}}
 +
{{#if:{{{assignment04|}}}|[[category:{{{assignment04}}}]]|}}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
[[Category:volunteers]]  
 
[[Category:volunteers]]  
 
</includeonly>
 
</includeonly>

Latest revision as of 13:38, 21 May 2014

This is the 'volunteerinfobox' template. It should be called in the following format:

{{volunteerinfobox
|firstname=
|middlename=
|lastname=
|country=
|yearservicestarted=
|yearserviceended=
|groupcode= 
|site=
|site2=
|site3=
|region=
|region2=
|region3=
|program=
|program2=
|assignment01=
|assignment02=
|assignment03=
|assignment04=
|state=
|uscity=
|map= ("yes" to display; "no" leave field blank)
}}

Edit the page to see the template text.

EXAMPLE:
{{volunteerinfobox
|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
|state=Virginia
|uscity=Richmond
}}








Template:Volunteerinfobox

{{#if:Example|Firstname::Example|}} {{#if:|Middlename::|}} {{#if:Example|Lastname::Example|}}{{#if:Armenia||}}

{{#if:|
{{{flickr}}}|}}{{#if:|
[[Image:{{{image}}}|250px]]|}}

Country Served in::Armenia
Years:|}} Started service in::|}}{{#if:|-|}}{{#if:|Ended service in::|}}
Group Code|}} ,|x|Group code was::x}}
Site(s)|}} ,|x|Name of community was::x}}{{#arraymap:|,|x|, Name of community was::x}}{{#arraymap:Vyke|,|x|, Name of community was::x}}
Region(s)|}} ,|x|Name of region was::x}}{{#arraymap:|,|x|, Name of region was::x}}{{#arraymap:|,|x|,Name of region was::x}}
Program(s)|}} Served in sector::Environment|}}{{#if:|,[[Served in sector::{{{program2}}}]]|}}{{#if:|,[[Served in sector::{{{program3}}}]]|}}
Assignment(s)|}} Primary assignment was::|}}{{#if:|,Primary assignment was::|}}{{#if:|,Primary assignment was::|}}
From US state|}} ,|x|Is from state::x}}
From US town/city|}} ,|x|Is from town or city::x}}
{{#if:|Volunteer name was::Example Example|}} {{#if:|started in Armenia [1]|}}
{{#if:|{{#ask:Served in::ArmeniaStarted service in::|format=list|limit=15}}|}}
{{#if:Vayots Dzor|Region: Vayots Dzor|}}
{{#if:Vayots Dzor|{{#ask:Served in::ArmeniaName of region was::Vayots Dzor|format=list|limit=15}}|}}
{{#if:|Region: [[]]|}}
{{#if:|{{#ask:Served in::ArmeniaName of region was::|format=list|limit=15}}|}}
{{#if:Environment|Environment in Armenia: |}}{{#ifexist:Environment|25px|}}
{{#if:Environment|{{#ask:Served in sector::EnvironmentServed in::Armenia|format=list|limit=10}}|}}
{{#if:|{{{program2}}} in [[:Category:Armenia_{{{program2}}}|Armenia]]: |}}{{#ifexist:|[[Image:{{{program2}}}.gif|25px]]|}}
{{#if:|{{#ask:[[Served in sector::{{{program2}}}]]Served in::Armenia|format=list|limit=10}}|}}
Other Volunteers who served in Armenia{{#if:Armenia|:|}}
{{#ask:Served in::Armenia|format=list|limit=15}}
Projects in Armenia{{#if:Armenia|:|}}
{{#ask:Project in::Armenia|format=list}}
Don't see yourself, Add yourself or a friend!

Enter your first and last name{{#forminput:Volunteer}}

{{#if:yes|Mapped Volunteers around Armenia (15).|}}

{{#if:yes|You located yourself at based on your site: Jermuk {{#if:{{#geocode:Jermuk,Armenia}}|[[Location Coordinates::{{#geocode:Jermuk,Armenia}}]]}} }}

{{#if:yes|{{#compound_query:Location Coordinates::+;?Location Coordinates;icon=Vol.PNG‎|format=openlayers height=400}}|}}

{{#if:||}} {{#if:||}} {{#if:|[[category:]]|}} {{#if:Jermuk||}} {{#if:|[[category:]]|}} {{#if:Vyke||}} {{#if:|[[category:]]|}} {{#if:Vayots Dzor||}} {{#if:|[[category:]]|}} {{#if:yes||}} {{#if:yes||}} {{#if:A-17||}} {{#if:Environment||}} {{#if:|[[category:Armenia_{{{program2}}}]]|}} {{#if:Environment||}} {{#if:|[[category:{{{program2}}}]]|}} {{#if:||}} {{#if:||}} {{#if:||}} {{#if:|[[category:Armenia_{{{assignment04}}}]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:{{{assignment04}}}]]|}}