Difference between revisions of "Template:Volunteerinfobox"

From Peace Corps Wiki
Jump to: navigation, search
(Good edits, thanks for catching those errors.... link to the browse function into template on the year link.... as well as the preview of template.)
(...fixed years error)
Line 55: Line 55:
 
| [[Served in::{{{country|}}}]]
 
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}:]]
+
! [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]
 
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
|-
 
|-

Revision as of 18: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)
}}

Yields:


Template:Volunteerinfobox

{{#if:|Firstname::|}} {{#if:|Middlename::|}} {{#if:|Lastname::|}}{{#if:||}}

{{#if:|
{{{flickr}}}|}}{{#if:|
[[Image:{{{image}}}|250px]]|}}

[[:category:|Country]] Served in::
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:|,|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::|}}{{#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:: |}} {{#if:|started in [[]] [1]|}}
{{#if:|{{#ask:Served in::Started service in::|format=list|limit=15}}|}}
{{#if:|Region: [[]]|}}
{{#if:|{{#ask:Served in::Name of region was::|format=list|limit=15}}|}}
{{#if:|Region: [[]]|}}
{{#if:|{{#ask:Served in::Name of region was::|format=list|limit=15}}|}}
{{#if:|[[Property:Served in sector|]] in [[:Category:_|]]: |}}{{#ifexist:|25px|}}
{{#if:|{{#ask:Served in sector::Served in::|format=list|limit=10}}|}}
{{#if:|{{{program2}}} in [[:Category:_{{{program2}}}|]]: |}}{{#ifexist:|[[Image:{{{program2}}}.gif|25px]]|}}
{{#if:|{{#ask:[[Served in sector::{{{program2}}}]]Served in::|format=list|limit=10}}|}}
Other Volunteers who served in [[]]{{#if:|:|}}
{{#ask:Served in::|format=list|limit=15}}
Projects in [[]]{{#if:|:|}}
{{#ask:Project in::|format=list}}
Don't see yourself, Add yourself or a friend!

Enter your first and last name{{#forminput:Volunteer}}

{{#if:("yes" to display; "no" leave field blank)|Mapped Volunteers around [[]] (0).|}}

{{#if:("yes" to display; "no" leave field blank)|You located yourself at based on your site: [[]] {{#if:{{#geocode:,}}|[[Location Coordinates::{{#geocode:,}}]]}} }}

{{#if:("yes" to display; "no" leave field blank)|{{#compound_query:Location Coordinates::+;?Location Coordinates;icon=Vol.PNG‎|format=openlayers height=400}}|}}

{{#if:||}} {{#if:||}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:("yes" to display; "no" leave field blank)||}} {{#if:("yes" to display; "no" leave field blank)||}} {{#if:|[[category:]]|}} {{#if:|[[category:_]]|}} {{#if:|[[category:_{{{program2}}}]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:{{{program2}}}]]|}} {{#if:|[[category:_]]|}} {{#if:|[[category:_]]|}} {{#if:|[[category:_]]|}} {{#if:|[[category:_{{{assignment04}}}]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:{{{assignment04}}}]]|}}


Edit the page to see the template text.