Difference between pages "Template:Sitebox" and "Dan Sarles"

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
m (modifying volunteertable to check country and region as well)
 
m (2 revisions)
 
Line 1: Line 1:
<noinclude>
+
{{Volunteerinfobox
This is the 'Sitebox' template.
+
|firstname=Dan
It should be called in the following format:
+
|lastname=Sarles
<pre>
+
|country=Bulgaria
{{Sitebox
+
|yearservicestarted=2009
|site= (usually page name...but if different)
+
|yearserviceended=2011
|sitebar= (yes or no)
+
|site=Selcha
|country=
+
|groupcode=B25
|region=
+
|program=Business
|sitetotalvolunteers=
+
|siteyearestablished=
+
|map= (yes or no)
+
|wikipedia= (yes or no)
+
|wikitravel= (yes or no)....in development
+
|appropedia= (yes or no)
+
|volunteertable= (yes or no)
+
 
}}
 
}}
</pre>
 
Edit the page to see the template text.
 
 
{|
 
| colspan="2" align="center" | '''<big>EXAMPLE:</big>'''
 
|-
 
|
 
<pre>{{Sitebox
 
|site= Quito
 
|sitebar= yes
 
|country= Ecuador
 
|region= Pichincha
 
|sitetotalvolunteers= ?
 
|siteyearestablished= ?
 
|map= yes
 
|wikipedia= yes
 
|wikitravel=
 
|appropedia= yes
 
|volunteertable= yes
 
}}
 
</pre>
 
 
 
|
 
 
 
 
 
 
 
 
 
 
 
{{Sitebox
 
|site= Quito
 
|sitebar= yes
 
|country= Ecuador
 
|region= Pichincha
 
|sitetotalvolunteers= ?
 
|siteyearestablished= ?
 
|map= yes
 
|wikipedia= yes
 
|wikitravel=
 
|appropedia= yes
 
|volunteertable= yes
 
}}
 
|}
 
 
[[Category:site template]]
 
</noinclude><includeonly>
 
 
{| style="font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; 1em; padding: 0.2em; float: right; text-align:left;"
 
|-
 
| style="text-align: center; background-color:#ccccff;"|{{#if:{{{sitebar|}}}|[[{{{country}}}_regions|{{{country}}} Regions]]|}}
 
|-
 
| style="text-align: center;" |{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}
 
|-
 
| style="text-align: center; background-color:#ccccff;" |{{#if:{{{sitebar|}}}|[[{{{country}}}_sites|{{{country}}} PC Sites]]|}}
 
|-
 
| style="text-align: center;" |{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]]}}|}}
 
|}
 
 
{| 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" |[[Image:Flag_of_{{{country}}}.svg‎|50px|none]]<big>{{{site}}}, [[{{{country}}}]]</big>
 
|-
 
! {{#if:{{{region|}}}|[[:category:regions|Region]]|}}
 
| {{#arraymap:{{{region|}}}|,|x|[[Located in::x]]}}
 
|-
 
! {{#if:{{{sitetotalvolunteers|}}}|Total Volunteers:|}}
 
| {{#arraymap:{{{sitetotalvolunteers|}}}|,|x|[[Total number of Volunteers since Site Establishment is::x]]|}}
 
|-
 
! {{#if:{{{siteyearestablished|}}}|Established:|}}
 
| {{#arraymap:{{{sitetotalvolunteers|}}}|,|x|[[Year of Site Establishment was::x]]|}}
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}| Volunteered in [[{{{region}}}]]|}}
 
|-
 
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other sites in [[{{{region}}}]]|}}
 
|-
 
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]][[Category:{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{site|}}}|Volunteers who served at {{{site}}}|}}
 
|-
 
! colspan="3"|{{#if:{{{site|}}}|{{#ask:[[Name of community was::{{{site}}}]]|format=list|limit=15}}|}}
 
|}
 
{{#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 you served in [[{{{country}}}]], please '''[[Form:Volunteer | create a page]]''' on yourself. Thanks!
 
{{#if:{{{map|}}}|Map [[{{{country}}}_sites|Sites in {{{country}}}]]|}}
 
|}
 
 
{{#if:{{{map|}}}|{{Location
 
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
 
}}|}}
 
 
 
 
{{#if:{{{volunteertable|}}}|==Volunteers Who Have Served in {{{site}}}==
 
{{#ask:[[Name of community was::{{{site}}}]][[Served in::{{{country}}}]][[Name of region was::{{{region}}}]] | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was| sort = Started service in
 
| order = ascending
 
}}|}}
 
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}
 
{{#if:{{{country|}}}|[[Category:{{{country}}}_sites]]|}} 
 
{{#if:{{{country|}}}|[[Located in::{{{country}}}|]] |}}
 
</includeonly>
 

Latest revision as of 14:40, 21 May 2014



{{#if:Dan|Firstname::Dan|}} {{#if:|[[Middlename::{{{middlename}}}]]|}} {{#if:Sarles|Lastname::Sarles|}}{{#if:Bulgaria||}}

{{#if:|
{{{flickr}}}|}}{{#if:|
[[Image:{{{image}}}|250px]]|}}

Country Served in::Bulgaria
Years:|}} Started service in::2009|}}{{#if:2011|-|}}{{#if:2011|Ended service in::2011|}}
Group Code|}} ,|x|Group code was::x}}
Site(s)|}} ,|x|Name of community was::x}}{{#arraymap:|,|x|, Name of community was::x}}{{#arraymap:|,|x|, Name of community was::x}}
Region(s)|}} ,|x|Name of region was::x}}{{#arraymap:|,|x|, Name of region was::x}}{{#arraymap:|,|x|,Name of region was::x}}
Program(s)|}} Served in sector::Business|}}{{#if:|,[[Served in sector::{{{program2}}}]]|}}{{#if:|,[[Served in sector::{{{program3}}}]]|}}
Assignment(s)|}} [[Primary assignment was::{{{assignment01}}}]]|}}{{#if:|,[[Primary assignment was::{{{assignment02}}}]]|}}{{#if:|,[[Primary assignment was::{{{assignment03}}}]]|}}
From US state|}} ,|x|Is from state::x}}
From US town/city|}} ,|x|Is from town or city::x}}
{{#if:2009|Volunteer name was::Dan Sarles|}} {{#if:2009|started in Bulgaria 2009|}}
{{#if:2009|{{#ask:Served in::BulgariaStarted service in::2009|format=list|limit=15}}|}}
{{#if:|Region: [[{{{region}}}]]|}}
{{#if:|{{#ask:Served in::Bulgaria[[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
{{#if:|Region: [[{{{region2}}}]]|}}
{{#if:|{{#ask:Served in::Bulgaria[[Name of region was::{{{region2}}}]]|format=list|limit=15}}|}}
{{#if:Business|Business in Bulgaria: |}}{{#ifexist:Business|25px|}}
{{#if:Business|{{#ask:Served in sector::BusinessServed in::Bulgaria|format=list|limit=10}}|}}
{{#if:|{{{program2}}} in [[:Category:Bulgaria_{{{program2}}}|Bulgaria]]: |}}{{#ifexist:|[[Image:{{{program2}}}.gif|25px]]|}}
{{#if:|{{#ask:[[Served in sector::{{{program2}}}]]Served in::Bulgaria|format=list|limit=10}}|}}
Other Volunteers who served in Bulgaria{{#if:Bulgaria|:|}}
{{#ask:Served in::Bulgaria|format=list|limit=15}}
Projects in Bulgaria{{#if:Bulgaria|:|}}
{{#ask:Project in::Bulgaria|format=list}}
Don't see yourself, Add yourself or a friend!

Enter your first and last name{{#forminput:Volunteer}}

{{#if:|Mapped Volunteers around Bulgaria (18).|}}

{{#if:|You located yourself at based on your site: Selcha {{#if:{{#geocode:Selcha,Bulgaria}}|[[Location Coordinates::{{#geocode:Selcha,Bulgaria}}]]}} }}

{{#if:|{{#compound_query:Location Coordinates::+;?Location Coordinates;icon=Vol.PNG‎|format=openlayers height=400}}|}}

{{#if:2009||}} {{#if:2009||}} {{#if:2009||}} {{#if:Selcha||}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:|[[category:]]|}} {{#if:||}} {{#if:||}} {{#if:B25||}} {{#if:Business||}} {{#if:|[[category:Bulgaria_{{{program2}}}]]|}} {{#if:Business||}} {{#if:|[[category:{{{program2}}}]]|}} {{#if:|[[category:Bulgaria_{{{assignment01}}}]]|}} {{#if:|[[category:Bulgaria_{{{assignment02}}}]]|}} {{#if:|[[category:Bulgaria_{{{assignment03}}}]]|}} {{#if:|[[category:Bulgaria_{{{assignment04}}}]]|}} {{#if:|[[category:{{{assignment01}}}]]|}} {{#if:|[[category:{{{assignment02}}}]]|}} {{#if:|[[category:{{{assignment03}}}]]|}} {{#if:|[[category:{{{assignment04}}}]]|}}