Difference between pages "Template:Project" and "Template:Volunteerinfobox"

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'Project' template. The Project name is the title of the page.
+
This is the 'volunteerinfobox' template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{Project           
+
{{volunteerinfobox
|projecttype=        (PCPP, independent,)
 
|projectsector=      (Education, Environment, Agriculture, ......) 
 
|site=                (Multiple site allowed)
 
|region=              (primary secondary region)
 
|region2=            (secondary region)
 
|country=            (primary country)
 
|country2=            (second country)
 
 
|firstname=
 
|firstname=
 +
|middlename=
 
|lastname=
 
|lastname=
 +
|country=
 +
|yearservicestarted=
 +
|yearserviceended=
 +
|groupcode=
 +
|site=
 +
|site2=
 +
|site3=
 +
|region=
 +
|region2=
 +
|region3=
 +
|program=
 +
|program2=
 +
|assignment01=
 +
|assignment02=
 +
|assignment03=
 +
|assignment04=
 
|state=
 
|state=
 
|uscity=
 
|uscity=
|affiliateorganization=
+
|map= ("yes" to display; "no" leave field blank)
|counterpartfirstname=
 
|counterpartlastname=
 
|communityfunds=
 
|communitypercentage=
 
|requestedfunds=
 
|neededfunds=
 
|projectnumber=
 
|projectyear=
 
|appropedia=
 
|flickr=            (put this "<flickr>YOURPHOTONUMBER|center|m</flickr>" with your flickr photo# display at the top of the project box)
 
|map=               ("yes" to display; "no" leave field blank)
 
|image=            (Header uploaded to wiki put "IMAGENAME.FORMAT"  example: "flower.jpg")
 
 
}}
 
}}
 
</pre>
 
</pre>
 +
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
[[Category:templates infoboxes]]
 
[[Category:templates projects]]
 
 
Example 1:
 
  
 
{|
 
{|
 
+
| colspan="2" align="center" | '''<big>EXAMPLE:</big>'''
<pre>
+
|-
{{Project
+
|
|projecttype= PCPP
+
<pre>{{volunteerinfobox
|site=Peshkopi
+
|firstname= Joe
|project=Peshkopi School Library Investment Project
+
|middlename=
|country=Albania
+
|lastname= Peaceman
|firstname=J
+
|country= Armenia
|lastname=Slattengren
+
|yearservicestarted= 2008
|state=Minnesota
+
|yearserviceended= 2010
|uscity=
+
|groupcode= A-17
|communityfunds=$2205.00
+
|site= Jermuk
|communitypercentage=
+
|site2=
|communityfunds=
+
|site3= Vyke
|requestedfunds=
+
|region= Vayots Dzor
|projectnumber=304-007
+
|region2=  
|projectyear=2006
+
|region3=
|image=Small_cucumber_plants.jpg
+
|program= Environment
 +
|assignment01=
 +
|assignment02=
 +
|assignment03=
 +
|map= yes
 +
|state=Virginia
 +
|uscity=Richmond
 
}}
 
}}
 
</pre>
 
</pre>
 +
  
 
|
 
|
  
{{Project
 
|projecttype= PCPP
 
|site=Peshkopi
 
|project=Peshkopi School Library Investment Project
 
|country=Albania
 
|firstname=J
 
|lastname=Slattengren
 
|state=Minnesota
 
|communityfunds=$2205.00
 
|projectnumber=304-007
 
|projectyear=2006
 
|image=Small_cucumber_plants.jpg
 
}}
 
  
|}
 
  
  
Example 2:
 
  
{|
 
  
<pre>
 
{{Project
 
|projecttype= Independent
 
|site=Peshkopi
 
|project=Peshkopi School Library Investment Project
 
|country=Albania
 
|firstname=J
 
|lastname=Slattengren
 
|state=Minnesota
 
|uscity=
 
|communityfunds=$2205.00
 
|communitypercentage=
 
|communityfunds=
 
|requestedfunds=
 
|projectnumber=304-007
 
|projectyear=2008
 
}}
 
</pre>
 
  
|
 
  
{{Project
+
 
|projecttype= Independent
+
 
|site=Peshkopi
+
{{volunteerinfobox
|project=Peshkopi School Library Investment Project
+
|firstname= Example
|country=Albania
+
|middlename=
|firstname=J
+
|lastname= Example
|lastname=Slattengren
+
|country= Armenia
|state=Minnesota
+
|yearservicestarted=
|communityfunds=$2205.00
+
|yearserviceended=
|projectnumber=304-007
+
|groupcode= A-17
|projectyear=2008
+
|site= Jermuk
|flickr=<flickr>3520529070|center|m</flickr>
+
|site2=
 +
|site3= Vyke
 +
|region= Vayots Dzor
 +
|region2=  
 +
|region3=
 +
|program= Environment
 +
|assignment01=
 +
|assignment02=
 +
|assignment03=
 +
|map= yes
 +
|state=Virginia
 +
|uscity=Richmond
 
}}
 
}}
 +
|}
  
|}
+
[[Category:templates]]
 +
[[Category:templates infoboxes]]
 +
[[Category:templates countries]]
 +
</noinclude>
  
</noinclude><includeonly>
+
<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="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" |<div align="right"><small>''[[Template:Project]]''</small></div><br>
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |<div align="right"><small>''[[Template:Volunteerinfobox]]''</small></div><br>
<big>[[Project was named::{{PAGENAME}}]]</big>{{#if:{{{country|}}}|[[Image:Flag_of_{{{country}}}.svg‎|50px|none]]|}}<br>
+
<big>{{#if:{{{firstname|}}}|'''[[Firstname::{{{firstname}}}]]|}} {{#if:{{{middlename|}}}|[[Middlename::{{{middlename}}}]]|}} {{#if:{{{lastname|}}}|[[Lastname::{{{lastname}}}]]'''|}}</big>{{#if:{{{country|}}}|[[Image:Flag_of_{{{country}}}.svg‎|50px|none]]|}}
{{#if:{{{flickr|}}}|{{{flickr}}}|}}{{#if:{{{image|}}}|[[Image:{{{image}}}|250px]]|}}<br>
+
{{#if:{{{flickr|}}}|<br>{{{flickr}}}|}}{{#if:{{{image|}}}|<br>[[Image:{{{image}}}|250px]]|}}
{{#if:{{{projecttype|}}}|[[Property:Project type was|Project Type(s):]]|}} {{#arraymap:{{{projecttype|}}}|,|x|[[Project type was::x]]}}
 
|-
 
! {{#if:{{{site|}}}|[[Property:Name of community was|Community Name:]]|}}
 
| {{#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:{{{site4|}}}|,|x|, [[Name of community was::x]]}}
 
|-
 
! {{#if:{{{region|}}}|[[Property:Name of region was|Region:]]|}}
 
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}} {{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}
 
 
|-
 
|-
! {{#if:{{{country|}}}|[[Property:Project in|Country:]]|}}
+
! [[:category:{{{country}}}|Country]]
| {{#if:{{{country|}}}|[[Project in::{{{country|}}}]]|}}{{#if:{{{country2|}}}|,[[Project in::{{{country2|}}}]]|}}
+
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! {{#if:{{{lastname|}}}|[[:category:volunteers|Volunteer's Name:]]|}}
+
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_volunteers_{{{yearservicestarted}}}|Years:]]|}}
| {{#arraymap:{{{firstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{lastname|}}}|,|x|[[Lastname::x]]}}
+
| {{#if:{{{yearservicestarted|}}}|[[Started service in::{{{yearservicestarted}}}]]|}}{{#if:{{{yearserviceended|}}}|-|}}{{#if:{{{yearserviceended|}}}|[[Ended service in::{{{yearserviceended}}}]]|}}
 
|-
 
|-
! {{#if:{{{state|}}}|[[Property:Is from state|Volunteer's Homestate:]]|}}
+
! {{#if:{{{groupcode|}}}|[[Property:Group code was|Group Code]]|}}
| {{#if:{{{state|}}}|[[Is from state::{{{state}}}]]|}}
+
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
 
|-
 
|-
! {{#if:{{{uscity|}}}|[[Property:Is from state|Volunteer's Home city:]]|}}
+
! {{#if:{{{site|}}}|[[Property:Name of community was|Site(s)]]|}}
| {{#if:{{{uscity|}}}|[[Is from town or city::{{{uscity}}}]]|}}
+
| {{#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:{{{counterpartlastname|}}}|[[Property:Lastname|Counterpart's Name:]]|}}
+
! {{#if:{{{region|}}}|[[Property:Name of region was|Region(s)]]|}}
| {{#arraymap:{{{counterpartfirstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{counterpartlastname|}}}|,|x|[[Lastname::x]]}}
+
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}{{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}{{#arraymap:{{{region3|}}}|,|x|,[[Name of region was::x]]}}
 
|-
 
|-
! {{#if:{{{affiliateorganization|}}}|[[Property:Affiliate organization was|Affiliate organization:]]|}}
+
! {{#if:{{{program|}}}|[[Property:Served in sector|Program(s)]]|}}
| {{#arraymap:{{{affiliateorganization|}}}|,|x|[[Affiliate organization was::x]]}}
+
| {{#if:{{{program|}}}|[[Served in sector::{{{program}}}]]|}}{{#if:{{{program2|}}}|,[[Served in sector::{{{program2}}}]]|}}{{#if:{{{program3|}}}|,[[Served in sector::{{{program3}}}]]|}}
 
|-
 
|-
! {{#if:{{{communityfunds|}}}|[[Property:Funds community contributed|Funds community contributed:]]|}}
+
! {{#if:{{{assignment01|}}}|[[Property:Primary assignment was|Assignment(s)]]|}}
| {{#arraymap:{{{communityfunds|}}}|,|x|[[Funds community contributed::x]]}}
+
| {{#if:{{{assignment01|}}}|[[Primary assignment was::{{{assignment01}}}]]|}}{{#if:{{{assignment02|}}}|,[[Primary assignment was::{{{assignment02}}}]]|}}{{#if:{{{assignment03|}}}|,[[Primary assignment was::{{{assignment03}}}]]|}}
 
|-
 
|-
! {{#if:{{{communitypercentage|}}}|[[Property:Percentage community contributed|Percentage community contributed:]]|}}
+
! {{#if:{{{state|}}}|[[Property:Is from state|From US state]]|}}
| {{#arraymap:{{{communitypercentage|}}}|,|x|[[Percentage community contributed::x]]}}
+
| {{#arraymap:{{{state|}}}|,|x|[[Is from state::x]]}}
 
|-
 
|-
! {{#if:{{{neededfunds|}}}|[[Property:Funds needed were|Funds needed were:]]|}}
+
! {{#if:{{{uscity|}}}|[[Property:Is from town or city|From US town/city]]|}}
| {{#arraymap:{{{neededfunds|}}}|,|x|[[Funds needed were::x]]}}
+
| {{#arraymap:{{{uscity|}}}|,|x|[[Is from town or city::x]]}}
 
|-
 
|-
! {{#if:{{{requestedfunds|}}}|[[Property:Funds requested were|Funds requested were:]]}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{yearservicestarted|}}}|[[Volunteer name was::{{{firstname}}} {{{lastname}}}]]|}} {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_volunteers_{{{yearservicestarted}}}|started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]|}}
| {{#arraymap:{{{requestedfunds|}}}|,|x|[[Funds requested were::x]]}}
 
 
|-
 
|-
! {{#if:{{{projectnumber|}}}|[[Property:Partnership project number was|PPCP #:]]|}}
+
! colspan="3"|{{#if:{{{yearservicestarted|}}}|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}|}}
| {{#arraymap:{{{projectnumber|}}}|,|x|[[Partnership project number was::x]]}}
 
 
|-
 
|-
! {{#if:{{{projectyear|}}}|[[Property:Year of approval was|Year of project approval:]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|[[Property:Name of region was|Region]]: [[{{{region}}}]]|}}
| {{#if:{{{projectyear|}}}|[[Year of approval was::{{{projectyear}}}]]|}}
 
 
|-
 
|-
! {{#if:{{{map|}}}|[[{{{country}}}_projects|Project located:]]|}}
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#if:{{{map|}}}|yes|}}
 
 
|-
 
|-
! colspan="3" | {{#ifeq: {{{projectyear}}}{{{projecttype}}}|2008PCPP|<center><span class="plainlinks">[https://www.peacecorps.gov/index.cfm?shell=resources.donors.contribute.projDetail&projdesc={{#arraymap:{{{projectnumber|}}}|,|x|[[Partnership project number was::x]]}} http://www.peacecorpswiki.org/images/Donatebutton.JPG]</span></center>|}}{{#ifeq: {{{projectyear}}}{{{projecttype}}}|2009PCPP|<center><span class="plainlinks">[https://www.peacecorps.gov/index.cfm?shell=resources.donors.contribute.projDetail&projdesc={{#arraymap:{{{projectnumber|}}}|,|x|[[Partnership project number was::x]]}} http://www.peacecorpswiki.org/images/Donatebutton.JPG]</span></center>|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region2|}}}|[[Property:Name of region was|Region]]: [[{{{region2}}}]]|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projectyear|}}}|[[{{{projectyear}}}|Projects started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{projectyear}}} {{{projectyear}}}] [[:Category:{{{country}}}_projects_{{{projectyear}}}|({{PAGESINCAT:{{{country}}}_projects_{{{projectyear}}}}})]].|}}
+
! colspan="3"|{{#if:{{{region2|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region2}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{projectyear|}}}|{{#ask:[[Project in::{{{country}}}]][[Year of approval was::{{{projectyear}}}]]|format=list|limit=15}}|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"| {{#if:{{{program|}}}|[[Property:Served in sector|{{{program}}}]] in [[:Category:{{{country}}}_{{lcfirst:{{{program}}}}}|{{{country}}}]]: |}}{{#ifexist:{{{program|}}}|[[Image:{{{program}}}.gif|25px]]|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{country|}}}|[[Image:Flag_of_{{{country}}}.svg‎|30px|none]]|}}Other [[:Category:[[Project in::{{{country}}}]]_projects|Projects]] in [[{{{country}}}]] [[:Category:{{{country}}}_projects|({{PAGESINCAT:{{{country}}}_projects}})]].
+
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in sector::{{{program}}}]][[Served in::{{{country}}}]]|format=list|limit=10}}|}}
 
|-
 
|-
! colspan="3"|{{#ask:[[Project in::{{{country}}}]]|format=list|limit=15}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{program2|}}}|[[Property:Served in sector|{{{program2}}}]] in [[:Category:{{{country}}}_{{{program2}}}|{{{country}}}]]: |}}{{#ifexist:{{{program2|}}}|[[Image:{{{program2}}}.gif|25px]]|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{state|}}}|[[Image:State_Flag_of_{{{state}}}.svg|30px]]|}}{{#if:{{{state|}}}|Other [[:Category:[[Project in::{{{country}}}]]_projects|Projects]] by [[Volunteers]] from [[:Category:{{{state}}}|{{{state}}}]]|}} [[:Category:{{{state}}} volunteer projects|({{PAGESINCAT:{{{state}}} volunteer projects}})]].
+
! colspan="3"|{{#if:{{{program2|}}}|{{#ask:[[Served in sector::{{{program2}}}]][[Served in::{{{country}}}]]|format=list|limit=10}}|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{state|}}}|{{#ask:[[Is from state::{{{state}}}]]|format=list|limit=15}}|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|Other [[:Category:{{{country}}}_volunteers|Volunteers]] who served in [[{{{country}}}]]{{#if:{{{country|}}}|:[[Image:Flag_of_{{{country}}}.svg‎|20px|none]]|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projecttype|}}}|Other [[:Category:{{{projecttype}}}|{{{projecttype}}}]] [[projects]] by [[volunteers]] [[:Category:{{{projecttype}}}|({{PAGESINCAT:{{{projecttype}}}}})]].|}}
+
! colspan="3"|{{#ask:[[Served in::{{{country}}}]]|format=list|limit=15}}
 
|-
 
|-
! colspan="3"|{{#if:{{{projecttype|}}}|{{#ask:[[Project type was::{{{projecttype}}}]]|format=list|limit=10}}|}}  
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|[[:Category:{{{country}}}_projects|Projects]] in [[{{{country}}}]]{{#if:{{{country|}}}|:[[Image:Flag_of_{{{country}}}.svg‎|20px|none]]|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projectsector|}}}|Other [[:Category:{{{projectsector}}}|{{{projectsector}}}]] [[projects]] by [[volunteers]] [[:Category:{{{projecttype}}}|({{PAGESINCAT:{{{projectsector}}}}})]].|}}
+
! colspan="3"|{{#ask:[[Project in::{{{country}}}]];|format=list}}
 
|-
 
|-
! colspan="3"|{{#if:{{{projectsector|}}}|{{#ask:[[Project type was::{{{projectsector}}}]]|format=list|limit=10}}|}}  
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|'''Don't see yourself, Add yourself or a friend!'''
 +
<small>''Enter your '''first''' and '''last name'''''</small>{{#forminput:Volunteer}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|'''Don't see your Project, Add yours!''' {{#forminput:Project}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"| {{#if:{{{map|}}}|Mapped [[Volunteers who served in {{{country}}}|Volunteers]] around [[{{{country}}}]] [[:Category:{{{country}}} volunteers located|({{PAGESINCAT:{{{country}}}_volunteers_located}})]].|}}
|-
+
{{#if:{{{map|}}}|You located yourself at based on your site: [[{{{site|}}}]]
! style="text-align: center; background-color:#ccccff;" colspan="3"| Mapped [[{{{country}}}_projects|Projects]] around [[{{{country}}}]] [[:Category:{{{country}}} projects located|({{PAGESINCAT:{{{country}}}_projects_located}})]].  
+
<small>{{Location2
{{#if:{{{map|}}}|This project location is: {{Location2
+
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}</small>
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}
 
 
}}
 
}}
 
|-
 
|-
! colspan="3"|{{#compound_query:[[Category:{{{country}}}_projects]][[Location Coordinates::+]];?Location Coordinates;icon=Project.png‎|format=googlemap|width=350|height=400}}
+
<--!
 +
! colspan="3"|{{#if:{{{map|}}}|{{#compound_query:[[Category:{{{country}}}_volunteers]][[Location Coordinates::+]];?Location Coordinates;icon=Vol.PNG‎|format=googlemap|width=350|height=400}}|}}
 
|}
 
|}
 
+
-->
{{#if:{{{appropedia|}}}|{{Appropediaprojects}}|}}
+
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers]]|}}
 
+
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers_{{{yearservicestarted}}}]]|}}
'''Info about the [[Project was named::{{PAGENAME}}]]'''
+
{{#if:{{{yearservicestarted|}}}|[[category:{{{yearservicestarted}}}]]|}}
[[category:projects]]
+
{{#if:{{{site|}}}|[[category:{{{site|}}}]]|}}
{{#if:{{{country|}}}|[[category:{{{country}}}_projects]]|}}
+
{{#if:{{{site2|}}}|[[category:{{{site2|}}}]]|}}
{{#if:{{{country2|}}}|[[category:{{{country2}}}_projects]]|}}
+
{{#if:{{{site3|}}}|[[category:{{{site3|}}}]]|}}
{{#if:{{{projectyear|}}}|[[category:{{{projectyear}}}]]|}}
+
{{#if:{{{site4|}}}|[[category:{{{site4|}}}]]|}}  
{{#if:{{{projectyear|}}}|[[category:{{{country}}}_projects_{{{projectyear}}}]]|}}
+
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
{{#if:{{{site|}}}|[[category:{{{site}}}]]|}}
+
{{#if:{{{region2|}}}|[[category:{{{region2|}}}]]|}}
{{#if:{{{site2|}}}|[[category:{{{site2}}}]]|}}
+
{{#if:{{{map|}}}|[[category:{{{country}}}_volunteers_located]]|}}
{{#if:{{{site3|}}}|[[category:{{{site3}}}]]|}}
+
{{#if:{{{map|}}}|[[category:volunteers located]]|}}
{{#if:{{{site4|}}}|[[category:{{{site4}}}]]|}}
+
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
{{#if:{{{affiliateorganization|}}}|[[category:{{{affiliateorganization}}}]]|}}
+
{{#if:{{{program|}}}|[[category:{{{country}}}_{{lc:{{{program}}}}}]]|}}
{{#if:{{{projecttype|}}}|[[category:{{{projecttype}}}]]|}}
+
{{#if:{{{program2|}}}|[[category:{{{country}}}_{{lc:{{{program2}}}}}]]|}}
{{#if:{{{projectsector|}}}|[[category:{{{projectsector}}}]]|}}
+
{{#if:{{{program|}}}|[[category:{{{program}}}]]|}}
{{#if:{{{state|}}}|[[category:{{{state}}}]]|}}
+
{{#if:{{{program2|}}}|[[category:{{{program2}}}]]|}}
{{#if:{{{state|}}}|[[category:{{{state}}} volunteer projects]]|}}
+
{{#if:{{{assignment01|}}}|[[category:{{{country}}}_{{lc:{{{assignment01}}}}}]]|}}
{{#if:{{{uscity|}}}|[[category:{{{uscity}}}]]|}}
+
{{#if:{{{assignment02|}}}|[[category:{{{country}}}_{{lc:{{{assignment02}}}}}]]|}}
{{#if:{{{map|}}}|[[category:{{{country}}}_projects_located]]|}}
+
{{#if:{{{assignment03|}}}|[[category:{{{country}}}_{{lc:{{{assignment03}}}}}]]|}}
{{#if:{{{map|}}}|[[category:projects_located]]|}}
+
{{#if:{{{assignment04|}}}|[[category:{{{country}}}_{{lc:{{{assignment04}}}}}]]|}}
 
+
{{#if:{{{assignment01|}}}|[[category:{{{assignment01}}}]]|}}
 +
{{#if:{{{assignment02|}}}|[[category:{{{assignment02}}}]]|}}
 +
{{#if:{{{assignment03|}}}|[[category:{{{assignment03}}}]]|}}
 +
{{#if:{{{assignment04|}}}|[[category:{{{assignment04}}}]]|}}
 +
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 +
[[Category:volunteers]]
 
</includeonly>
 
</includeonly>

Revision as of 20:06, 10 September 2010

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=
|program2=
|assignment01=
|assignment02=
|assignment03=
|assignment04=
|state=
|uscity=
|map= ("yes" to display; "no" leave field blank)
}}

Edit the page to see the template text.

EXAMPLE:
{{volunteerinfobox
|firstname= Joe
|middlename=
|lastname= Peaceman
|country= Armenia
|yearservicestarted= 2008
|yearserviceended= 2010
|groupcode= A-17
|site= Jermuk
|site2=
|site3= Vyke
|region= Vayots Dzor
|region2= 
|region3=
|program= Environment
|assignment01=
|assignment02=
|assignment03=
|map= yes
|state=Virginia
|uscity=Richmond
}}








Template:Volunteerinfobox

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

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

Country Served in::Armenia
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:Vyke|,|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::Environment|}}{{#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::Example Example|}} {{#if:|started in Armenia [1]|}}
{{#if:|{{#ask:Served in::ArmeniaStarted service in::|format=list|limit=15}}|}}
{{#if:Vayots Dzor|Region: Vayots Dzor|}}
{{#if:Vayots Dzor|{{#ask:Served in::ArmeniaName of region was::Vayots Dzor|format=list|limit=15}}|}}
{{#if:|Region: [[]]|}}
{{#if:|{{#ask:Served in::ArmeniaName of region was::|format=list|limit=15}}|}}
{{#if:Environment|Environment in Armenia: |}}{{#ifexist:Environment|25px|}}
{{#if:Environment|{{#ask:Served in sector::EnvironmentServed in::Armenia|format=list|limit=10}}|}}
{{#if:|{{{program2}}} in [[:Category:Armenia_{{{program2}}}|Armenia]]: |}}{{#ifexist:|[[Image:{{{program2}}}.gif|25px]]|}}
{{#if:|{{#ask:[[Served in sector::{{{program2}}}]]Served in::Armenia|format=list|limit=10}}|}}
Other Volunteers who served in Armenia{{#if:Armenia|:|}}
{{#ask:Served in::Armenia|format=list|limit=15}}
Projects in Armenia{{#if:Armenia|:|}}
{{#ask:Project in::Armenia|format=list}}
Don't see yourself, Add yourself or a friend!

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

{{#if:yes|Mapped Volunteers around Armenia (0).|}}

{{#if:yes|You located yourself at based on your site: Jermuk {{#if:{{#geocode:Jermuk,Armenia}}|[[Location Coordinates::{{#geocode:Jermuk,Armenia}}]]}} }}

{{#if:yes|{{#compound_query:Location Coordinates::+;?Location Coordinates;icon=Vol.PNG‎|format=openlayers height=400}}|}}

{{#if:||}} {{#if:||}} {{#if:|[[category:]]|}} {{#if:Jermuk||}} {{#if:|[[category:]]|}} {{#if:Vyke||}} {{#if:|[[category:]]|}} {{#if:Vayots Dzor||}} {{#if:|[[category:]]|}} {{#if:yes||}} {{#if:yes||}} {{#if:A-17||}} {{#if:Environment||}} {{#if:|[[category:Armenia_{{{program2}}}]]|}} {{#if:Environment||}} {{#if:|[[category:{{{program2}}}]]|}} {{#if:||}} {{#if:||}} {{#if:||}} {{#if:|[[category:Armenia_{{{assignment04}}}]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:{{{assignment04}}}]]|}}