Difference between pages "Linsey McGrath" and "Template:Volunteerinfobox"

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
m (added volunteerinfobox)
 
(allowing for 3 sites/regions, fixing spacing, calling site category, fixing link to Years)
 
Line 1: Line 1:
 +
<noinclude>
 +
This is the 'volunteerinfobox' template.
 +
It should be called in the following format:
 +
<pre>
 
{{volunteerinfobox
 
{{volunteerinfobox
|firstname=Linsey
+
|firstname=
|lastname=McGrath
+
|middlename=
|country=Namibia
+
|lastname=
|region=Kunene
+
|country=
|program=HIV/AIDS
+
|yearservicestarted=
|yearservicestarted=2004
+
|yearserviceended=
|yearserviceended=2006
+
|groupcode=
 +
|site=
 +
|site2=
 +
|site3=
 +
|region=
 +
|region2=
 +
|region3=
 +
|program=
 +
|assignment01=
 +
|assignment02=
 +
|assignment03=
 +
|map= ("yes" to display; "no" leave field blank)
 
}}
 
}}
 +
</pre>
 +
Edit the page to see the template text.
 +
</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="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{PAGENAME}}</big>
 +
|-
 +
! [[:category:{{{country}}}|Country]]
 +
| [[Served in::{{{country|}}}]]
 +
|-
 +
! [[:category:Years|Years:]]
 +
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 +
|-
 +
! {{#if:{{{groupcode|}}}|[[:category:groupcodes|Group Code]]|}}
 +
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
 +
|-
 +
! {{#if:{{{site|}}}|[[:category:sites|Site(s)]]|}}
 +
| {{#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)]]|}}
 +
| {{#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]]
 +
| [[Served in sector::{{{program|}}}]]
 +
|-
 +
! {{#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]]}}
 +
|-
 +
! style="text-align: center; background-color:#ccccff;" colspan="3"|Started service in [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|{{{yearservicestarted}}}]]
 +
|-
 +
! 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}}
 +
|}
  
HIV/AIDS: Kunene Region<br>
+
{{#if:{{{map|}}}|{{Location
2004-2006
+
|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>

Revision as of 01: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.