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

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
m (174 revisions)
 
(use on COUNTRY site page)
 
Line 1: Line 1:
<noinclude>
+
{{#ask:[[Location Coordinates::+]][[Category:{{{1}}}_sites]]|limit=500|?Location Coordinates|format=googlemap|width=600|height=300}}
This is the 'Project' template. The Project name is the title of the page.
+
It should be called in the following format:
+
<pre>
+
{{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=
+
}}
+
</pre>
+
Edit the page to see the template text.
+
  
[[Category:templates infoboxes]]
+
{{#ask: [[Category:Category:{{{1}}}_sites]]
[[Category:templates projects]]
+
|sort=region
 
+
|format=broadtable
Example 1:
+
|limit=500
 
+
{|
+
 
+
<pre>
+
{{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
+
 
}}
 
}}
</pre>
 
 
|
 
 
<nowiki>{{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
 
}}
 
</nowiki>
 
|}
 
 
 
Example 2:
 
 
{|
 
 
<pre>
 
{{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
 
}}
 
</pre>
 
 
</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="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>|}}
 
{{#if:{{{flickr|}}}|{{{flickr}}}|}}{{#if:{{{image|}}}|[[Image:{{{image}}}|250px]]<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:{{{projectsector2|}}}| [[Project sector was::{{{projectsector2}}}]]|}}
 
{{#if:{{{projectsector2|}}}|[[Image:{{{projectsector2}}}.gif|20px]]|}}
 
|-
 
! {{#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:]]|}}
 
| {{#if:{{{country|}}}|[[Project in::{{{country|}}}]]|}}{{#if:{{{country2|}}}|, [[Project in::{{{country2|}}}]]|}}
 
|-
 
! {{#if:{{{lastname|}}}|[[:category:volunteers|Volunteer(s) Name:]]|}}
 
| {{#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|}}}|[[Is from state::{{{state}}}]]|}}{{#if:{{{state2|}}}| , [[Is from state::{{{state2}}}]]|}}
 
|-
 
! {{#if:{{{uscity|}}}|[[Property:Is from state|Volunteer(s) Home city:]]|}}
 
| {{#if:{{{uscity|}}}|[[Is from town or city::{{{uscity}}}]]|}}{{#if:{{{city2|}}}| and [[Is from state::{{{city2}}}]]|}}
 
|-
 
! {{#if:{{{counterpartlastname|}}}|[[Property:Lastname|Counterpart's Name:]]|}}
 
| {{#arraymap:{{{counterpartfirstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{counterpartlastname|}}}|,|x|[[Lastname::x]]}}
 
|-
 
! {{#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|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>|}}
 
|-
 
! 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}}|}}
 
|-
 
! 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}}
 
|-
 
! 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}}|}}
 
|-
 
! 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:{{{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"| {{#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"|{{#if:{{{map|}}}{{#compound_query:[[Category:{{{country}}}_projects]][[Location Coordinates::+]];?Location Coordinates;icon=Project.png‎|format=openlayers|width=350|height=400}}|}}
 
|}
 
 
{{#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:{{{projectyear|}}}|[[category:{{{country}}}_projects_{{{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:{{{projectsector|}}}|[[category:{{{projectsector}}}]]|}}
 
{{#if:{{{projectsector2|}}}|[[category:{{{projectsector2}}}]]|}}
 
{{#if:{{{state|}}}|[[category:{{{state}}}]]|}}
 
{{#if:{{{state|}}}|[[category:{{{state}}} volunteer projects]]|}}
 
{{#if:{{{uscity|}}}|[[category:{{{uscity}}}]]|}}
 
{{#if:{{{map|}}}|[[category:{{{country}}}_projects_located]]|}}
 
{{#if:{{{map|}}}|[[category:projects_located]]|}}
 
{{#if:{{{lastname|}}}|[[category:{{{lastname}}}]]|}}
 
</includeonly>
 

Revision as of 13:53, 26 March 2009

{{#ask:Location Coordinates::+[[Category:{{{1}}}_sites]]|limit=500|?Location Coordinates|format=googlemap|width=600|height=300}}

{{#ask: [[Category:Category:{{{1}}}_sites]] |sort=region |format=broadtable |limit=500 }}