Difference between revisions of "Template:Volunteerinfobox"

From Peace Corps Wiki
Jump to: navigation, search
(22 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
|assignment02=
 
|assignment02=
 
|assignment03=
 
|assignment03=
 +
|state=
 +
|uscity=
 
|map= ("yes" to display; "no" leave field blank)
 
|map= ("yes" to display; "no" leave field blank)
 
}}
 
}}
Line 50: Line 52:
 
|assignment03=
 
|assignment03=
 
|map= yes
 
|map= yes
 +
|state=Virginia
 +
|uscity=Richmond
 
}}
 
}}
 
</pre>
 
</pre>
Line 84: Line 88:
 
|assignment03=
 
|assignment03=
 
|map= yes
 
|map= yes
 +
|state=Virginia
 +
|uscity=Richmond
 
}}
 
}}
 
|}
 
|}
  
 +
[[Category:templates]]
 +
[[Category:templates infoboxes]]
 +
[[Category:templates countries]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; 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:#ccccff;" colspan="2" |<big>{{PAGENAME}}</big>
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{#if:{{{firstname|}}}|'''[[Firstname::{{{firstname}}}]]|}} {{#if:{{{middlename|}}}|[[Middlename::{{{middlename}}}]]|}} {{#if:{{{lastname|}}}|[[Lastname::{{{lastname}}}]]'''|}}</big>
 
|-
 
|-
 
! [[:category:{{{country}}}|Country]]
 
! [[:category:{{{country}}}|Country]]
Line 95: Line 104:
 
|-
 
|-
 
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]|}}
 
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]|}}
| {{#arraymap:{{{yearservicestarted|}}}|,|x|[[Started service in::x]]}}{{#if:{{{yearservicestarted|}}}|-|}}{{#arraymap:{{{yearserviceended|}}}|,|x|[[Ended service in::x]]}}
+
| {{#if:{{{yearservicestarted|}}}|[[Started service in::{{{yearservicestarted}}}]]|}}{{#if:{{{yearserviceended|}}}|-|}}{{#if:{{{yearserviceended|}}}|[[Ended service in::{{{yearserviceended}}}]]|}}
 
|-
 
|-
! {{#if:{{{groupcode|}}}|[[:category:groupcodes|Group Code]]|}}
+
! {{#if:{{{groupcode|}}}|[[Property:Group code was|Group Code]]|}}
 
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
 
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
 
|-
 
|-
! {{#if:{{{site|}}}|[[:category:sites|Site(s)]]|}}
+
! {{#if:{{{site|}}}|[[Property:Name of community was|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]]}}
 
| {{#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)]]|}}
+
! {{#if:{{{region|}}}|[[Property:Name of region was|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]]}}
 
| {{#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|}}}|[[:category:programs|Program]]|}}
+
! {{#if:{{{program|}}}|[[Property:Served in sector|Program]]|}}
 
| {{#arraymap:{{{program|}}}|,|x|[[Served in sector::x]]}}
 
| {{#arraymap:{{{program|}}}|,|x|[[Served in sector::x]]}}
 
|-
 
|-
! {{#if:{{{assignment01|}}}|[[:category:assignments|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]]}}
 
| {{#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:#ccccff;" colspan="3"|{{#if:{{{yearservicestarted|}}}|[[Started service in::|Started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]|}}
+
! {{#if:{{{state|}}}|[[Property:Is from state|From US state]]|}}
 +
| {{#arraymap:{{{state|}}}|,|x|[[Is from state::x]]}}
 +
|-
 +
! {{#if:{{{uscity|}}}|[[Property:Is from town or city|From US town/city]]|}}
 +
| {{#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}}}]|}}
 
|-
 
|-
 
! 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}}|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|[[Name of region::|Region]]: [[{{{region}}}]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|[[Property:Name of region was|Region]]: [[{{{region}}}]]|}}
 
|-
 
|-
 
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region2|}}}|[[Name of region::|Region]]:  [[{{{region2}}}]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region2|}}}|[[Property:Name of region was|Region]]:  [[{{{region2}}}]]|}}
 
|-
 
|-
 
! 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|}}}|[[Served in sector::|Program]]: [[{{{program}}}]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{program|}}}|[[Property:Served in sector|Program]]: [[{{{program}}}]]|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in::{{{country}}}]][[Served in sector::{{{program}}}]]|format=list|limit=15}}|}}
+
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in sector::{{{program}}}]][[Served in sector::{{{program}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|Other [[:Category:[[Served in::{{{country}}}]]_Volunteers|Volunteers]] who served in [[{{{country}}}]]
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|Other [[:Category:[[Served in::{{{country}}}]]_Volunteers|Volunteers]] who served in [[{{{country}}}]]
 
|-
 
|-
 
! 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"|'''Don't see yourself, Add yourself or a friend!''' {{#forminput:Volunteer}}
 +
|-
 +
! style="text-align: center; background-color:#ccccff;" colspan="3"| Mapped [[{{{country}}}_volunteerss|Volunteers]] around [[{{{country}}}]] [[:Category:{{{country}}} projects located|({{PAGESINCAT:{{{country}}}_projects_located}})]].
 +
{{#if:{{{map|}}}|You located yourself at based on your [[site]] name:{{Location2
 +
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}
 +
}}
 +
|-
 +
! colspan="3"|{{#if:{{{map|}}}|{{#compound_query:[[Category:{{{country}}}_volunteers]][[Location Coordinates::+]];?Location Coordinates;icon=Vol.PNG‎|format=googlemap|width=350|height=400}}|}}
 
|}
 
|}
  
{{#if:{{{map|}}}|{{Location
+
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers]]|}}
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
+
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers_{{{yearservicestarted}}}]]|}}
}}|}}
+
{{#if:{{{yearservicestarted|}}}|[[category:{{{yearservicestarted}}}]]|}}
 
+
{{#if:{{{site|}}}|[[category:{{{site|}}}]]|}}
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]]}}
+
{{#if:{{{site2|}}}|[[category:{{{site2|}}}]]|}}  
{{#if:{{{yearservicestarted|}}}|[[category:{{{yearservicestarted}}}]]}}
+
{{#if:{{{site3|}}}|[[category:{{{site3|}}}]]|}}  
{{#if:{{{site|}}}|[[category:{{{site|}}}]]}}  
+
{{#if:{{{site4|}}}|[[category:{{{site4|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 +
{{#if:{{{region2|}}}|[[category:{{{region2|}}}]]|}}
 
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
 
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
 +
{{#if:{{{programs|}}}|[[category:{{{country}}}_{{{programs}}}]]|}}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
[[Category:volunteers]]  
 
[[Category:volunteers]]  
 
</includeonly>
 
</includeonly>

Revision as of 20:16, 23 August 2009

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=
|assignment01=
|assignment02=
|assignment03=
|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:Joe|Firstname::Joe|}} {{#if:|Middlename::|}} {{#if:Peaceman|Lastname::Peaceman|}}{{#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::Joe Peaceman|}} {{#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}}}]]|}}