Difference between revisions of "Template:Project"

From Peace Corps Wiki
Jump to: navigation, search
m (174 revisions)
 
(56 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{Project
+
{{Project            
|projecttype=  
+
|projecttype=         (PCPP, independent,)
 +
|projectsector=      (Education, Environment, Agriculture, ......) 
 +
|projectsector2=      (Education, Environment, Agriculture, ......) 
 
|site=                (Multiple site allowed)
 
|site=                (Multiple site allowed)
 
|region=              (primary secondary region)
 
|region=              (primary secondary region)
Line 10: Line 12:
 
|country=            (primary country)
 
|country=            (primary country)
 
|country2=            (second country)
 
|country2=            (second country)
|firstname=
+
|firstname=           (primary volunteer's first name) 
|lastname=
+
|lastname=           (primary volunteer's...)
|state=
+
|volblog(not required)= (primary volunteer's blog...)
|uscity=
+
|volemail(not req'd)= (primary volunteer's email...)
 +
|state=               (primary volunteer's ...)
 +
|uscity=             (primary volunteer's ....)         
 +
|firstname2=          (2nd volunteer's first name)
 +
|lastname2=          (2nd volunteer's .....)
 +
|state2=              (2nd volunteer's .....)
 +
|uscity2=            (2nd volunteer's......)
 +
|volblog2(not required)= (primary volunteer's blog...)
 +
|volemail2(not req'd)= (primary volunteer's email...)
 
|affiliateorganization=
 
|affiliateorganization=
 
|counterpartfirstname=
 
|counterpartfirstname=
 
|counterpartlastname=
 
|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)
 
|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)
 
|map=              ("yes" to display; "no" leave field blank)
 
|image=            (Header uploaded to wiki put "IMAGENAME.FORMAT"  example: "flower.jpg")
 
|image=            (Header uploaded to wiki put "IMAGENAME.FORMAT"  example: "flower.jpg")
 +
|Describe problem=
 +
|Describe project=
 +
|Upload photos=
 +
|Upload proposal=
 +
|Upload budget=
 
}}
 
}}
 
</pre>
 
</pre>
Line 41: Line 49:
 
{{Project
 
{{Project
 
|projecttype= PCPP
 
|projecttype= PCPP
 +
|projectsector= Education
 
|site=Peshkopi  
 
|site=Peshkopi  
 
|project=Peshkopi School Library Investment Project
 
|project=Peshkopi School Library Investment Project
Line 60: Line 69:
 
|
 
|
  
{{Project
+
<nowiki>{{Project
 
|projecttype= PCPP
 
|projecttype= PCPP
 +
|projectsector= Education
 
|site=Peshkopi  
 
|site=Peshkopi  
 
|project=Peshkopi School Library Investment Project
 
|project=Peshkopi School Library Investment Project
Line 73: Line 83:
 
|image=Small_cucumber_plants.jpg
 
|image=Small_cucumber_plants.jpg
 
}}
 
}}
 
+
</nowiki>
 
|}
 
|}
  
Line 84: Line 94:
 
{{Project
 
{{Project
 
|projecttype= Independent
 
|projecttype= Independent
 +
 
|site=Peshkopi  
 
|site=Peshkopi  
 
|project=Peshkopi School Library Investment Project
 
|project=Peshkopi School Library Investment Project
 +
|projectsector=education
 
|country=Albania
 
|country=Albania
 
|firstname=J
 
|firstname=J
Line 99: Line 111:
 
}}
 
}}
 
</pre>
 
</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" |<div align="right"><small>''[[Template:Project]] [[Add a Project|HELP]]''</small></div><br>
<big>[[Project was named::{{PAGENAME}}]]</big>{{#if:{{{country|}}}|[[Image:Flag_of_{{{country}}}.svg‎|50px|none]]|}}<br>
+
<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:{{{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:{{{projecttype|}}}|[[Property:Project type was|Project Type(s):]]|}}  
 +
{{#if:{{{projectsector|}}}|[[Property:Project sector was|Project Sector(s):]]|}}
 +
{{#if:{{{projectsector|}}}|[[Project sector was::{{{projectsector}}}]]|}}
 +
{{#if:{{{projectsector|}}}|[[Image:{{{projectsector}}}.gif|20px]]<br>|}}
 +
{{#if:{{{projectsector2|}}}| [[Project sector was::{{{projectsector2}}}]]|}}
 +
{{#if:{{{projectsector2|}}}|[[Image:{{{projectsector2}}}.gif|20px]]|}}
 
|-
 
|-
 
! {{#if:{{{site|}}}|[[Property:Name of community was|Community Name:]]|}}
 
! {{#if:{{{site|}}}|[[Property:Name of community was|Community Name:]]|}}
Line 132: Line 131:
 
|-
 
|-
 
! {{#if:{{{country|}}}|[[Property:Project in|Country:]]|}}
 
! {{#if:{{{country|}}}|[[Property:Project in|Country:]]|}}
| {{#if:{{{country|}}}|[[Project in::{{{country|}}}]]|}}{{#if:{{{country2|}}}|,[[Project in::{{{country2|}}}]]|}}
+
| {{#if:{{{country|}}}|[[Project in::{{{country|}}}]]|}}{{#if:{{{country2|}}}|, [[Project in::{{{country2|}}}]]|}}
 
|-
 
|-
! {{#if:{{{lastname|}}}|[[:category:volunteers|Volunteer's Name:]]|}}
+
! {{#if:{{{lastname|}}}|[[:category:volunteers|Volunteer(s) Name:]]|}}
| {{#arraymap:{{{firstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{lastname|}}}|,|x|[[Lastname::x]]}}
+
| {{#arraymap:{{{firstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{lastname|}}}|,|x|[[Lastname::x]]}}{{#if:{{{lastname2|}}}| , |}}{{#arraymap:{{{firstname2|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{lastname2|}}}|,|x|[[Lastname::x]]}}
 
|-
 
|-
! {{#if:{{{state|}}}|[[Property:Is from state|Volunteer's Homestate:]]|}}
+
! {{#if:{{{state|}}}|[[Property:Is from state|Volunteer(s) Homestate:]]|}}
| {{#if:{{{state|}}}|[[Is from state::{{{state}}}]]|}}
+
| {{#if:{{{state|}}}|[[Is from state::{{{state}}}]]|}}{{#if:{{{state2|}}}| , [[Is from state::{{{state2}}}]]|}}
 
|-
 
|-
! {{#if:{{{uscity|}}}|[[Property:Is from state|Volunteer's Home city:]]|}}
+
! {{#if:{{{uscity|}}}|[[Property:Is from state|Volunteer(s) Home city:]]|}}
| {{#if:{{{uscity|}}}|[[Is from town or city::{{{uscity}}}]]|}}
+
| {{#if:{{{uscity|}}}|[[Is from town or city::{{{uscity}}}]]|}}{{#if:{{{city2|}}}| and [[Is from state::{{{city2}}}]]|}}
 
|-
 
|-
 
! {{#if:{{{counterpartlastname|}}}|[[Property:Lastname|Counterpart's Name:]]|}}
 
! {{#if:{{{counterpartlastname|}}}|[[Property:Lastname|Counterpart's Name:]]|}}
Line 166: Line 165:
 
! {{#if:{{{projectyear|}}}|[[Property:Year of approval was|Year of project approval:]]|}}
 
! {{#if:{{{projectyear|}}}|[[Property:Year of approval was|Year of project approval:]]|}}
 
| {{#if:{{{projectyear|}}}|[[Year of approval was::{{{projectyear}}}]]|}}
 
| {{#if:{{{projectyear|}}}|[[Year of approval was::{{{projectyear}}}]]|}}
 +
|-
 +
! {{#if:{{{map|}}}|[[{{{country}}}_projects|Project located:]]|}}
 +
| {{#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>|}}
 
! 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}}}]|}}
+
! 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:{{{projectyear|}}}|{{#ask:[[Project in::{{{country}}}]][[Year of approval was::{{{projectyear}}}]]|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"|Other [[:Category:[[Project in::{{{country}}}]]_projects|Projects]] in [[{{{country}}}]]
+
! 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"|{{#ask:[[Project in::{{{country}}}]]|format=list|limit=15}}
 
! 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}}}]]|}}
+
! 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:{{{state|}}}|{{#ask:[[Is from state::{{{state}}}]]|format=list|limit=15}}|}}
 
! 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]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projecttype|}}}|Other [[:Category:{{{projecttype}}}|{{{projecttype}}}]] [[Projects]] by [[Volunteers]] [[:Category:{{{projecttype}}}|({{PAGESINCAT:{{{projecttype}}}}})]].|}}
 +
|-
 +
! colspan="3"|{{#if:{{{projecttype|}}}|{{#ask:[[Project type was::{{{projecttype}}}]]|format=list|limit=10}}|}}
 +
|-
 +
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projectsector|}}}|[[Image:{{{projectsector}}}.gif|30px]]|}}{{#if:{{{projectsector|}}}|Other [[:Category:{{{projectsector}}}|{{{projectsector}}}]] [[Projects]] by [[Volunteers]] [[:Category:{{{projectsector}}}|({{PAGESINCAT:{{{projectsector}}}}})]].|}}
 +
|-
 +
! colspan="3"|{{#if:{{{projectsector|}}}|{{#ask:[[Project sector was::{{{projectsector}}}]]|format=list|limit=10}}|}}
 +
|-
 +
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projectsector2|}}}|[[Image:{{{projectsector2}}}.gif|30px]]|}}{{#if:{{{projectsector2|}}}|Other [[:Category:{{{projectsector2}}}|{{{projectsector2}}}]] [[Projects]] by [[Volunteers]] [[:Category:{{{projectsector2}}}|({{PAGESINCAT:{{{projectsector2}}}}})]].|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{projecttype|}}}|{{#ask:[[Project type was::{{{projecttype}}}]]|format=list|limit=10}}|}}
+
! colspan="3"|{{#if:{{{projectsector2|}}}|{{#ask:[[Project sector was::{{{projectsector2}}}]]|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"|'''Don't see your Project, Add yours!''' {{#forminput:Project}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"| Mapped [[{{{country}}}_projects|Projects]] around [[{{{country}}}]]
+
! style="text-align: center; background-color:#ccccff;" colspan="3"| {{#if:{{{map|}}}Mapped [[{{{country}}}_projects|Projects]] around [[{{{country}}}]] [[:Category:{{{country}}} projects located|({{PAGESINCAT:{{{country}}}_projects_located}})]].|}}
 +
{{#if:{{{map|}}}|This project location is: {{Location2
 +
|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}}}_projects]][[Location Coordinates::+]];?Location Coordinates;icon=Project.png‎|format=openlayers|width=350|height=400}}|}}
 
|}
 
|}
  
{{#if:{{{map|}}}|{{Location2
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
 
}}|}}
 
 
{{#if:{{{appropedia|}}}|{{Appropediaprojects}}|}}
 
{{#if:{{{appropedia|}}}|{{Appropediaprojects}}|}}
  
Line 202: Line 212:
 
{{#if:{{{country2|}}}|[[category:{{{country2}}}_projects]]|}}
 
{{#if:{{{country2|}}}|[[category:{{{country2}}}_projects]]|}}
 
{{#if:{{{projectyear|}}}|[[category:{{{projectyear}}}]]|}}
 
{{#if:{{{projectyear|}}}|[[category:{{{projectyear}}}]]|}}
 +
{{#if:{{{projectyear|}}}|[[category:{{{country}}}_projects_{{{projectyear}}}]]|}}
 
{{#if:{{{site|}}}|[[category:{{{site}}}]]|}}
 
{{#if:{{{site|}}}|[[category:{{{site}}}]]|}}
 
{{#if:{{{site2|}}}|[[category:{{{site2}}}]]|}}
 
{{#if:{{{site2|}}}|[[category:{{{site2}}}]]|}}
Line 208: Line 219:
 
{{#if:{{{affiliateorganization|}}}|[[category:{{{affiliateorganization}}}]]|}}
 
{{#if:{{{affiliateorganization|}}}|[[category:{{{affiliateorganization}}}]]|}}
 
{{#if:{{{projecttype|}}}|[[category:{{{projecttype}}}]]|}}
 
{{#if:{{{projecttype|}}}|[[category:{{{projecttype}}}]]|}}
 +
{{#if:{{{projectsector|}}}|[[category:{{{projectsector}}}]]|}}
 +
{{#if:{{{projectsector2|}}}|[[category:{{{projectsector2}}}]]|}}
 
{{#if:{{{state|}}}|[[category:{{{state}}}]]|}}
 
{{#if:{{{state|}}}|[[category:{{{state}}}]]|}}
 +
{{#if:{{{state|}}}|[[category:{{{state}}} volunteer projects]]|}}
 
{{#if:{{{uscity|}}}|[[category:{{{uscity}}}]]|}}
 
{{#if:{{{uscity|}}}|[[category:{{{uscity}}}]]|}}
 
+
{{#if:{{{map|}}}|[[category:{{{country}}}_projects_located]]|}}
 +
{{#if:{{{map|}}}|[[category:projects_located]]|}}
 +
{{#if:{{{lastname|}}}|[[category:{{{lastname}}}]]|}}
 
</includeonly>
 
</includeonly>

Latest revision as of 14:38, 21 May 2014

This is the 'Project' template. The Project name is the title of the page. It should be called in the following format:

{{Project             
|projecttype=         (PCPP, independent,)
|projectsector=       (Education, Environment, Agriculture, ......)  
|projectsector2=       (Education, Environment, Agriculture, ......)  
|site=                (Multiple site allowed)
|region=              (primary secondary region)
|region2=             (secondary region)
|country=             (primary country)
|country2=            (second country)
|firstname=           (primary volunteer's first name)  
|lastname=            (primary volunteer's...) 
|volblog(not required)= (primary volunteer's blog...)
|volemail(not req'd)= (primary volunteer's email...)
|state=               (primary volunteer's ...) 
|uscity=              (primary volunteer's ....)          
|firstname2=          (2nd volunteer's first name) 
|lastname2=           (2nd volunteer's .....) 
|state2=              (2nd volunteer's .....) 
|uscity2=             (2nd volunteer's......) 
|volblog2(not required)= (primary volunteer's blog...)
|volemail2(not req'd)= (primary volunteer's email...)
|affiliateorganization=
|counterpartfirstname=
|counterpartlastname=
|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")
|Describe problem=
|Describe project=
|Upload photos=
|Upload proposal=
|Upload budget=
}}

Edit the page to see the template text.

Example 1:

{{Project
|projecttype= PCPP
|projectsector= Education
|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
}}

{{Project |projecttype= PCPP |projectsector= Education |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:

{{Project
|projecttype= Independent

|site=Peshkopi 
|project=Peshkopi School Library Investment Project
|projectsector=education
|country=Albania
|firstname=J
|lastname=Slattengren
|state=Minnesota
|uscity=
|communityfunds=$2205.00
|communitypercentage=
|communityfunds=
|requestedfunds=
|projectnumber=304-007
|projectyear=2008
}}