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

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
(changed variables slightly...testing)
 
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'memorialvolunteerbox' template.
+
This is the 'Sitebox' template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{memorialvolunteerbox
+
{{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)
|fatalitycause=
+
|volunteertable= (yes or no)
|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.
  
Line 33: Line 23:
 
|-
 
|-
 
|
 
|
<pre>{{memorialvolunteerbox
+
<pre>{{Sitebox
|firstname= Joe
+
|site= Quito
|middlename=
+
|sitebar= yes
|lastname= Peaceman
+
|country= Ecuador
|country= Armenia
+
|region= Pichincha
|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
|fatalitycause=
+
|wikipedia= yes
|fatalitydate=
+
|wikitravel=  
 +
|appropedia= yes
 +
|volunteertable= yes
 
}}
 
}}
 
</pre>
 
</pre>
Line 69: Line 50:
  
  
{{memorialvolunteerbox
+
{{Sitebox
|firstname= Joe
+
|site= Quito
|middlename=
+
|sitebar= yes
|lastname= Peaceman
+
|country= Ecuador
|country= Armenia
+
|region= Pichincha
|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
|fatalitycause=auto
+
|wikipedia= yes
|fatalitydate=Jan 1 2005
+
|wikitravel=  
 +
|appropedia= yes
 +
|volunteertable= yes
 
}}
 
}}
 
|}
 
|}
  
 +
[[Category:templates sites]]
 
[[Category:templates infoboxes]]
 
[[Category:templates infoboxes]]
[[Category:templates volunteers]]
+
</noinclude><includeonly>
[[Category:templates memorials]]
 
  
</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="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" |
 
IN MEMORY OF<br>
 
<big>{{PAGENAME}}</big><br>
 
{{#if:{{{fatalitydate|}}}|Passed away on:[[Date of death::{{{fatalitydate}}}]]|}}<br>
 
 
|-
 
|-
! [[:category:{{{country}}}|Country]]
+
| style="text-align: center; background-color:#ccccff;"|{{#if:{{{sitebar|}}}|[[{{{country}}}_regions|{{{country}}} Regions]]|}}
| [[Served in::{{{country|}}}]]
 
 
|-
 
|-
! [[:category:{{{country}}}_Volunteers_{{{yearservicestarted}}}|Years:]]
+
| style="text-align: center;" |{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}
| [[Started service in::{{{yearservicestarted|}}}]]-[[Ended service in::{{{yearserviceended|}}}]]
 
 
|-
 
|-
! {{#if:{{{groupcode|}}}|[[:category:groupcodes|Group Code]]|}}
+
| style="text-align: center; background-color:#ccccff;" |{{#if:{{{sitebar|}}}|[[{{{country}}}_sites|{{{country}}} PC Sites]]|}}
| {{#arraymap:{{{groupcode|}}}|,|x|[[Group code was::x]]}}
 
 
|-
 
|-
! {{#if:{{{site|}}}|[[Property:Name of community was|Site(s)]]|}}
+
| style="text-align: center;" |{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]]}}|}}
| {{#arraymap:{{{site|}}}|,|x|[[Name of community was::x]]}}{{#arraymap:{{{site2|}}}|,|x|, [[Name of community was::x]]}}{{#arraymap:{{{site3|}}}|,|x|, [[Name of community was::x]]}}
+
|}
 +
 
 +
{| 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]]'' <div align="right"><small>''[[Template:{{PAGENAME}}|edit template]]''</small></div><''<big>{{{site}}}, [[{{{country}}}]]</big>
 
|-
 
|-
! {{#if:{{{region|}}}|[[Property:Name of region was|Region(s)]]|}}
+
! {{#if:{{{region|}}}|[[:category:regions|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]]}}
+
| {{#arraymap:{{{region|}}}|,|x|[[Located in::x]]}}
 
|-
 
|-
! [[Property:Served in sector|Program]]
+
! {{#if:{{{sitetotalvolunteers|}}}|Total Volunteers:|}}
| [[Served in sector::{{{program|}}}]]
+
| {{#arraymap:{{{sitetotalvolunteers|}}}|,|x|[[Total number of Volunteers since Site Establishment is::x]]|}}
 
|-
 
|-
! {{#if:{{{assignment01|}}}|[[Property:Primary assignment was|Assignment(s)]]|}}
+
! {{#if:{{{siteyearestablished|}}}|Established:|}}
| {{#arraymap:{{{assignment01|}}}|,|x|[[Primary assignment was::x]]}}{{#arraymap:{{{assignment02|}}}|,|x|, [[Primary assignment was::x]]}}{{#arraymap:{{{assignment03|}}}|,|x|, [[Primary assignment was::x]]}}
+
| {{#arraymap:{{{sitetotalvolunteers|}}}|,|x|[[Year of Site Establishment was::x]]|}}
 
|-
 
|-
! {{#if:{{{fatalitycause|}}}|[[Property:Cause of fatality|Cause of fatality:]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}| Volunteered in [[{{{region}}}]]|}}
| {{#if:{{{fatalitycause|}}}|[[Cause of death::{{{fatalitycause}}}]]|}}<br>
 
 
|-
 
|-
! {{#if:{{{state|}}}|[[Property:Is from state|Volunteer's Homestate]]|}}
+
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
| {{#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}}}]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other sites in [[{{{region}}}]]|}}
 
|-
 
|-
! colspan="3"|{{#ask:[[Category:Volunteer memorial]][[Served in::{{{country}}}]]|format=list|limit=15}}
+
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]][[Category:{{{region}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! style="text-align: center; background-color:mediumorchid;" colspan="3"|{{#if:{{{fatalitydate|}}}|Passed away in: [[Property:Date of death|{{{fatalitydate}}}]]|}}
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{site|}}}|Volunteers who served at {{{site}}}|}}
 
|-
 
|-
! colspan="3"|{{#ask:[[Category:Volunteer memorial]][[Date of death::{{{fatalitydate}}}]]|format=list|limit=15}}
+
! colspan="3"|{{#if:{{{site|}}}|{{#ask:[[Name of community was::{{{site}}}]]|format=list|limit=15}}|}}
 
|-
 
|-
! style="text-align: center; background-color:mediumorchid;" colspan="3"|Started service in [http://www.peacecorpswiki.org/Special:BrowseData/Years?_subcat={{{yearserviceended}}} {{{yearserviceended}}}]
+
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{site|}}}|Projects at {{{site}}}|}}
 
|-
 
|-
! colspan="3"|{{#ask:[[Category:Volunteer memorial]][[Ended service in::{{{yearserviceended}}}]]|format=list|limit=15}}
+
! colspan="3"|{{#if:{{{site|}}}|{{#ask:[[Name of community was::{{{site}}}]][[Project in::{{{country}}}]]|format=list|limit=15}}|}}
|-
+
|}
! style="text-align: center; background-color:mediumorchid;" colspan="3"|{{#if:{{{state|}}}|From US State: [[{{{state}}}]]|}}
+
{{#if:{{{wikipedia|}}}|{{wikipedia}}|}}
|-
+
{{#if:{{{appropedia|}}}|{{AppropediaLocation|{{{site}}}}}|}}
! colspan="3"|{{#if:{{{state|}}}|{{#ask:[[Category:Volunteer memorial]][[Is from state::{{{state}}}]]|format=list|limit=15}}|}}
+
 
|-
+
{| border="2" class="noprint" class="toccolours" style="clear:right; float:right; background: #f9f9f9; width: 250px;" cellspacing="3" cellpadding="3" rules="none"
! style="text-align: center; background-color:mediumorchid;" colspan="3"|{{#if:{{{program|}}}|[[{{{program}}}]] in {{{country}}}|}}
+
| colspan="2" align="center" | '''<big>{{{site}}}, [[{{{country}}}]]</big>'''
|-
 
! colspan="3"|{{#if:{{{program|}}}|{{#ask:[[Served in::{{{country}}}]][[Served in sector::{{{program}}}]][[Category:Volunteer memorial]]|format=list|limit=15}}|}}
 
|-
 
! style="text-align: center; background-color:mediumorchid;" colspan="3"|Other [[:Category:[[Served in::{{{country}}}]]_Volunteers|Volunteers]] who served in [[{{{country}}}]]
 
 
|-
 
|-
! colspan="3"|{{#ask:[[Date of death::{{{country}}}]]|format=list|limit=15}}
+
|If you served in [[{{{country}}}]], please '''[[Form:Volunteer | create a page]]''' on yourself. Thanks!
 +
{{#if:{{{map|}}}|Map [[{{{country}}}_sites|Sites in {{{country}}}]]|}}
 
|}
 
|}
  
Line 160: Line 122:
 
}}|}}
 
}}|}}
  
{{#if:{{{yearservicestarted|}}}[[category:{{{country}}}_Volunteers_{{{yearservicestarted}}}]]|}}
+
 
{{#if:{{{yearserviceended|}}}[[category:{{{yearserviceended}}}]]|}}
+
 
{{#if:{{{yearservicestarted|}}}[[category:{{{yearservicestarted}}}]]|}}
+
{{#if:{{{volunteertable|}}}|==Volunteers Who Have Served in {{{site}}}==
{{#if:{{{site|}}}|[[category:{{{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:{{{region|}}}|[[category:{{{region|}}}]]|}}  
{{#if:{{{groupcode|}}}|[[category:{{{groupcode|}}}]]|}}
+
{{#if:{{{country|}}}|[[Category:{{{country}}}_sites]]|}}
{{#if:{{{fatalitydate|}}}|[[category:Volunteer memorials]]|}}
+
{{#if:{{{country|}}}|[[Located in::{{{country}}}|]] |}}
{{#if:{{{state|}}}|[[category:{{{state}}}]]|}}
 
{{DEFAULTSORT:{{{lastname}}},{{{firstname}}} }}
 
[[Category:volunteers]]
 
 
</includeonly>
 
</includeonly>

Revision as of 10:02, 26 April 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
|sitetotalvolunteers= ?
|siteyearestablished= ?
|map= yes
|wikipedia= yes
|wikitravel= 
|appropedia= yes
|volunteertable= yes
}}








{{#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| Volunteered in Pichincha|}}
{{#if:Pichincha|{{#ask: Served in::EcuadorName of region was::Pichincha|format=list|limit=15}}|}}
{{#if:Pichincha|Other sites in Pichincha|}}
{{#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 | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was| sort = Started service in | order = ascending }}|}}

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

|}