Difference between revisions of "Template:Volunteerinfobox"

From Peace Corps Wiki
Jump to: navigation, search
(allowing for 3 sites/regions, fixing spacing, calling site category, fixing link to Years)
Line 13: Line 13:
 
|site=
 
|site=
 
|site2=
 
|site2=
 +
|site3=
 
|region=
 
|region=
 
|region2=
 
|region2=
 +
|region3=
 
|program=
 
|program=
 
|assignment01=
 
|assignment01=
Line 30: Line 32:
 
| [[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|}}}]]
 
|-
 
|-
Line 37: Line 39:
 
|-
 
|-
 
! {{#if:{{{site|}}}|[[:category:sites|Site(s)]]|}}
 
! {{#if:{{{site|}}}|[[:category:sites|Site(s)]]|}}
| {{#arraymap:{{{site|}}}|,|x|[[Name of community was::x]]}} {{#arraymap:{{{site2|}}}|,|x|and [[Name of community was::x]]}}
+
| {{#arraymap:{{{site|}}}|,|x|[[Test Name of Community Was::x]]}}{{#arraymap:{{{site2|}}}|,|x|, [[Test Name of Community Was::x]]}}{{#arraymap:{{{site3|}}}|,|x|, [[Test Name of Community Was::x]]}}
 
|-
 
|-
 
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
 
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}} {{#arraymap:{{{region2|}}}|,|x|and [[Name of region was::x]]}}
+
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}} {{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}{{#arraymap:{{{region2|}}}|,|x|and [[Name of region was::x]]}}
 
|-
 
|-
 
! [[:category:programs|Program]]
 
! [[:category:programs|Program]]
 
| [[Served in sector::{{{program|}}}]]
 
| [[Served in sector::{{{program|}}}]]
 
|-
 
|-
! {{#if:{{{assignment01|}}}|[[:category:assignments|Assignment]]|}}
+
! {{#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]]}}
+
| {{#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"|Started service in [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|{{{yearservicestarted}}}]]
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|Started service in [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|{{{yearservicestarted}}}]]
Line 75: Line 77:
 
[[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]]  
 
[[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]]  
 
[[category:{{{yearservicestarted}}}]]  
 
[[category:{{{yearservicestarted}}}]]  
{{#if:{{{site|}}}[[category:{{{site}}}]]}}  
+
{{#if:{{{site|}}}|[[category:{{{site}}}]]}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
 
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}

Revision as of 02:00, 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.