Difference between revisions of "Template:Project"

From Peace Corps Wiki
Jump to: navigation, search
m (Reverted edits by Willbot (Talk) to last revision by Briannewhouse)
Line 115: Line 115:
 
{| 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]] [[Add a Project|HELP]]''</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]]}}<br>
+
{{#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:{{{projectsector|}}}|[[Property:Project sector was|Project Sector(s):]]|}}  
{{#if:{{{projectsector2|}}}| [[Project sector was::{{{projectsector2}}}]]|}}{{#if:{{{projectsector2|}}}|[[Image:{{{projectsector2}}}.gif|20px]]|}}
+
{{#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 194: Line 197:
 
! 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}}}]] [[:Category:{{{country}}} projects located|({{PAGESINCAT:{{{country}}}_projects_located}})]].  
+
! 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
 
{{#if:{{{map|}}}|This project location is: {{Location2
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}
 
|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=googlemap|width=350|height=400}}|}}
 
|}
 
|}
  

Revision as of 00:09, 28 March 2010

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
}}