Difference between revisions of "Template:Sitebox"

From Peace Corps Wiki
Jump to: navigation, search
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'Sitetest2' template.
+
This is the 'Sitebox' template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{Sitetest2
+
{{Sitebox
 
|site= (usually page name...but if different)
 
|site= (usually page name...but if different)
 
|sitebar= (yes or no)
 
|sitebar= (yes or no)
Line 17: Line 17:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
{{Sitetest2
 
|sitebar= yes
 
|country= Armenia
 
|region= Vayots Dzor
 
|site= Jermuk
 
|sitetotalvolunteers= 7
 
|siteyearestablished= 1994
 
|appropedia= yes
 
|wikipedia= yes
 
}}
 
 
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
Line 53: Line 41:
 
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}
 
| {{#arraymap:{{{region|}}}|,|x|[[Name of region was::x]]}}
 
|-
 
|-
! {{#if:{{{sitetotalvolunteers|}}}|Total number of Volunteers since site establishment|}}
+
! {{#if:{{{sitetotalvolunteers|}}}|Total Volunteers:|}}
| {{#if:{{{sitetotalvolunteers|}}}|[[Total number of Volunteers since Site Establishment is::{{{sitetotalvolunteers|}}}]]|}}
+
| {{#arraymap:{{{sitetotalvolunteers|}}}|,|x|[[Total number of Volunteers since Site Establishment is::x]]|}}
 
|-
 
|-
! {{#if:{{{siteyearestablished|}}}|Year of Site Establishment was:|}}
+
! {{#if:{{{siteyearestablished|}}}|Established:|}}
| {{#if:{{{siteyearestablished|}}}|[[Year of Site Establishment was::{{{siteyearestablished|}}}]]|}}
+
| {{#arraymap:{{{sitetotalvolunteers|}}}|,|x|[[Year of Site Establishment was::x]]|}}
 
|-
 
|-
 
! 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:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other Volunteers who served in the region: [[{{{region}}}]]|}}
Line 63: Line 51:
 
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
 
! colspan="3"|{{#if:{{{region|}}}|{{#ask:[[Category:volunteers]] [[Served in::{{{country}}}]][[Name of region was::{{{region}}}]]|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:#ccccff;" colspan="3"|{{#if:{{{region|}}}|Other 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:sites]] [[Name of region was::{{{region}}}]]|format=list|limit=15}}|}}
Line 74: Line 62:
 
|Coordinates={{#geocode:{{{PAGENAME}}},{{{country}}}}}
 
|Coordinates={{#geocode:{{{PAGENAME}}},{{{country}}}}}
 
}}|}}
 
}}|}}
<center>'''{{#if:{{{site|}}}|Volunteers who served in {{{site}}}|}}'''</center>
 
  
{{#if:{{{site|}}}
+
{{#if:{{{site|}}}<center>'''Volunteers who served in {{{site}}}'''</center>|}}
|{{#ask:[[Name of community was::{{{site}}}]]  
+
 
| ?Started service in  
+
{{#if:{{{site|}}}|{{#ask:[[Name of community was::{{{site}}}]] | ?Started service in | ?Ended service in | ?Served in sector| ?Primary assignment was}}|}}
| ?Ended service in  
 
| ?Served in sector
 
| ?Primary assignment was
 
}}|}}
 
  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
{{#if:{{{region|}}}|[[category:{{{region|}}}]]|}}  
 
[[Category:{{{country}}}_sites]]  
 
[[Category:{{{country}}}_sites]]  
 
</includeonly>
 
</includeonly>

Revision as of 22:07, 25 March 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)
}}

Edit the page to see the template text.