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

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
 
(re-arranged boxes, added <br>s)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'volunteerinfobox' template.
+
This is the 'regionbox' template.
 
It should be called in the following format:
 
It should be called in the following format:
 +
 
<pre>
 
<pre>
{{volunteerinfobox
+
{{regionbox
|firstname=
+
|regionbar=
|middlename=
+
|region=
|lastname=
+
 
|country=
 
|country=
|yearservicestarted=
+
|wikipedia= (yes or no)
|yearserviceended=
+
|wikitravel= (yes or no)....in development
|groupcode=
+
|appropedia= (yes or no)
|site=
+
|site2=
+
|site3=
+
|region=
+
|region2=
+
|region3=
+
|program=
+
|program2=
+
|assignment01=
+
|assignment02=
+
|assignment03=
+
|assignment04=
+
|state=
+
|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.
  
{|
+
Example:
| colspan="2" align="center" | '''<big>EXAMPLE:</big>'''
+
 
|-
+
{{regionbox
|
+
|regionbar=yes
<pre>{{volunteerinfobox
+
|region=Santa Elena
|firstname= Joe
+
|country=Ecuador
|middlename=
+
|wikipedia= yes
|lastname= Peaceman
+
|wikitravel= yes
|country= Armenia
+
|appropedia= yes
|yearservicestarted= 2008
+
|yearserviceended= 2010
+
|groupcode= A-17
+
|site= Jermuk
+
|site2=
+
|site3= Vyke
+
|region= Vayots Dzor
+
|region2=
+
|region3=
+
|program= Environment
+
|assignment01=
+
|assignment02=
+
|assignment03=
+
|map= yes
+
|state=Virginia
+
|uscity=Richmond
+
 
}}
 
}}
</pre>
 
  
 +
</noinclude><includeonly>
  
|
+
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}</div>
  
  
 
 
 
 
 
 
 
 
{{volunteerinfobox
 
|firstname= Example
 
|middlename=
 
|lastname= Example
 
|country= Armenia
 
|yearservicestarted=
 
|yearserviceended=
 
|groupcode= A-17
 
|site= Jermuk
 
|site2=
 
|site3= Vyke
 
|region= Vayots Dzor
 
|region2=
 
|region3=
 
|program= Environment
 
|assignment01=
 
|assignment02=
 
|assignment03=
 
|map= yes
 
|state=Virginia
 
|uscity=Richmond
 
}}
 
|}
 
 
[[Category:templates]]
 
[[Category:templates infoboxes]]
 
[[Category:templates countries]]
 
</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" |<div align="right"><small>''[[Template:Volunteerinfobox]]''</small></div><br>
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{{region}}}</big>
<big>{{#if:{{{firstname|}}}|'''[[Firstname::{{{firstname}}}]]|}} {{#if:{{{middlename|}}}|[[Middlename::{{{middlename}}}]]|}} {{#if:{{{lastname|}}}|[[Lastname::{{{lastname}}}]]'''|}}</big>{{#if:{{{country|}}}|[[Image:Flag_of_{{{country}}}.svg‎|50px|none]]|}}
+
|-
{{#if:{{{flickr|}}}|<br>{{{flickr}}}|}}{{#if:{{{image|}}}|<br>[[Image:{{{image}}}|250px]]|}}
+
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
 +
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}
 
|-
 
|-
 
! [[:category:{{{country}}}|Country]]
 
! [[:category:{{{country}}}|Country]]
 
| [[Served in::{{{country|}}}]]
 
| [[Served in::{{{country|}}}]]
 
|-
 
|-
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_volunteers_{{{yearservicestarted}}}|Years:]]|}}
+
 
| {{#if:{{{yearservicestarted|}}}|[[Started service in::{{{yearservicestarted}}}]]|}}{{#if:{{{yearserviceended|}}}|-|}}{{#if:{{{yearserviceended|}}}|[[Ended service in::{{{yearserviceended}}}]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Volunteers who served in the region: [[{{{region}}}]]|}}
 
|-
 
|-
! {{#if:{{{groupcode|}}}|[[Property:Group code was|Group Code]]|}}
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
+
 
|-
 
|-
! {{#if:{{{site|}}}|[[Property:Name of community was|Site(s)]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Sites in: [[{{{region}}}]]|}}
| {{#arraymap:{{{site|}}}|,|x|[[Name of community was::x]]}}{{#arraymap:{{{site2|}}}|,|x|, [[Name of community was::x]]}}{{#arraymap:{{{site3|}}}|,|x|, [[Name of community was::x]]}}
+
 
|-
 
|-
! {{#if:{{{region|}}}|[[Property:Name of region was|Region(s)]]|}}
+
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:sites]] [[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#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(s)]]|}}
+
|}<br>
| {{#if:{{{program|}}}|[[Served in sector::{{{program}}}]]|}}{{#if:{{{program2|}}}|,[[Served in sector::{{{program2}}}]]|}}{{#if:{{{program3|}}}|,[[Served in sector::{{{program3}}}]]|}}
+
 
 +
{{#if:{{{wikipedia|}}}|{{wikipedia}}|}}<br>
 +
 
 +
{{#if:{{{appropedia|}}}|{{AppropediaLocation|{{{region}}}}}|}}<br>
 +
 
 +
{| 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>{{{region}}}, [[{{{country}}}]]</big>'''
 
|-
 
|-
! {{#if:{{{assignment01|}}}|[[Property:Primary assignment was|Assignment(s)]]|}}
+
|{{#if: Image:Flag_of_{{{country}}}.svg ‎| [[Image:Flag_of_{{{country}}}.svg‎|50px|none]] | }}  
| {{#if:{{{assignment01|}}}|[[Primary assignment was::{{{assignment01}}}]]|}}{{#if:{{{assignment02|}}}|,[[Primary assignment was::{{{assignment02}}}]]|}}{{#if:{{{assignment03|}}}|,[[Primary assignment was::{{{assignment03}}}]]|}}
+
|If you served in [[{{{country}}}]], please '''[[Form:Volunteer | create a page]]''' on yourself. Thanks!
|-
+
|}<br><br>
! {{#if:{{{state|}}}|[[Property:Is from state|From US state]]|}}
+
 
| {{#arraymap:{{{state|}}}|,|x|[[Is from state::x]]}}
+
 
|-
+
{{#if:{{{region|}}}<center>'''Volunteers who served in {{{region}}}'''</center>|}}
! {{#if:{{{uscity|}}}|[[Property:Is from town or city|From US town/city]]|}}
+
 
| {{#arraymap:{{{uscity|}}}|,|x|[[Is from town or city::x]]}}
+
{{#if:{{{region|}}}|{{#ask:[[Category:Volunteers]][[Name of region was::{{{region}}}]] | ?Name of community was | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was}}|}}
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_volunteers_{{{yearservicestarted}}}|Started]] in [[{{{country}}}]] [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]|}}
+
|-
+
! colspan="3"|{{#if:{{{yearservicestarted|}}}|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}|}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|[[Property:Name of region was|Region]]: [[{{{region}}}]]|}}
+
|-
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
+
|-
+
! 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 sector|{{{program}}}]] in [[:Category:{{{country}}}_{{lcfirst:{{{program}}}}}|{{{country}}}]]: |}}{{#if:{{{program|}}}|[[Image:{{{program}}}.gif|25px]]|}}
+
|-
+
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in sector::{{{program}}}]][[Served in::{{{country}}}]]|format=list|limit=10}}|}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{program2|}}}|[[Property:Served in sector|{{{program2}}}]] in [[:Category:{{{country}}}_{{{program2}}}|{{{country}}}]]: |}}{{#if:{{{program2|}}}|[[Image:{{{program2}}}.gif|25px]]|}}
+
|-
+
! colspan="3"|{{#if:{{{program2|}}}|{{#ask:[[Served in sector::{{{program2}}}]][[Served in::{{{country}}}]]|format=list|limit=10}}|}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|Other [[:Category:{{{country}}}_volunteers|Volunteers]] who served in [[{{{country}}}]]{{#if:{{{country|}}}|:[[Image:Flag_of_{{{country}}}.svg‎|20px|none]]|}}
+
|-
+
! colspan="3"|{{#ask:[[Served in::{{{country}}}]]|format=list|limit=15}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|[[:Category:{{{country}}}_projects|Projects]] in [[{{{country}}}]]{{#if:{{{country|}}}|:[[Image:Flag_of_{{{country}}}.svg‎|20px|none]]|}}
+
|-
+
! colspan="3"|{{#compound_query:[[Lastname::{{{lastname}}}]][[Project in::{{{country}}}]];|format=list}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|'''Don't see yourself, Add yourself or a friend!'''
+
<small>''Enter your '''first''' and '''last name'''''</small>{{#forminput:Volunteer}}
+
|-
+
! style="text-align: center; background-color:#ccccff;" colspan="3"| {{#if:{{{map|}}}|Mapped [[Volunteers who served in {{{country}}}|Volunteers]] around [[{{{country}}}]] [[:Category:{{{country}}} volunteers located|({{PAGESINCAT:{{{country}}}_volunteers_located}})]].|}}
+
{{#if:{{{map|}}}|You located yourself at based on your site: [[{{{site|}}}]]
+
<small>{{Location2
+
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}|}}</small>
+
}}
+
|-
+
! colspan="3"|{{#if:{{{map|}}}|{{#compound_query:[[Category:{{{country}}}_volunteers]][[Location Coordinates::+]];?Location Coordinates;icon=Vol.PNG‎|format=googlemap|width=350|height=400}}|}}
+
|}
+
  
{{#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}}}_region]]  
{{#if:{{{map|}}}|[[category:{{{country}}}_volunteers_located]]|}}
+
{{#if:{{{map|}}}|[[category:volunteers located]]|}}
+
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
+
{{#if:{{{program|}}}|[[category:{{{country}}}_{{lc:{{{program}}}}}]]|}}
+
{{#if:{{{program2|}}}|[[category:{{{country}}}_{{lc:{{{program2}}}}}]]|}}
+
{{#if:{{{program|}}}|[[category:{{{program}}}]]|}}
+
{{#if:{{{program2|}}}|[[category:{{{program2}}}]]|}}
+
{{#if:{{{assignment01|}}}|[[category:{{{country}}}_{{lc:{{{assignment01}}}}}]]|}}
+
{{#if:{{{assignment02|}}}|[[category:{{{country}}}_{{lc:{{{assignment02}}}}}]]|}}
+
{{#if:{{{assignment03|}}}|[[category:{{{country}}}_{{lc:{{{assignment03}}}}}]]|}}
+
{{#if:{{{assignment04|}}}|[[category:{{{country}}}_{{lc:{{{assignment04}}}}}]]|}}
+
{{#if:{{{assignment01|}}}|[[category:{{{assignment01}}}]]|}}
+
{{#if:{{{assignment02|}}}|[[category:{{{assignment02}}}]]|}}
+
{{#if:{{{assignment03|}}}|[[category:{{{assignment03}}}]]|}}
+
{{#if:{{{assignment04|}}}|[[category:{{{assignment04}}}]]|}}
+
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
+
[[Category:volunteers]]  
+
 
</includeonly>
 
</includeonly>

Revision as of 00:13, 23 March 2009

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

{{regionbox
|regionbar=
|region=
|country=
|wikipedia= (yes or no)
|wikitravel= (yes or no)....in development
|appropedia= (yes or no)
}}

Edit the page to see the template text.

Example:



{{#if:yes|Ecuador Regions|}}
{{#if:yes|{{#ask:}}|}}
{{#if:yes|Ecuador PC Sites|}}
{{#if:yes|{{#ask:}}|}}


Santa Elena
Region(s)|}} Santa Elena
Country Located in::Ecuador
{{#if:Santa Elena|Volunteers who served in the region: Santa Elena|}}
{{#if:Santa Elena|{{#ask: Served in::EcuadorName of region was::Santa Elena|format=list|limit=15}}|}}
{{#if:Santa Elena|Sites in: Santa Elena|}}
{{#if:Ecuador|{{#ask:|format=list|limit=15}}|}}
{{#if:Santa Elena|Projects in Santa Elena|}}
{{#if:Santa Elena|{{#ask:Name of region was::Santa ElenaProject in::Ecuador|format=list|limit=15}}|}}

{{#if:yes|

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

{{#if:yes|

See Appropriate technology information on Santa Elena at:Santa Elena at Appropedia.

|}}

Santa Elena, Ecuador
| }} If you served in Ecuador, please create a page on yourself. Thanks!



{{#if:Santa Elena|==Volunteers Who Have Served in Santa Elena==|}} {{#if:Santa Elena|{{#ask:Name of region was::Santa ElenaServed in::Ecuador | ?Name of community was | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was| sort = Started service in| | order = ascending}}|}}

{{#if:Santa Elena||}}