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

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
 
(changed to updated version)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'Project' template.
+
This is the 'Sitetest2' template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{Project
+
{{Sitetest2
|site=
+
|site= (usually page name...but if different)
|project=
+
|sitebar= (yes or no)
 
|country=
 
|country=
|lastname=
+
|region=
|firstname=
+
|sitetotalvolunteers=
|state=
+
|siteyearestablished=
|communityfunds=
+
|map= (yes or no)
|projectnumber=
+
|wikipedia= (yes or no)
|projectyear=
+
|wikitravel= (yes or no)....in development
 +
|appropedia= (yes or no)
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 +
 +
{{Sitetest2
 +
|sitebar= yes
 +
|country= Armenia
 +
|region= Vayots Dzor
 +
|site= Jermuk
 +
|sitetotalvolunteers= 7
 +
|siteyearestablished= 1994
 +
|appropedia= yes
 +
|wikipedia= yes
 +
}}
 +
 +
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 +
 +
<div style=" text-align: center; font-size: 80%;">{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_sites]]}}|}}</div>
 +
 +
 +
{{#if:{{{wikipedia|}}}|{{wikipedia}}|}}
 +
{{#if:{{{appropedia|}}}|{{AppropediaLocation|{{{site}}}}}|}}
 +
 +
{| 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>{{{site}}},[[{{{country}}}]]</big>'''
 +
|-
 +
|{{#if: Image:Flag_of_{{{country}}}.svg ‎| [[Image:Flag_of_{{{country}}}.svg‎|50px|none]] | }}
 +
|If you served in [[{{{country}}}]],please '''[[Form:Volunteer | create a page]]'''on yourself. Thanks!
 +
|}
 
{| 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>{{{site}}}</big>
 
|-
 
|-
! [[:category:site|Community Name]]
+
! [[:category:{{{country}}}|Country]]
| {{#arraymap:{{{site|}}}|,|x|[[Name of community was::x]]}}
+
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! [[:category:project|Project Name]]
+
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
| {{#arraymap:{{{project|}}}|,|x|[[Project was named::x]]}}
+
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}
 
|-
 
|-
! [[:category:countries|Country]]
+
! Total number of Volunteers since site establishment
| {{#arraymap:{{{country|}}}|,|x|[[Served in::x]]}}
+
| [[Total number of Volunteers since Site Establishment is::{{{sitetotalvolunteers|}}}]]
 
|-
 
|-
! [[:category:volunteers|Volunteer's Name]]
+
! Year of Site Establishment was
| {{#arraymap:{{{firstname|}}}|,|x|[[Firstname::x]]}} {{#arraymap:{{{lastname|}}}|,|x|[[Lastname::x]]}}
+
| [[Year of Site Establishment was::{{{siteyearestablished|}}}]]
 
|-
 
|-
! Volunteer's Homestate
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other Volunteers who served in the region: [[{{{region}}}]]|}}
| {{#arraymap:{{{state|}}}|,|x|[[Is from state::x]]}}
+
 
|-
 
|-
! Funds contributed by community
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#arraymap:{{{communityfunds|}}}|,|x|[[Funds contributed by community were::x]]}}
+
 
|-
 
|-
! PPCP #
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other sites in: {{{region}}}|}}
| {{#arraymap:{{{projectnumber|}}}|,|x|[[Partnership project number was::x]]}}
+
 
|-
 
|-
! [[:category:years|Year of project approval]]
+
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:sites]] [[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#arraymap:{{{projectyear|}}}|,|x|[[Year of project approval was::x]]}}
+
 
|-
 
|-
!  
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{site|}}}|Volunteers who served at site: {{{site}}}|}}
| {{#ask:[[Volunteers::{{SUBJECTPAGENAME}}]]|format=list}}
+
|-
 +
! colspan="3"|{{#if:{{{site|}}}|{{#ask:[[Name of community was::{{{site}}}]]|format=list|limit=15}}|}}
 
|}
 
|}
 +
{{#if:{{{map|}}}|{{Location
 +
|Coordinates={{#geocode:{{{PAGENAME}}},{{{country}}}}}
 +
}}|}}
 +
<center>'''{{#if:{{{site|}}}|Volunteers who served in {{{site}}}|}}'''</center>
 +
 +
{{#if:{{{site|}}}
 +
|{{#ask:[[Name of community was::{{{site}}}]]
 +
| ?Started service in
 +
| ?Ended service in
 +
| ?Served in sector
 +
| ?Primary assignment was
 +
}}|}}
  
'''Info about the {{{project}}}'''
+
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
[[Category:projects]]
+
[[Category:{{{country}}} sites]]  
[[category:{{{country}}}]]
+
[[category:{{{country}}}_Projects]]
+
[[category:{{{country}}}_Projects_{{{projectyear}}}]]
+
[[category:{{{country}}}_Volunteers_{{{projectyear}}}_{{{site}}}]]
+
[[category:{{{site}}}]]
+
[[category:{{{projectyear}}}]]
+
[[category:{{{site}}}_{{{projectyear}}}]]
+
 
</includeonly>
 
</includeonly>

Revision as of 19:50, 18 March 2009

This is the 'Sitetest2' template. It should be called in the following format:

{{Sitetest2
|site= (usually page name...but if different)
|sitebar= (yes or no)
|country=
|region=
|sitetotalvolunteers=
|siteyearestablished=
|map= (yes or no)
|wikipedia= (yes or no)
|wikitravel= (yes or no)....in development
|appropedia= (yes or no)
}}

Edit the page to see the template text.

Template:Sitetest2