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

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
m (changing background to white)
 
m (fixing bar for region projects)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'memorialvolunteerbox' template.
+
This is the 'regionbox' template.
 
It should be called in the following format:
 
It should be called in the following format:
 +
 
<pre>
 
<pre>
{{memorialvolunteerbox
+
{{regionbox
|firstname=
+
|regionbar=
|middlename=
+
|lastname=
+
|country=
+
|yearservicestarted=
+
|yearserviceended=
+
|groupcode=
+
|site=
+
|site2=
+
|site3=
+
 
|region=
 
|region=
|region2=
+
|country=
|region3=
+
|wikipedia= (yes or no)
|program=
+
|wikitravel= (yes or no)....in development
|assignment01=
+
|appropedia= (yes or no)
|assignment02=
+
|assignment03=
+
|fatalitycause=
+
|fatalitydate=
+
|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>{{memorialvolunteerbox
+
|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
+
|fatalitycause=
+
|fatalitydate=
+
 
}}
 
}}
</pre>
 
  
 +
</noinclude><includeonly>
  
|
 
  
  
 +
<div style=" text-align: center; font-size: 90%;">{{#if:{{{regionbar|}}}|[[{{{country}}}_regions|{{{country}}} Regions]]|}}</div>
 +
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}</div>
 +
<div style=" text-align: center; font-size: 90%;">{{#if:{{{regionbar|}}}|[[{{{country}}}_sites|{{{country}}} PC Sites]]|}}</div>
 +
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]]}}|}}</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="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{{region}}}</big>
 
+
 
+
 
+
 
+
{{memorialvolunteerbox
+
|firstname= Joe
+
|middlename=
+
|lastname= Peaceman
+
|country= Armenia
+
|yearservicestarted= 2008
+
|yearserviceended= 2010
+
|groupcode= A-17
+
|site= Jermuk
+
|site2=
+
|site3= Vyke
+
|region= Vayots Dzor
+
|region2=
+
|region3=
+
|program= Environment
+
|assignment01=
+
|assignment02=
+
|assignment03=
+
|map= yes
+
|fatalitycause=auto
+
|fatalitydate=Jan 1 2005
+
}}
+
|}
+
 
+
</noinclude><includeonly>
+
{| style="width: 30em; font-size: 90%; border: 1px solid #FF0000; background-color: #FFFFFF; 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" |IN MEMORY OF <big>{{PAGENAME}}</big><br>
+
[[Cause of death::{{{fatalitycause}}}]]<br>
+
[[Date of death::{{{fatalitydate}}}]]<br>
+
 
+
|-
+
! [[:category:{{{country}}}|Country]]
+
| [[Served in::{{{country|}}}]]
+
|-
+
! [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]
+
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
+
|-
+
! {{#if:{{{groupcode|}}}|[[:category:groupcodes|Group Code]]|}}
+
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
+
|-
+
! {{#if:{{{site|}}}|[[:category:sites|Site(s)]]|}}
+
| {{#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|}}}|[[:category:regions|Region(s)]]|}}
 
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}{{#arraymap:{{{region2|}}}|,|x|, [[Name of region was::x]]}}{{#arraymap:{{{region3|}}}|,|x|,[[Name of region was::x]]}}
+
| [[{{{region}}}]]
 
|-
 
|-
! [[:category:programs|Program]]
+
! [[:category:{{{country}}}|Country]]
| [[Served in sector::{{{program|}}}]]
+
| [[Located in::{{{country|}}}]]
 
|-
 
|-
! {{#if:{{{assignment01|}}}|[[:category:assignments|Assignment(s)]]|}}
+
 
| {{#arraymap:{{{assignment01|}}}|,|x|[[Primary assignment was::x]]}}{{#arraymap:{{{assignment02|}}}|,|x|, [[Primary assignment was::x]]}}{{#arraymap:{{{assignment03|}}}|,|x|, [[Primary assignment was::x]]}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Volunteers who served in the region: [[{{{region}}}]]|}}
 
|-
 
|-
! style="text-align: center; background-color:#FFFF00;" colspan="3"|In Memory of those in [http://www.peacecorpswiki.org/Special:BrowseData/Memorial?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! colspan="3"|{{#ask:[[Category:Volunteer memorial]]|format=list|limit=15}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Sites in: [[{{{region}}}]]|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|Started service in [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearservicestarted}}} {{{yearservicestarted}}}]
+
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]][[Category:{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! colspan="3"|{{#ask:[[Served in::{{{country}}}]][[Started service in::{{{yearservicestarted}}}]]|format=list|limit=15}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Projects in {{{region}}}|}}
 
|-
 
|-
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Region: [[{{{region}}}]]|}}
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Name of region was::{{{region}}}]][[Project in::{{{country}}}]]|format=list|limit=15}}|}}
 +
|}<br>
 +
 
 +
{{#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>'''
 
|-
 
|-
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
+
|{{#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="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region2|}}}|Region: [[{{{region2}}}]]|}}
+
|}<br><br>
|-
+
 
! 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|}}}|Program: [[{{{program}}}]]|}}
+
|-
+
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in::{{{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}}
+
|}
+
  
{{#if:{{{map|}}}|{{Location
+
{{#if:{{{region|}}}|==Volunteers Who Have Served in {{{region}}}==|}}
|Coordinates={{#geocode:{{{site}}},{{{country}}}}}
+
{{#if:{{{region|}}}|{{#ask:[[Category:Volunteers]][[Name of region was::{{{region}}}]][[Served in::{{{country}}}]] | ?Name of community was | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was| sort = Started service in|
}}|}}
+
| order = ascending}}|}}
  
[[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]]
 
[[category:{{{yearservicestarted}}}]]
 
{{#if:{{{site|}}}|[[category:{{{site|}}}]]}}
 
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
+
[[Category:{{{country}}}_regions]]  
{{#if:{{{fatalitydate|}}}|[[category:Volunteer memorial]]}}
+
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
+
[[Category:volunteers]]  
+
 
</includeonly>
 
</includeonly>

Revision as of 08:00, 6 May 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||}}