Difference between revisions of "Template:Project"

From Peace Corps Wiki
Jump to: navigation, search
(11 intermediate revisions by 2 users not shown)
Line 10: Line 10:
 
|state=
 
|state=
 
|communityfunds=
 
|communityfunds=
 +
|requestedfunds=
 +
|neededfunds=
 
|projectnumber=
 
|projectnumber=
 
|projectyear=
 
|projectyear=
Line 16: Line 18:
 
</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:
 +
 +
{|
 +
 +
<pre>
 +
{{Project
 +
|site=Peshkopi
 +
|project=Peshkopi School Library Investment Project
 +
|country=Albania
 +
|firstname=J
 +
|lastname=Slattengren
 +
|state=Minnesota
 +
|communityfunds=$2205.00
 +
|communityfunds=
 +
|requestedfunds=
 +
|projectnumber=304-007
 +
|projectyear=2006
 +
}}
 +
</pre>
 +
 +
|
 +
 +
{{Project
 +
|site=Peshkopi
 +
|project=Peshkopi School Library Investment Project
 +
|country=Albania
 +
|firstname=J
 +
|lastname=Slattengren
 +
|state=Minnesota
 +
|communityfunds=$2205.00
 +
|projectnumber=304-007
 +
|projectyear=2006
 +
}}
 +
 +
|}
 +
 
</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" |<big>{{PAGENAME}}</big>
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>[[Name of project::{{PAGENAME}}]]</big>
 
|-
 
|-
! [[:category:site|Community Name]]
+
! {{#if:{{{state|}}}|[[:category:sites|Community Name]]|}}
 
| {{#arraymap:{{{site|}}}|,|x|[[Name of community was::x]]}}
 
| {{#arraymap:{{{site|}}}|,|x|[[Name of community was::x]]}}
 
|-
 
|-
! [[:category:countries|Country]]
+
! [[:category:country|Country]]
| {{#arraymap:{{{country|}}}|,|x|[[Served in::x]]}}
+
| {{#arraymap:{{{country|}}}|,|x|[[Project in::x]]}}
 
|-
 
|-
 
! [[:category:volunteers|Volunteer's Name]]
 
! [[: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:{{{state|}}}|Volunteer's Homestate|}}
+
! {{#if:{{{state|}}}|[[:category:homestates|Volunteer's Homestate]]|}}
 
| {{#arraymap:{{{state|}}}|,|x|[[Is from state::x]]}}
 
| {{#arraymap:{{{state|}}}|,|x|[[Is from state::x]]}}
 
|-
 
|-
! {{#if:{{{communityfunds|}}}|Funds contributed by community|}}
+
! {{#if:{{{communityfunds|}}}|Funds community contributed|}}
| {{#arraymap:{{{communityfunds|}}}|,|x|[[Funds contributed by community were::x]]}}
+
| {{#arraymap:{{{communityfunds|}}}|,|x|[[Funds community contributed::x]]}}
 +
|-
 +
! {{#if:{{{neededfunds|}}}|Funds needed were|}}
 +
| {{#arraymap:{{{neededfunds|}}}|,|x|[[Funds needed were::x]]}}
 +
|-
 +
! {{#if:{{{requestedfunds|}}}|Funds requested|}}
 +
| {{#arraymap:{{{requestedfunds|}}}|,|x|[[Funds requested were::x]]}}
 
|-
 
|-
 
! {{#if:{{{projectnumber|}}}|PPCP #|}}
 
! {{#if:{{{projectnumber|}}}|PPCP #|}}
Line 39: Line 87:
 
|-
 
|-
 
! {{#if:{{{projectyear|}}}|[[:category:years|Year of project approval]]|}}
 
! {{#if:{{{projectyear|}}}|[[:category:years|Year of project approval]]|}}
| {{#arraymap:{{{projectyear|}}}|,|x|[[Year of project approval was::x]]}}
+
| {{#arraymap:{{{projectyear|}}}|,|x|[[Year of approval was::x]]}}
 
|-
 
|-
 
!  
 
!  
Line 45: Line 93:
 
|}
 
|}
  
{{#if:{{{map}}}|{{Location
+
{{#if:{{{map|}}}|{{Location
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
 
}}|}}
 
}}|}}
 +
  
 
'''Info about the [[Project was named::{{PAGENAME}}]]'''
 
'''Info about the [[Project was named::{{PAGENAME}}]]'''
[[Category:projects]]
+
[[category:{{{country}}}_projects]]
[[category:{{{country}}}]]
+
[[category:{{{country}}}_Projects]]
+
[[category:{{{country}}}_Projects_{{{projectyear}}}]]
+
[[category:{{{country}}}_Volunteers_{{{projectyear}}}_{{{site}}}]]
+
[[category:{{{site}}}]]
+
 
[[category:{{{projectyear}}}]]
 
[[category:{{{projectyear}}}]]
[[category:{{{site}}}_{{{projectyear}}}]]
+
[[category:{{{site}}}]]
 
</includeonly>
 
</includeonly>

Revision as of 14:05, 23 April 2009

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

{{Project
|site=
|country=
|lastname=
|firstname=
|state=
|communityfunds=
|requestedfunds=
|neededfunds=
|projectnumber=
|projectyear=
|map= ("yes" to display; "no" leave field blank)
}}

Edit the page to see the template text.

example:

{{Project
|site=Peshkopi 
|project=Peshkopi School Library Investment Project
|country=Albania
|firstname=J
|lastname=Slattengren
|state=Minnesota
|communityfunds=$2205.00
|communityfunds=
|requestedfunds=
|projectnumber=304-007
|projectyear=2006
}}


Template:Project HELP

Project was named::Project{{#if:Albania|
|}}

{{#if:|{{{flickr}}}|}}{{#if:|[[Image:{{{image}}}|250px]]
|}} {{#if:|Project Type(s):|}} {{#if:|Project Sector(s):|}} {{#if:|[[Project sector was::{{{projectsector}}}]]|}} {{#if:|[[Image:{{{projectsector}}}.gif|20px]]
|}} {{#if:| [[Project sector was::{{{projectsector2}}}]]|}} {{#if:|[[Image:{{{projectsector2}}}.gif|20px]]|}}

Community Name:|}} ,|x|Name of community was::x}}{{#arraymap:|,|x|, Name of community was::x}}{{#arraymap:|,|x|, Name of community was::x}}{{#arraymap:|,|x|, Name of community was::x}}
Region:|}} ,|x|Name of region was::x}} {{#arraymap:|,|x|, Name of region was::x}}
Country:|}} Project in::Albania|}}{{#if:|, Project in::|}}
Volunteer(s) Name:|}} ,|x|Firstname::x}} {{#arraymap:Slattengren|,|x|Lastname::x}}{{#if:| , |}}{{#arraymap:|,|x|Firstname::x}} {{#arraymap:|,|x|Lastname::x}}
Volunteer(s) Homestate:|}} Is from state::Minnesota|}}{{#if:| , [[Is from state::{{{state2}}}]]|}}
Volunteer(s) Home city:|}} [[Is from town or city::{{{uscity}}}]]|}}{{#if:| and [[Is from state::{{{city2}}}]]|}}
Counterpart's Name:|}} ,|x|Firstname::x}} {{#arraymap:|,|x|Lastname::x}}
Affiliate organization:|}} ,|x|Affiliate organization was::x}}
Funds community contributed:|}} ,|x|Funds community contributed::x}}
Percentage community contributed:|}} ,|x|Percentage community contributed::x}}
Funds needed were:|}} ,|x|Funds needed were::x}}
Funds requested were:}} ,|x|Funds requested were::x}}
PPCP #:|}} ,|x|Partnership project number was::x}}
Year of project approval:|}} Year of approval was::2006|}}
Project located:|}} yes|}}
{{#ifeq: 2006{{{projecttype}}}|2008PCPP|
Partnership project number was::x}} http://www.peacecorpswiki.org/images/Donatebutton.JPG
|}}{{#ifeq: 2006{{{projecttype}}}|2009PCPP|
Partnership project number was::x}} http://www.peacecorpswiki.org/images/Donatebutton.JPG
|}}
{{#if:2006|Projects started in Albania 2006 (2).|}}
{{#if:2006|{{#ask:Project in::AlbaniaYear of approval was::2006|format=list|limit=15}}|}}
{{#if:Albania||}}Other [[:Category:Project in::Albania_projects|Projects]] in Albania (3).
{{#ask:Project in::Albania|format=list|limit=15}}
{{#if:Minnesota|30px|}}{{#if:Minnesota|Other [[:Category:Project in::Albania_projects|Projects]] by Volunteers from Minnesota (3).|}}
{{#if:Minnesota|{{#ask:Is from state::Minnesota|format=list|limit=15}}|}}
{{#if:|Other [[:Category:{{{projecttype}}}|{{{projecttype}}}]] Projects by Volunteers [[:Category:{{{projecttype}}}|(0)]].|}}
{{#if:|{{#ask:[[Project type was::{{{projecttype}}}]]|format=list|limit=10}}|}}
{{#if:|[[Image:{{{projectsector}}}.gif|30px]]|}}{{#if:|Other [[:Category:{{{projectsector}}}|{{{projectsector}}}]] Projects by Volunteers [[:Category:{{{projectsector}}}|(0)]].|}}
{{#if:|{{#ask:[[Project sector was::{{{projectsector}}}]]|format=list|limit=10}}|}}
{{#if:|[[Image:{{{projectsector2}}}.gif|30px]]|}}{{#if:|Other [[:Category:{{{projectsector2}}}|{{{projectsector2}}}]] Projects by Volunteers [[:Category:{{{projectsector2}}}|(0)]].|}}
{{#if:|{{#ask:[[Project sector was::{{{projectsector2}}}]]|format=list|limit=10}}|}}
Don't see your Project, Add yours! {{#forminput:Project}}
{{#if:Mapped Projects around Albania (3).|}}

{{#if:|This project location is: {{#if:{{#geocode:Peshkopi,Albania}}|[[Location Coordinates::{{#geocode:Peshkopi,Albania}}]]}} }}

{{#if:{{#compound_query:Location Coordinates::+;?Location Coordinates;icon=Project.png‎|format=openlayers|width=350|height=400}}|}}

{{#if:|Template:Appropediaprojects|}}

Info about the Project was named::Project {{#if:Albania||}} {{#if:|[[category:{{{country2}}}_projects]]|}} {{#if:2006||}} {{#if:2006||}} {{#if:Peshkopi||}} {{#if:|[[category:{{{site2}}}]]|}} {{#if:|[[category:{{{site3}}}]]|}} {{#if:|[[category:{{{site4}}}]]|}} {{#if:|[[category:{{{affiliateorganization}}}]]|}} {{#if:|[[category:{{{projecttype}}}]]|}} {{#if:|[[category:{{{projectsector}}}]]|}} {{#if:|[[category:{{{projectsector2}}}]]|}} {{#if:Minnesota||}} {{#if:Minnesota||}} {{#if:|[[category:{{{uscity}}}]]|}} {{#if:||}} {{#if:||}} {{#if:Slattengren||}}