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=
 
|site=
 
|region=
 
|country=
 
|lastname=
 
|firstname=
 
|state=
 
|affiliateorganization=
 
|counterpartfirstname=
 
|counterpartlastname=
 
|communityfunds=
 
|communitypercentage=
 
|requestedfunds=
 
|neededfunds=
 
|projectnumber=
 
|projectyear=
 
|map= ("yes" to display; "no" leave field blank)
 
}}
 
</pre>
 
Edit the page to see the template text.
 
  
[[Category:templates infoboxes]]
+
{{Countrysites|COUNTRYNAME}}
[[Category:templates projects]]
 
  
example:
+
</pre>
  
{|
+
Edit the page to see the template text.
  
<pre>
 
{{Project
 
|projecttype= PCPP
 
|site=Peshkopi
 
|project=Peshkopi School Library Investment Project
 
|country=Albania
 
|firstname=J
 
|lastname=Slattengren
 
|state=Minnesota
 
|communityfunds=$2205.00
 
|communitypercentage=
 
|communityfunds=
 
|requestedfunds=
 
|projectnumber=304-007
 
|projectyear=2006
 
}}
 
</pre>
 
  
|
+
Example:
 +
{{Countrysites|Ecuador}}
  
{{Project
+
</noinclude><includeonly>
|projecttype= PCPP
+
<div style=" text-align: center; font-size: 90%;">{{#if:{{{regionbar|}}}|[[{{{country}}} Regions]]|}}</div>
|site=Peshkopi
+
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}</div>
|project=Peshkopi School Library Investment Project
+
<div style=" text-align: center; font-size: 90%;">{{#if:{{{regionbar|}}}|[[{{{country}}} PC Sites]]|}}</div>
|country=Albania
+
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]]}}|}}</div>
|firstname=J
 
|lastname=Slattengren
 
|state=Minnesota
 
|communityfunds=$2205.00
 
|projectnumber=304-007
 
|projectyear=2006
 
}}
 
  
|}
+
{{#compound_query:[[Category:{{{1}}}_sites]][[Location Coordinates::+]];?Location Coordinates;icon=Site.png‎|format=googlemap|width=800|height=600}}
  
</noinclude><includeonly>
+
{| border="2" class="noprint" class="toccolours" style="clear:right; float:right; background: #f9f9f9; width: 250px;" cellspacing="3" cellpadding="3" rules="none"
{| 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;"
+
| colspan="2" align="center" | '''<big>Volunteers who served in [[{{{1}}}]]</big>'''
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>[[Name of project::{{PAGENAME}}]]</big>
 
{{#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]]}}
 
|-
 
! {{#if:{{{country|}}}|[[Property:Project in|Country]]|}}
 
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}{{#if:{{{country|}}}|[[Project in::{{{country|}}}]]|}}
 
|-
 
! {{#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:{{{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:{{{neededfunds|}}}|,|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|Funds requested]]}}
 
| {{#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}}}]]|}}
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{projectyear|}}}|[[:category:years|Started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{projectyear}}} {{{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"|Other [[:Category:[[Project in::{{{country}}}]]_projects|Projects]] in [[{{{country}}}]]
 
 
|-
 
|-
! colspan="3"|{{#ask:[[Project in::{{{country}}}]]|format=list|limit=15}}
+
|{{#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:{{{map|}}}|{{Location
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
 
}}|}}
 
  
 +
{{#compound_query:[[Category:{{{1}}}_sites]][[Location Coordinates::+]];?Located in;?Location Coordinates;|format=table}}
  
'''Info about the [[Project was named::{{PAGENAME}}]]'''
+
[[category:sites]]
[[category:projects]]
+
[[category:{{{1}}}]]
{{#if:{{{country|}}}|[[category:{{{country}}}_projects]]|}}
 
{{#if:{{{projectyear|}}}|[[category:{{{projectyear}}}]]|}}
 
{{#if:{{{site|}}}|[[category:{{{site}}}]]|}}
 
{{#if:{{{affiliateorganization|}}}|[[category:{{{affiliateorganization}}}]]|}}
 
{{#if:{{{projecttype|}}}|[[category:{{{projecttype}}}]]|}}
 
 
</includeonly>
 
</includeonly>

Revision as of 16:50, 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}}