Difference between revisions of "Template:Regionbox"

From Peace Corps Wiki
Jump to: navigation, search
(I moved the volunteer table to the top of the page to see if the info box would float to the side.... nice work cleaning this up.)
m (25 revisions)
 
(19 intermediate revisions by 4 users not shown)
Line 25: Line 25:
 
|appropedia= yes
 
|appropedia= yes
 
}}
 
}}
 +
[[Category:templates regions]]
 +
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
  
<div style=" text-align: center; font-size: 80%;">{{#if:{{{regionbar|}}}|{{#ask:[[Category:{{{country}}}_regions]]}}|}}</div>
 
  
{{#if:{{{region|}}}<center>'''Volunteers who served in {{{region}}}'''</center>|}}
 
  
{{#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}}|}}
+
<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="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;"
Line 38: Line 42:
 
|-
 
|-
 
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
 
! {{#if:{{{region|}}}|[[:category:regions|Region(s)]]|}}
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}
+
| [[{{{region}}}]]
 
|-
 
|-
 
! [[:category:{{{country}}}|Country]]
 
! [[:category:{{{country}}}|Country]]
| [[Served in::{{{country|}}}]]
+
| [[Located in::{{{country|}}}]]
 
|-
 
|-
  
Line 50: Line 54:
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Sites in: [[{{{region}}}]]|}}
 
! style="text-align: center; background-color:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Sites in: [[{{{region}}}]]|}}
 
|-
 
|-
! colspan="3"|{{#if:{{{country|}}}|{{#ask:[[Category:sites]] [[Name of region was::{{{region}}}]]|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:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Projects in {{{region}}}|}}
 +
|-
 +
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Name of region was::{{{region}}}]][[Project in::{{{country}}}]]|format=list|limit=15}}|}}
 
|}<br>
 
|}<br>
  
Line 64: Line 71:
 
|If you served in [[{{{country}}}]], please '''[[Form:Volunteer | create a page]]''' on yourself. Thanks!
 
|If you served in [[{{{country}}}]], please '''[[Form:Volunteer | create a page]]''' on yourself. Thanks!
 
|}<br><br>
 
|}<br><br>
 +
 +
 +
{{#if:{{{region|}}}|==Volunteers Who Have Served in {{{region}}}==|}}
 +
{{#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}}|}}
  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
[[Category:{{{country}}}_region]]  
+
[[Category:{{{country}}}_regions]]  
 
</includeonly>
 
</includeonly>

Latest revision as of 13:38, 21 May 2014

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||}}