Difference between revisions of "Template:Volunteerinfobox"

From Peace Corps Wiki
Jump to: navigation, search
(Changed "Test Name of Community Was" property back to "Name of Community Was")
(...fixed years error)
(2 intermediate revisions by 2 users not shown)
Line 24: Line 24:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
Yields:
 +
{{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.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
Line 32: Line 55:
 
| [[Served in::{{{country|}}}]]
 
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! [[:category:Years|Years:]]
+
! [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]
 
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
|-
 
|-
Line 39: Line 62:
 
|-
 
|-
 
! {{#if:{{{site|}}}|[[:category:sites|Site(s)]]|}}
 
! {{#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]]}}
+
| {{#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)]]|}}
 
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
Line 50: Line 73:
 
| {{#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 [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]
 
|-
 
|-
 
! colspan="3"|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}
 
! colspan="3"|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}

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 [[]] (482).|}}

{{#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.