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=
+
|site=                (Multiple site allowed)
+
|region=              (primary secondary region)
+
|region2=            (secondary region)
+
|country=            (primary country)
+
|country2=            (second country)
+
 
|firstname=
 
|firstname=
 
|lastname=
 
|lastname=
|state=
+
|country=
|uscity=
+
|yearservicestarted=
|affiliateorganization=
+
|yearserviceended=
|counterpartfirstname=
+
|site=
|counterpartlastname=
+
|program=
|communityfunds=
+
|assignment01=
|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:
 
 
{|
 
 
<pre>
 
{{Project
 
|projecttype= PCPP
 
|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=2006
 
|image=Small_cucumber_plants.jpg
 
}}
 
</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
 
|project=Peshkopi School Library Investment Project
 
|country=Albania
 
|firstname=J
 
|lastname=Slattengren
 
|state=Minnesota
 
|communityfunds=$2205.00
 
|projectnumber=304-007
 
|projectyear=2008
 
|flickr=<flickr>3520529070|center|m</flickr>
 
}}
 
 
|}
 
 
 
</noinclude><includeonly>
 
</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="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" |<big>{{PAGENAME}}</big>
<big>[[Project was named::{{PAGENAME}}]]</big>{{#if:{{{country|}}}|[[Image:Flag_of_{{{country}}}.svg‎|50px|none]]|}}<br>
+
{{#if:{{{flickr|}}}|{{{flickr}}}|}}{{#if:{{{image|}}}|[[Image:{{{image}}}|250px]]|}}<br>
+
{{#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:]]|}}
+
! [[:category:Volunteers|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]]}}
+
| [[Firstname::{{{firstname|}}}]] [[Lastname::{{{lastname|}}}]]
 
|-
 
|-
! {{#if:{{{region|}}}|[[Property:Name of region was|Region:]]|}}
+
! [[:category:countries|Country]]
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}} {{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}
+
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! {{#if:{{{country|}}}|[[Property:Project in|Country:]]|}}
+
! [[:category:countries|Years:]]
| {{#if:{{{country|}}}|[[Project in::{{{country|}}}]]|}}{{#if:{{{country2|}}}|,[[Project in::{{{country2|}}}]]|}}
+
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
|-
 
|-
! {{#if:{{{lastname|}}}|[[:category:volunteers|Volunteer's Name:]]|}}
+
! [[:category:sites|site(s)]]
| {{#arraymap:{{{firstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{lastname|}}}|,|x|[[Lastname::x]]}}
+
| [[Name of community was::{{{site|}}}]]
 
|-
 
|-
! {{#if:{{{state|}}}|[[Property:Is from state|Volunteer's Homestate:]]|}}
+
! [[:category:program|program]]
| {{#if:{{{state|}}}|[[Is from state::{{{state}}}]]|}}
+
| [[Served in sector::{{{program|}}}]]
 
|-
 
|-
! {{#if:{{{uscity|}}}|[[Property:Is from state|Volunteer's Home city:]]|}}
+
! [[:category:assignments|assignment]]
| {{#if:{{{uscity|}}}|[[Is from town or city::{{{uscity}}}]]|}}
+
| [[Primary assignment was::{{{assignment01|}}}]]
 
|-
 
|-
! {{#if:{{{counterpartlastname|}}}|[[Property:Lastname|Counterpart's Name:]]|}}
+
! Others who served in {{{country}}}
| {{#arraymap:{{{counterpartfirstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{counterpartlastname|}}}|,|x|[[Lastname::x]]}}
+
| {{#ask:[[Served in::{{{country}}}]]|format=list}}
|-
+
! {{#if:{{{affiliateorganization|}}}|[[Property:Affiliate organization was|Affiliate organization:]]|}}
+
| {{#arraymap:{{{affiliateorganization|}}}|,|x|[[Affiliate organization was::x]]}}
+
|-
+
! {{#if:{{{communityfunds|}}}|[[Property:Funds community contributed|Funds community contributed:]]|}}
+
| {{#arraymap:{{{communityfunds|}}}|,|x|[[Funds community contributed::x]]}}
+
|-
+
! {{#if:{{{communitypercentage|}}}|[[Property:Percentage community contributed|Percentage community contributed:]]|}}
+
| {{#arraymap:{{{communitypercentage|}}}|,|x|[[Percentage community contributed::x]]}}
+
|-
+
! {{#if:{{{neededfunds|}}}|[[Property:Funds needed were|Funds needed were:]]|}}
+
| {{#arraymap:{{{neededfunds|}}}|,|x|[[Funds needed were::x]]}}
+
|-
+
! {{#if:{{{requestedfunds|}}}|[[Property:Funds requested were|Funds requested were:]]}}
+
| {{#arraymap:{{{requestedfunds|}}}|,|x|[[Funds requested were::x]]}}
+
|-
+
! {{#if:{{{projectnumber|}}}|[[Property:Partnership project number was|PPCP #:]]|}}
+
| {{#arraymap:{{{projectnumber|}}}|,|x|[[Partnership project number was::x]]}}
+
|-
+
! {{#if:{{{projectyear|}}}|[[Property:Year of approval was|Year of project approval:]]|}}
+
| {{#if:{{{projectyear|}}}|[[Year of approval was::{{{projectyear}}}]]|}}
+
|-
+
! {{#if:{{{map|}}}|[[{{{country}}}_projects|Map:]]|}}
+
| {{#if:{{{map|}}}|{{Location2
+
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
+
}}|}}
+
|-
+
! 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:{{{projectyear|}}}|[[{{{projectyear}}}|Projects started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{projectyear}}} {{{projectyear}}}]|}}
+
|-
+
! 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"|Other [[:Category:[[Project in::{{{country}}}]]_projects|Projects]] in [[{{{country}}}]]
+
|-
+
! colspan="3"|{{#ask:[[Project in::{{{country}}}]]|format=list|limit=15}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{state|}}}|Other [[:Category:[[Project in::{{{country}}}]]_projects|Projects]] by [[Volunteers]] from [[:Category:{{{state}}}|{{{state}}}]]|}}
+
|-
+
! colspan="3"|{{#if:{{{state|}}}|{{#ask:[[Is from state::{{{state}}}]]|format=list|limit=15}}|}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projecttype|}}}|Other [[:Category:{{{projecttype}}}|{{{projecttype}}}]] [[Projects]] by [[Volunteers]]|}}
+
|-
+
! colspan="3"|{{#if:{{{projecttype|}}}|{{#ask:[[Project type was::{{{projecttype}}}]]|format=list|limit=10}}|}}
+
|-
+
! 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"| Mapped [[{{{country}}}_projects|Projects]] around [[{{{country}}}]]
+
|-
+
! colspan="3"|{{#compound_query:[[Category:{{{country}}}_projects]][[Location Coordinates::+]];?Location Coordinates;icon=Project.png‎|format=googlemap|width=350|height=400}}
+
 
|}
 
|}
 +
'''Info about {{PAGENAME}}'''
  
{{#if:{{{map|}}}|{{Location2
+
[[category:{{{country}}}_Volunteers]] [[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]] [[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}_{{{site}}}]] [[category:{{{site}}}]] [[category:{{{yearservicestarted}}}]] [[category:{{{site}}}_{{{yearservicestarted}}}]] [[Category:volunteers]] {{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
+
}}|}}
+
{{#if:{{{appropedia|}}}|{{Appropediaprojects}}|}}
+
 
+
'''Info about the [[Project was named::{{PAGENAME}}]]'''
+
[[category:projects]]
+
{{#if:{{{country|}}}|[[category:{{{country}}}_projects]]|}}
+
{{#if:{{{country2|}}}|[[category:{{{country2}}}_projects]]|}}
+
{{#if:{{{projectyear|}}}|[[category:{{{projectyear}}}]]|}}
+
{{#if:{{{site|}}}|[[category:{{{site}}}]]|}}
+
{{#if:{{{site2|}}}|[[category:{{{site2}}}]]|}}
+
{{#if:{{{site3|}}}|[[category:{{{site3}}}]]|}}
+
{{#if:{{{site4|}}}|[[category:{{{site4}}}]]|}}
+
{{#if:{{{affiliateorganization|}}}|[[category:{{{affiliateorganization}}}]]|}}
+
{{#if:{{{projecttype|}}}|[[category:{{{projecttype}}}]]|}}
+
{{#if:{{{state|}}}|[[category:{{{state}}}]]|}}
+
{{#if:{{{uscity|}}}|[[category:{{{uscity}}}]]|}}
+
 
+
 
</includeonly>
 
</includeonly>

Revision as of 23:33, 23 December 2008

This is the 'volunteerinfobox' template. It should be called in the following format:

{{volunteerinfobox
|firstname=
|lastname=
|country=
|yearservicestarted=
|yearserviceended=
|site=
|program=
|assignment01=
}}

Edit the page to see the template text.