Difference between revisions of "Template:Sitebox"

From Peace Corps Wiki
Jump to: navigation, search
m (66 revisions)
 
(6 intermediate revisions by 3 users not shown)
Line 69: Line 69:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
  
<div style=" text-align: center; font-size: 90%;">
+
<center><div style=" text-align: center; font-size: 90%;">
 
{| style="font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; 1em; padding: 0.2em; float: center; text-align:center;"
 
{| style="font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; 1em; padding: 0.2em; float: center; text-align:center;"
 
|-
 
|-
Line 80: Line 80:
 
| style="text-align: center;" |{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]]}}|}}
 
| style="text-align: center;" |{{#if:{{{sitebar|}}}|{{#ask:[[Category:{{{country}}}_sites]] [[Category:Location]]}}|}}
 
|}
 
|}
</div>
+
</div></center>
  
 
{| 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 111: Line 111:
 
|}
 
|}
 
{{#if:{{{wikipedia|}}}|{{wikipedia}}|}}
 
{{#if:{{{wikipedia|}}}|{{wikipedia}}|}}
{{#if:{{{appropedia|}}}|{{AppropediaLocation|{{{site}}}}}|}}
+
{{#if:Yes|{{AppropediaLocation|{{{site}}}}}|}}
  
 
{| border="2" class="noprint" class="toccolours" style="clear:right; float:right; background: #f9f9f9; width: 250px;" cellspacing="3" cellpadding="3" rules="none"
 
{| 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>{{{site}}}, [[{{{country}}}]]</big>'''
+
| colspan="2" align="center" | '''<big>{{{site}}}, [[Located in::{{{country}}}]]</big>'''
 
|-
 
|-
 
|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!
Line 133: Line 133:
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{country|}}}|[[Category:{{{country}}}_sites]]|}}   
 
{{#if:{{{country|}}}|[[Category:{{{country}}}_sites]]|}}   
{{#if:{{{country|}}}|[[Located in::{{{country}}}]]|}}
 
 
{{#if:{{{map|}}}|[[Category:sites_located]]|}}
 
{{#if:{{{map|}}}|[[Category:sites_located]]|}}
 
[[Category:sites]]
 
[[Category:sites]]
 
</includeonly>
 
</includeonly>

Latest revision as of 13:38, 21 May 2014

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

|}