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

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'volunteerinfobox' template.
+
This is the 'Sitebox' template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{volunteerinfobox
+
{{Sitebox
|firstname=
+
|site= (usually page name...but if different)
|middlename=
+
|sitebar= (yes or no)
|lastname=
 
 
|country=
 
|country=
|yearservicestarted=
 
|yearserviceended=
 
|groupcode=
 
|site=
 
|site2=
 
|site3=
 
 
|region=
 
|region=
|region2=
+
|sitetotalvolunteers=
|region3=
+
|siteyearestablished=
|program=
+
|map= (yes or no)
|assignment01=
+
|wikipedia= (yes or no)
|assignment02=
+
|wikitravel= (yes or no)....in development
|assignment03=
+
|appropedia= (yes or no)
|state=
+
|volunteertable= (yes or no)
|uscity=
 
|map= ("yes" to display; "no" leave field blank)
 
 
}}
 
}}
 
</pre>
 
</pre>
 
 
Edit the page to see the template text.
 
Edit the page to see the template text.
  
Line 33: Line 23:
 
|-
 
|-
 
|
 
|
<pre>{{volunteerinfobox
+
<pre>{{Sitebox
|firstname= Joe
+
|site= Quito
|middlename=
+
|sitebar= yes
|lastname= Peaceman
+
|country= Ecuador
|country= Armenia
+
|region= Pichincha Province
|yearservicestarted= 2008
+
|sitetotalvolunteers= ?
|yearserviceended= 2010
+
|siteyearestablished= ?
|groupcode= A-17
 
|site= Jermuk
 
|site2=
 
|site3= Vyke
 
|region= Vayots Dzor
 
|region2=
 
|region3=
 
|program= Environment
 
|assignment01=
 
|assignment02=
 
|assignment03=
 
 
|map= yes
 
|map= yes
|state=Virginia
+
|wikipedia= yes
|uscity=Richmond
+
|wikitravel=  
 +
|appropedia= yes
 +
|volunteertable= yes
 +
}}</nowiki>
 +
 
 +
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 69: Line 53:
  
  
{{volunteerinfobox
+
{{Sitebox
|firstname= Joe
+
|site= Quito
|middlename=
+
|sitebar= yes
|lastname= Peaceman
+
|country= Ecuador
|country= Armenia
+
|region= Pichincha Province
|yearservicestarted=
+
|sitetotalvolunteers= ?
|yearserviceended=
+
|siteyearestablished= ?
|groupcode= A-17
 
|site= Jermuk
 
|site2=
 
|site3= Vyke
 
|region= Vayots Dzor
 
|region2=
 
|region3=
 
|program= Environment
 
|assignment01=
 
|assignment02=
 
|assignment03=
 
 
|map= yes
 
|map= yes
|state=Virginia
+
|wikipedia= yes
|uscity=Richmond
+
|wikitravel=  
 +
|appropedia= yes
 +
|volunteertable= yes
 
}}
 
}}
 
|}
 
|}
  
[[Category:templates]]
 
[[Category:templates infoboxes]]
 
[[Category:templates countries]]
 
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 +
 +
<div style=" text-align: center; font-size: 80%;">{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_sites]]}} [[Located in::{{{country|}}}]]|}}</div>
 +
 +
 
{| 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>{{#if:{{{firstname|}}}|'''[[Firstname::{{{firstname}}}]]|}} {{#if:{{{middlename|}}}|[[Middlename::{{{middlename}}}]]|}} {{#if:{{{lastname|}}}|[[Lastname::{{{lastname}}}]]'''|}}</big>
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |[[Image:Flag_of_{{{country}}}.svg‎|50px|none]]<big>{{{site}}}</big>
 
|-
 
|-
 
! [[:category:{{{country}}}|Country]]
 
! [[:category:{{{country}}}|Country]]
 
| [[Served in::{{{country|}}}]]
 
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]|}}
+
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
| {{#if:{{{yearservicestarted|}}}|[[Started service in::{{{yearservicestarted}}}]]|}}{{#if:{{{yearserviceended|}}}|-|}}{{#if:{{{yearserviceended|}}}|[[Ended service in::{{{yearserviceended}}}]]|}}
+
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}
 
|-
 
|-
! {{#if:{{{groupcode|}}}|[[Property:Group code was|Group Code]]|}}
+
! {{#if:{{{sitetotalvolunteers|}}}|Total Volunteers:|}}
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
+
| {{#arraymap:{{{sitetotalvolunteers|}}}|,|x|[[Total number of Volunteers since Site Establishment is::x]]|}}
 
|-
 
|-
! {{#if:{{{site|}}}|[[Property:Name of community was|Site(s)]]|}}
+
! {{#if:{{{siteyearestablished|}}}|Established:|}}
| {{#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:{{{sitetotalvolunteers|}}}|,|x|[[Year of Site Establishment was::x]]|}}
 
|-
 
|-
! {{#if:{{{region|}}}|[[Property:Name of region was|Region(s)]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other Volunteers who served in the region: [[{{{region}}}]]|}}
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}{{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}{{#arraymap:{{{region3|}}}|,|x|,[[Name of region was::x]]}}
 
 
|-
 
|-
! {{#if:{{{program|}}}|[[Property:Served in sector|Program]]|}}
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#arraymap:{{{program|}}}|,|x|[[Served in sector::x]]}}
 
 
|-
 
|-
! {{#if:{{{assignment01|}}}|[[Property:Primary assignment was|Assignment(s)]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other sites in: [[{{{region}}}]]|}}
| {{#arraymap:{{{assignment01|}}}|,|x|[[Primary assignment was::x]]}}{{#arraymap:{{{assignment02|}}}|,|x|, [[Primary assignment was::x]]}}{{#arraymap:{{{assignment03|}}}|,|x|, [[Primary assignment was::x]]}}
 
 
|-
 
|-
! {{#if:{{{state|}}}|[[Property:Is from state|From US state]]|}}
+
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:sites]] [[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#arraymap:{{{state|}}}|,|x|[[Is from state::x]]}}
 
 
|-
 
|-
! {{#if:{{{uscity|}}}|[[Property:Is from town or city|From US town/city]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{site|}}}|Volunteers who served at site: {{{site}}}|}}
| {{#arraymap:{{{uscity|}}}|,|x|[[Is from town or city::x]]}}
 
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{yearservicestarted|}}}|[[:category:years|Started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]|}}
+
! colspan="3"|{{#if:{{{site|}}}|{{#ask:[[Name of community was::{{{site}}}]]|format=list|limit=15}}|}}
|-
+
|}
! colspan="3"|{{#if:{{{yearservicestarted|}}}|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}|}}
+
{{#if:{{{wikipedia|}}}|{{wikipedia}}|}}
|-
+
{{#if:{{{appropedia|}}}|{{AppropediaLocation|{{{site}}}}}|}}
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|[[Property:Name of region was|Region]]: [[{{{region}}}]]|}}
+
 
|-
+
{| border="2" class="noprint" class="toccolours" style="clear:right; float:right; background: #f9f9f9; width: 250px;" cellspacing="3" cellpadding="3" rules="none"
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
+
| colspan="2" align="center" | '''<big>{{{site}}}, [[{{{country}}}]]</big>'''
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region2|}}}|[[Property:Name of region was|Region]]:  [[{{{region2}}}]]|}}
 
|-
 
! colspan="3"|{{#if:{{{region2|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region2}}}]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{program|}}}|[[Property:Served in|Program]]: [[{{{program}}}]]|}}
 
|-
 
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in sector::{{{country}}}]][[Served in sector::{{{program}}}]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|Other [[:Category:[[Served in::{{{country}}}]]_Volunteers|Volunteers]] who served in [[{{{country}}}]]
 
|-
 
! colspan="3"|{{#ask:[[Served in::{{{country}}}]]|format=list|limit=15}}
 
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|'''Don't see yourself, Add yourself or a friend!''' {{#forminput:Volunteer}}
+
|{{#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!
 
|}
 
|}
  
Line 154: Line 114:
 
}}|}}
 
}}|}}
  
 +
{{#if:{{{volunteertable|}}}|==Volunteers Who Have Served in Ambato==
 +
{{#ask:[[Name of community was::{{{site}}}]] | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was}}|}}
  
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers]]|}}
 
{{#if:{{{yearservicestarted|}}}|[[category:{{{country}}}_volunteers_{{{yearservicestarted}}}]]|}}
 
{{#if:{{{yearservicestarted|}}}|[[category:{{{yearservicestarted}}}]]|}}
 
{{#if:{{{site|}}}|[[category:{{{site|}}}]]|}}
 
{{#if:{{{site2|}}}|[[category:{{{site2|}}}]]|}}
 
{{#if:{{{site3|}}}|[[category:{{{site3|}}}]]|}}
 
{{#if:{{{site4|}}}|[[category:{{{site4|}}}]]|}}
 
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
{{#if:{{{region2|}}}|[[category:{{{region2|}}}]]|}}
+
[[Category:{{{country}}}_sites]]  
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
 
{{#if:{{{programs|}}}|[[category:{{{country}}}_{{{programs}}}]]|}}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
[[Category:volunteers]]  
 
 
</includeonly>
 
</includeonly>

Revision as of 22:49, 25 March 2009

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

{{Sitebox
|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)
|volunteertable= (yes or no)
}}

Edit the page to see the template text.

EXAMPLE:
{{Sitebox
|site= Quito
|sitebar= yes
|country= Ecuador
|region= Pichincha Province
|sitetotalvolunteers= ?
|siteyearestablished= ?
|map= yes
|wikipedia= yes
|wikitravel= 
|appropedia= yes
|volunteertable= yes
}}</nowiki>


}}








{{#if:yes|Ecuador Regions|}}
{{#if:yes|{{#ask:}}|}}
{{#if:yes|Ecuador PC Sites|}}
{{#if:yes|{{#ask:}}|}}
Template:Sitebox
Quito, Ecuador
Region|}} ,|x|Located in::x}}
Total Volunteers:|}} ,|x|Total number of Volunteers since Site Establishment is::x|}}
Established:|}} ,|x|Year of Site Establishment was::x|}}
{{#if:Pichincha Province| Volunteered in Pichincha Province|}}
{{#if:Pichincha Province|{{#ask: Served in::EcuadorName of region was::Pichincha Province|format=list|limit=15}}|}}
{{#if:Pichincha Province|Other sites in Pichincha Province|}}
{{#if:Ecuador|{{#ask:|format=list|limit=15}}|}}
{{#if:Quito|Volunteers who served at Quito|}}
{{#if:Quito|{{#ask:Name of community was::Quito|format=list|limit=15}}|}}
{{#if:Quito|Projects at Quito|}}
{{#if:Quito|{{#ask:Name of community was::QuitoProject in::Ecuador|format=list|limit=15}}|}}

{{#if:yes|

Sitebox follows the same naming convention as an article in Wikipedia. go there! What's this?
|}}

{{#if:Yes|

See Appropriate technology information on Quito at:Quito at Appropedia.
}
Quito, Located in::Ecuador
If you served in Ecuador, please create a page on yourself. Thanks!

{{#if:yes|Map Sites in Ecuador|}}

{{#if:yes|



{{#display_map:{{#geocode:Quito,Ecuador}}|service=openlayers}}
Sitebox
([[Location Coordinates::{{#geocode:Quito,Ecuador}}]])
|}}


{{#if:yes|==Volunteers Who Have Served in Quito== {{#ask:Name of community was::QuitoServed in::EcuadorName of region was::Pichincha Province | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was| sort = Started service in | order = ascending }}|}}

{{#if:Pichincha Province||}} {{#if:Ecuador||}} {{#if:yes||}}

|}