Template:Volunteerinfobox
From Peace Corps Wiki
(Difference between revisions)
| (47 intermediate revisions not shown) | |||
| Line 18: | Line 18: | ||
|region3= | |region3= | ||
|program= | |program= | ||
| + | |program2= | ||
|assignment01= | |assignment01= | ||
|assignment02= | |assignment02= | ||
|assignment03= | |assignment03= | ||
| + | |assignment04= | ||
|state= | |state= | ||
|uscity= | |uscity= | ||
| Line 70: | Line 72: | ||
{{volunteerinfobox | {{volunteerinfobox | ||
| - | |firstname= | + | |firstname= Example |
|middlename= | |middlename= | ||
| - | |lastname= | + | |lastname= Example |
|country= Armenia | |country= Armenia | ||
|yearservicestarted= | |yearservicestarted= | ||
| Line 96: | Line 98: | ||
[[Category:templates infoboxes]] | [[Category:templates infoboxes]] | ||
[[Category:templates countries]] | [[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>{{#if:{{{firstname|}}}|'''[[Firstname::{{{firstname}}}]]|}} {{#if:{{{middlename|}}}|[[Middlename::{{{middlename}}}]]|}} {{#if:{{{lastname|}}}|[[Lastname::{{{lastname}}}]]'''|}}</big> | + | ! style="text-align: center; background-color:#ccccff;" colspan="2" |<div align="right"><small>''[[Template:Volunteerinfobox]]''</small></div><br> |
| + | <big>{{#if:{{{firstname|}}}|'''[[Firstname::{{{firstname}}}]]|}} {{#if:{{{middlename|}}}|[[Middlename::{{{middlename}}}]]|}} {{#if:{{{lastname|}}}|[[Lastname::{{{lastname}}}]]'''|}}</big>{{#if:{{{country|}}}|[[Image:Flag_of_{{{country}}}.svg|50px|none]]|}} | ||
| + | {{#if:{{{flickr|}}}|<br>{{{flickr}}}|}}{{#if:{{{image|}}}|<br>[[Image:{{{image}}}|250px]]|}} | ||
|- | |- | ||
! [[:category:{{{country}}}|Country]] | ! [[:category:{{{country}}}|Country]] | ||
| [[Served in::{{{country|}}}]] | | [[Served in::{{{country|}}}]] | ||
|- | |- | ||
| - | ! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}} | + | ! {{#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 115: | 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)]]|}} |
| - | | {{# | + | | {{#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)]]|}} | ||
| - | | {{# | + | | {{#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 127: | 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: | + | ! 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 139: | 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| | + | ! 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 | + | ! 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"| | + | ! 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]]|}} | ||
|- | |- | ||
! 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"| | + | ! 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}} |
| - | + | ||
| - | + | ||
| - | }} | + | |
|- | |- | ||
| - | ! colspan="3"|{{#if:{{{map|}}}|{{#compound_query:[[Category:{{{country}}}_volunteers]][[Location Coordinates::+]];?Location Coordinates;icon=Vol.PNG|format= | + | ! style="text-align: center; background-color:#ccccff;" colspan="3"|'''Don't see yourself, Add yourself or a friend!''' |
| + | <small>''Enter your '''first''' and '''last name'''''</small>{{#forminput:Volunteer}} | ||
| + | |- | ||
| + | ! 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|}}}]] | ||
| + | <small>{{Location2 | ||
| + | |Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}</small> | ||
| + | }} | ||
| + | |- | ||
| + | ! 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 166: | Line 182: | ||
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}} | {{#if:{{{region|}}}|[[category:{{{region|}}}]]|}} | ||
{{#if:{{{region2|}}}|[[category:{{{region2|}}}]]|}} | {{#if:{{{region2|}}}|[[category:{{{region2|}}}]]|}} | ||
| - | {{#if:{{{map|}}}|[[category:{{{country}}}_volunteers_located}} | + | {{#if:{{{map|}}}|[[category:{{{country}}}_volunteers_located]]|}} |
| + | {{#if:{{{map|}}}|[[category:volunteers located]]|}} | ||
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}} | {{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}} | ||
| - | {{#if:{{{ | + | {{#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 02:14, 25 April 2011
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.