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

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
m (65 revisions imported)
 
(attempting to create "Region" template box with list of volunteers and sites in region)
 
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=
+
|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=
 
|assignment01=
 
|assignment02=
 
|assignment03=
 
|fatalitycause=
 
|fatalitydate=
 
|state=
 
|uscity=
 
|ageatdeath=
 
|image=
 
 
}}
 
}}
 
</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>'''
 
|-
 
|
 
<pre>{{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=
 
|fatalitycause=
 
|fatalitydate= Jan 1 2005
 
|ageatdeath=
 
|image=
 
  
 +
{{regionbox
 +
|regionbar=yes
 +
|region=Santa Elena
 +
|country=Ecuador
 +
|wikipedia= yes
 +
|wikitravel= yes
 +
|appropedia= yes
 
}}
 
}}
</pre>
 
  
 +
</noinclude><includeonly>
  
|
+
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}</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>{{{region}}}, [[{{{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!
 
 
 
 
{{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=
 
|fatalitycause=auto
 
|fatalitydate=Jan 1 2005
 
|ageatdeath=24
 
|image=Presentation image.jpg
 
}}
 
 
|}
 
|}
 
+
{| 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;"
[[Category:templates]]
+
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>{{{site}}}</big>
[[Category:templates infoboxes]]
 
[[Category:templates volunteers]]
 
[[Category:templates memorials]]
 
 
 
</noinclude><includeonly>
 
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: white; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
! style="text-align: center; :link: #C0C0C0; background-color:mediumorchid;" colspan="2" |<div align="right"><small>''[[Template:memorialvolunteerbox]]''</small></div><br>[[:Category:Volunteer memorials|IN MEMORY OF]]<br><big>{{#if:{{{firstname|}}}|'''[[Firstname::{{{firstname}}}]]|}} {{#if:{{{middlename|}}}|[[Middlename::{{{middlename}}}]]|}} {{#if:{{{lastname|}}}|[[Lastname::{{{lastname}}}]]'''|}}</big><br>
 
{{#if:{{{fatalitydate|}}}|[[Property:Date of death|Passed away]]: [[Date of death::{{{fatalitydate}}}]]|}} <br>
 
{{#if:{{{image|}}}|[[Image:{{{image}}}|200px]]|}}
 
 
|-
 
|-
 
! [[:category:{{{country}}}|Country]]
 
! [[:category:{{{country}}}|Country]]
| [[Served in::{{{country}}}]]
+
| [[Served in::{{{country|}}}]]
|-
 
! {{#if:{{{yearservicestarted|}}}|[[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Started Service:]]|}}
 
| {{#if:{{{yearservicestarted|}}}|[[Started service in::{{{yearservicestarted}}}]]|}}
 
|-
 
! {{#if:{{{groupcode|}}}|[[:category:groupcodes|Group Code]]|}}
 
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
 
|-
 
! {{#if:{{{site|}}}|[[Property:Name of community was|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|}}}|[[Property:Name of region was|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]]}}
 
|-
 
! {{#if:{{{program|}}}[[Property:Served in sector|Program]]|}}
 
| {{#if:{{{program|}}}[[Served in sector::{{{program}}}]]|}}
 
|-
 
! {{#if:{{{assignment01|}}}|[[Property:Primary assignment was|Assignment(s)]]|}}
 
| {{#arraymap:{{{assignment01|}}}|,|x|[[Primary assignment was::x]]}}{{#arraymap:{{{assignment02|}}}|,|x|, [[Primary assignment was::x]]}}{{#arraymap:{{{assignment03|}}}|,|x|, [[Primary assignment was::x]]}}
 
|-
 
! {{#if:{{{fatalitycause|}}}|[[Property:Cause_of_death|Cause of death:]]|}}
 
| {{#if:{{{fatalitycause|}}}|[[Cause of death::{{{fatalitycause}}}]]|}}
 
|-
 
! {{#if:{{{ageatdeath|}}}|[[Property:Age at death|Age:]]|}}
 
| {{#if:{{{ageatdeath|}}}|[[Age at death::{{{ageatdeath}}}]]|}}
 
|-
 
! {{#if:{{{state|}}}|[[Property:Is from state|Volunteer's Homestate]]|}}
 
| {{#if:{{{state|}}}|[[Is from state::{{{state}}}]]|}}
 
 
|-
 
|-
! style="text-align: center; background-color:mediumorchid;" colspan="3"|{{#if:{{{country|}}}|Passed away while serving in: [[Special:Browse/{{{country}}}|{{{country}}}]]|}}
+
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
 +
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}
 
|-
 
|-
! colspan="3"|{{#ask:[[Category:Volunteer memorials]][[Served in::{{{country}}}]]|format=list|limit=15}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other Volunteers who served in the region: [[{{{region}}}]]|}}
 
|-
 
|-
! style="text-align: center; background-color:mediumorchid;" colspan="3"|{{#if:{{{fatalitydate|}}}|Passed away in: [[Property:Date of death|{{{fatalitydate}}}]]|}}
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{fatalitydate|}}}|{{#ask:[[Category:Volunteer memorials]][[Date of death::{{{fatalitydate}}}]]|format=list|limit=15}}|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other sites in: [[{{{region}}}]]|}}
 
|-
 
|-
! style="text-align: center; background-color:mediumorchid;" colspan="3"|{{#if:{{{state|}}}|From US State: [[{{{state}}}]]|}}
+
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:sites]] [[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{state|}}}|{{#ask:[[Category:Volunteer memorials]][[Is from state::{{{state}}}]]|format=list|limit=15}}|}}
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
|-
 
! style="text-align: center; background-color:mediumorchid;" colspan="3"|{{#if:{{{program|}}}|[[{{{program}}}]] in {{{country}}}|}}
 
|-
 
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in::{{{country}}}]][[Served in sector::{{{program}}}]][[Category:Volunteer memorials]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:mediumorchid;" colspan="3"|Other Volunteers who passed away while serving in Peace Corps.
 
|-
 
! colspan="3"|{{#ask:[[Date of death::+]]|format=list|limit=15}}
 
|-
 
! style="text-align: center; " colspan="3"|Source: [[FOIA_10076|FOIA request #10076 (June 2010)]]
 
 
|}
 
|}
{{#if:{{{yearservicestarted|}}}[[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]]|}}  
+
}}|}}
{{#if:{{{yearserviceended|}}}[[category:{{{yearserviceended}}}]]|}}
+
 
{{#if:{{{yearservicestarted|}}}[[category:{{{yearservicestarted}}}]]|}}
+
{{#if:{{{region|}}}<center>'''Volunteers who served in {{{region}}}'''</center>|}}
{{#if:{{{site|}}}|[[category:{{{site|}}}]]|}}  
+
 
 +
{{#if:{{{region|}}}|{{#ask:[[Name of region was::{{{region}}}]] | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was}}|}}
 +
 
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
+
[[Category:{{{country}}}_region]]  
{{#if:{{{fatalitydate|}}}|[[category:Volunteer memorials]]|}}
 
{{#if:{{{state|}}}|[[category:{{{state}}}]]|}}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
[[Category:volunteers]]  
 
 
</includeonly>
 
</includeonly>

Revision as of 22:38, 22 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||}}