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

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 'Countrysites' template, and the template is usually displayed on the '''COUNTRYNAME_sites''' page.
 
It should be called in the following format:
 
It should be called in the following format:
 +
 
<pre>
 
<pre>
{{Project           
 
|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=
 
|lastname=
 
|state=
 
|uscity=
 
|affiliateorganization=
 
|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>
 
Edit the page to see the template text.
 
  
[[Category:templates infoboxes]]
+
{{Countrysites|COUNTRYNAME}}
[[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>
 
</pre>
  
|
+
Edit the page to see the template text.
  
{{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:
 +
{{Countrysites|Ecuador}}
  
 +
</noinclude><includeonly>
 +
<div style=" text-align: center; font-size: 90%;">{{#if:{{{regionbar|}}}|[[{{{country}}} Regions]]|}}</div>
 +
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}</div>
 +
<div style=" text-align: center; font-size: 90%;">{{#if:{{{regionbar|}}}|[[{{{country}}} PC Sites]]|}}</div>
 +
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]]}}|}}</div>
  
Example 2:
+
{{#compound_query:[[Category:{{{1}}}_sites]][[Location Coordinates::+]];?Location Coordinates;icon=Site.png‎|format=googlemap|width=800|height=600}}
  
{|
+
{| border="2" class="noprint" class="toccolours" style="clear:right; float:right; background: #f9f9f9; width: 250px;" cellspacing="3" cellpadding="3" rules="none"
 
+
| colspan="2" align="center" | '''<big>Volunteers who served in [[{{{1}}}]]</big>'''
<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>
+
{| 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>
+
<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:]]|}}
+
| {{#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:{{{state|}}}|[[Property:Is from state|Volunteer's Homestate:]]|}}
+
| {{#if:{{{state|}}}|[[Is from state::{{{state}}}]]|}}
+
|-
+
! {{#if:{{{uscity|}}}|[[Property:Is from state|Volunteer's Home city:]]|}}
+
| {{#if:{{{uscity|}}}|[[Is from town or city::{{{uscity}}}]]|}}
+
|-
+
! {{#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|}}}|Other [[:Category:{{{projectsector}}}|{{{projectsector}}}]] [[Projects]] by [[Volunteers]] [[:Category:{{{projecttype}}}|({{PAGESINCAT:{{{projectsector}}}}})]].|}}
+
|-
+
! 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 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}})]].
+
{{#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}}
+
|{{#if: Image:Flag_of_{{{1}}}.svg ‎| [[Image:Flag_of_{{{1}}}.svg‎|50px|none]] | }}
 +
||This page is a listing of all the volunteers who have served in [[{{{1}}}]].  
 +
If you served in [[{{{1}}}]], please '''[[Form:Volunteer | create a page]]''' on yourself. Thanks!
 
|}
 
|}
 +
'''Volunteers and Sites in the following chart have information in the PCwiki:'''
  
{{#if:{{{appropedia|}}}|{{Appropediaprojects}}|}}
 
  
'''Info about the [[Project was named::{{PAGENAME}}]]'''
+
{{#compound_query:[[Category:{{{1}}}_sites]][[Location Coordinates::+]];?Name of Region was;?Location Coordinates;|format=table}}
[[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:{{{state|}}}|[[category:{{{state}}}]]|}}
+
{{#if:{{{state|}}}|[[category:{{{state}}} volunteer projects]]|}}
+
{{#if:{{{uscity|}}}|[[category:{{{uscity}}}]]|}}
+
{{#if:{{{map|}}}|[[category:{{{country}}}_projects_located]]|}}
+
{{#if:{{{map|}}}|[[category:projects_located]]|}}
+
  
 +
[[category:sites]]
 +
[[category:{{{1}}}]]
 
</includeonly>
 
</includeonly>

Revision as of 16:49, 14 April 2009

This is the 'Countrysites' template, and the template is usually displayed on the COUNTRYNAME_sites page. It should be called in the following format:


{{Countrysites|COUNTRYNAME}}

Edit the page to see the template text.


Example:

{{#if:|[[{{{country}}} Regions]]|}}
{{#if:|{{#ask:[[Category:{{{country}}}_regions]]}}|}}
{{#if:|[[{{{country}}} PC Sites]]|}}
{{#if:|{{#ask:[[Category:{{{country}}}_sites]]}}|}}

{{#compound_query:Location Coordinates::+;?Location Coordinates;icon=Site.png‎|format=googlemap|width=800|height=600}}

Volunteers who served in Ecuador
| }} This page is a listing of all the volunteers who have served in Ecuador.

If you served in Ecuador, please create a page on yourself. Thanks!

Volunteers and Sites in the following chart have information in the PCwiki:


{{#compound_query:Location Coordinates::+;?Located in;?Location Coordinates;|format=table}}