Difference between revisions of "Template:Volunteerinfobox"

From Peace Corps Wiki
Jump to: navigation, search
(Undo revision 11431 by Wikibot (Talk))
(changed "Name of Community Was" to "Name of community was"...grrr editing at 3:30am)
(24 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
{{volunteerinfobox
 
{{volunteerinfobox
 
|firstname=
 
|firstname=
 +
|middlename=
 
|lastname=
 
|lastname=
 
|country=
 
|country=
 
|yearservicestarted=
 
|yearservicestarted=
 
|yearserviceended=
 
|yearserviceended=
 +
|groupcode=
 
|site=
 
|site=
 +
|site2=
 +
|site3=
 +
|region=
 +
|region2=
 +
|region3=
 
|program=
 
|program=
 
|assignment01=
 
|assignment01=
 +
|assignment02=
 +
|assignment03=
 +
|map= ("yes" to display; "no" leave field blank)
 
}}
 
}}
 
</pre>
 
</pre>
Line 18: Line 28:
 
{| 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>{{PAGENAME}}</big>
|-
 
! [[:category:Volunteers|Name]]
 
| [[Firstname::{{{firstname|}}}]] [[Lastname::{{{lastname|}}}]]
 
 
|-
 
|-
 
! [[:category:{{{country}}}|Country]]
 
! [[:category:{{{country}}}|Country]]
 
| [[Served in::{{{country|}}}]]
 
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! [[:category:countries|Years:]]
+
! [[:category:Years|Years:]]
 
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
|-
 
|-
! [[:category:sites|Site(s)]]
+
! {{#if:{{{groupcode|}}}|[[:category:groupcodes|Group Code]]|}}
| [[Name of community was::{{{site|}}}]]
+
| {{#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:program|Program]]
+
! [[:category:programs|Program]]
 
| [[Served in sector::{{{program|}}}]]
 
| [[Served in sector::{{{program|}}}]]
 
|-
 
|-
! [[:category:assignments|Assignment]]
+
! {{#if:{{{assignment01|}}}|[[:category:assignments|Assignment(s)]]|}}
| [[Primary assignment was::{{{assignment01|}}}]]
+
| {{#arraymap:{{{assignment01|}}}|,|x|[[Primary assignment was::x]]}}{{#arraymap:{{{assignment02|}}}|,|x|, [[Primary assignment was::x]]}}{{#arraymap:{{{assignment03|}}}|,|x|, [[Primary assignment was::x]]}}
 
|-
 
|-
! Other [[:category:Volunteers|Volunteers]] who served in [[{{{country}}}]]
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|Started service in [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|{{{yearservicestarted}}}]]
| {{#ask:[[Served in::{{{country}}}]]|format=list}}
+
|-
 +
! colspan="3"|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}
 +
|-
 +
! style="text-align: center; background-color:#ccccff;" 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:#ccccff;" 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:#ccccff;" 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:#ccccff;" colspan="3"|Other [[:Category:[[Served in::{{{country}}}]]_Volunteers|Volunteers]] who served in [[{{{country}}}]]
 +
|-
 +
! colspan="3"|{{#ask:[[Served in::{{{country}}}]]|format=list|limit=15}}
 
|}
 
|}
  
[[category:{{{country}}}_Volunteers]] [[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]] [[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}_{{{site}}}]] [[category:{{{site}}}]] [[category:{{{yearservicestarted}}}]] [[category:{{{site}}}_{{{yearservicestarted}}}]] [[Category:volunteers]] {{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
+
{{#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|}}}]]|}}
 +
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 +
[[Category:volunteers]]
 
</includeonly>
 
</includeonly>

Revision as of 02:32, 13 March 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=
|map= ("yes" to display; "no" leave field blank)
}}

Edit the page to see the template text.