Template:Country box: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Add iso code, wiki link)
No edit summary
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>
<div class="country-template"; style="clear: right; float:right; margin-right: 0px; border-style: solid; border-width:1px; border-color: #AAAAAA; padding: 1ex; background-color: #F6F9ED; -moz-border-radius: 8px;">
<div class="country-template"; style="clear: right; float:right; margin-right: 0px; border-style: solid; border-width:1px; border-color: #AAAAAA; padding: 1ex; background-color: #F6F9ED; -moz-border-radius: 8px;">
<div class="country-template-head"; style="padding: 8px; border-style: none; border-width:1px; border-color: #AAAAAA; background-color: #F6F9ED; -moz-border-radius: 8px;">
<div class="country-template-head"; style="padding: 8px; border-style: none; border-width:1px; border-color: #AAAAAA; background-color: #F6F9ED; -moz-border-radius: 8px;">
{|style="background-color: #F6F9ED;"
{|style="background-color: #F6F9ED;"
[[Image:translate9.svg|40px|left]]
[[Image:{{{Flag|translate9.svg}}}|40px|left]]
<h1 style="font-size: 150%; font-weight: bolder; color: #FCC65B;">
<h1 style="font-size: 150%; font-weight: bolder; color: #FCC65B;">
{{{Country|Set Country param}}}</h1>
{{{Country|Set Country param [[Category:Country_Invalid]]}}}</h1>
|}
|}
</div>
</div>
Line 10: Line 11:
{| border=1
{| border=1


{{Sandbox2|Country Information}}
{{Country_box_1|Country Information}}
{{Sandbox4|ISO Country Code|0| {{{code|Set Code Param}}} }}
{{Country_box_2|ISO Country Code|0| {{{Code|Set Code Param [[Category:Country_Invalid]]}}} }}
{{Sandbox4|Wikipedia Article|0| [http://en.wikipedia.com/{{{Wikipedia| Set }}} Wikipedia Link] }}
{{Country_box_2|Wikipedia Article|0| [http://en.wikipedia.com/wiki/{{{Wikipedia|{{{Country| [[Category:Country_Invalid]]Set}}}}}} Wikipedia Link] }}


{{Sandbox4|Territory|{{{Territory|1}}}
{{Country_box_2|Government Support|{{{Support|1}}}
|[[:Category:Country_Invalid|Invalid Support Param]][[Category:Country_Invalid]]
|Invalid Territory
|[[:Category:Country_Invalid|Set Support Param]] [[Category:Country_Invalid]]
|Set Territory Param
|[[:Category:Country_Support_Unknown|Unknown]] [[Category:Country_Support_Unknown]]
|Spanish America
|[[:Category:Country_Support_Low|Low and not OLPC Priority]] [[Category:Country_Support_Low]]
|North America
|[[:Category:Country_Support_Priority|Low and OLPC Priority]] [[Category:Country_Support_Priority]]
|Europe/NATO
|[[:Category:Country_Support_Interest|High Level Interest]] [[Category:Country_Support_Interest]]
|Northern Africa
|[[:Category:Country_Support_Commitment|Commitment in Principal]] [[Category:Country_Support_Commitment]]
|Asia
|[[:Category:Country_Support_Trials|Sponsored Trials]] [[Category:Country_Support_Trials]]
|Subsaharan Africa
|[[:Category:Country_Support_Contingent|Contingent Adoption]] [[Category:Country_Support_Contingent]]
|Other}}
|[[:Category:Country_Support_Adoption|Adoption]] [[Category:Country_Support_Adoption]]}}


{{Sandbox4|Government Support|{{{Support|1}}}
{{Country_box_2|Deployment|{{{Deployment|1}}}
|[[:Category:Country_Invalid|Invalid Deployment Param]] [[Category:Country_Invalid]]
|Invalid Support Param
|[[:Category:Country_Invalid|Set Deployment Param]] [[Category:Country_Invalid]]
|Set Support Param
|[[:Category:Country_Deployment_Unknown|Unknown]] [[Category:Country_Deployment_Unknown]]
|Low and not OLPC Priority
|[[:Category:Country_Deployment_None|None]] [[Category:Country_Deployment_None]]
|Low and OLPC Priority
|[[:Category:Country_Deployment_Demonstration|Demonstration (under 50 machines)]] [[Category:Country_Deployment_Demonstration]]
|High Level Interest
|[[:Category:Country_Deployment_Trial|Trial (50 to 500 machines)]] [[Category:Country_Deployment_Trial]]
|Commitment in Principal
|[[:Category:Country_Deployment_Int_Trial|Intermediate Trial (500 to 5000 machines)]] [[Category:Country_Deployment_Int_Trial]]
|Sponsored Trials
|[[:Category:Country_Deployment_Wide|Wide adoption (over 5000 machines)]] [[Category:Country_Deployment_Wide]]}}
|Contingent Adoption
|Adoption}}


{{Country_box_1|Languages}}
{{Sandbox4|Deployment|{{{Deployment|1}}}
{{Country_box_2|Keyboard Layout|0| {{{Keyboard|Set Keyboard Param [[Category:Country_Invalid]]}}} }}
|Invalid Deployment Param
{{Country_box_2|Written|0| {{{Written|Set Written Param [[Category:Country_Invalid]]}}} }}
|Set Deployment Param
{{Country_box_2|Spoken|0| {{{Written|Set Spoken Param [[Category:Country_Invalid]]}}} }}
|None
{{Country_box_2|Secondary Written|0|{{{Written2|None}}} }}
|Demonstration (under 50 machines)
{{Country_box_2|Secondary Spoken|0|{{{Spoken2|None}}} }}
|Trial (50 to 500 machines)
|Intermediate Trial (500 to 5000 machines)
|Wide adoption (over 5000 machines)}}

{{Sandbox2|Languages}}
{{Sandbox4|Keyboard Layout|0| {{{Keyboard|Set Keyboard Param}}} }}
{{Sandbox4|Written|0| {{{Written|Set Written Param}}} }}
{{Sandbox4|Spoken|0| {{{Written|Set Spoken Param}}} }}
{{Sandbox4|Secondary Written|0|{{{Writen2|None}}} }}
{{Sandbox4|Secondary Spoken|0|{{{Spoken2|None}}} }}
|}
|}
</div>
</div>
[[Category: Country_boxes]]
[[Category: Country_box]]
</onlyinclude>
<noinclude>
<noinclude>
{{Country_box|
Country=Peru|
Flag=Flag of Peru.svg|
Code=PE |
Wikipedia=Peru|
Support=7|
Deployment=4|
Keyboard=[[OLPC_Spanish_Keyboard|Spanish Layout]]|
Spoken=Spanish (es)|
Written=Spanish (es)|
Spoken2=English (en)|
Written2 = English (en)}}
This template provides an overview of the OLPC activity in a country.
This template provides an overview of the OLPC activity in a country.
You call the template filling in all the parameters, where some of the
You call the template filling in all the parameters, where some of the
Line 62: Line 67:
<pre>
<pre>
{{Country_box|
{{Country_box|
Country=Brazil|
Country=Peru|
Flag=Flag of Peru.svg|
Territory=2|
Code=PE |
Wikipedia=Peru|
Support=7|
Support=7|
Deployment=4|
Deployment=1|
Keyboard=Spanish Layout|
Keyboard=[[OLPC_Argentina_Keyboard|Spanish Layout]]|
Spoken=Spanish|
Spoken=Spanish (es)|
Written=Spanish|
Written=Spanish (es)|
Spoken2=English}}
Written2 = English (en)|
Spoken2=English (en)}}
</pre>
</pre>
These are the parameters:
These are the parameters:
* Country Box - Name of the country
* Country - ISO [[country name]]
* Flag - Name of the flag image, or a placeholder flag by default. You can find flags at http://commons.wikimedia.org/wiki/National_insignia and then upload them to this wiki.
* Territory - Code for Geographic group of countries, a number
* Code - ISO two letter [[Country name|country code]]
* Support - Commitment of Government Support to OLPC
* Wikipedia - The name of the English [http://en.wikipedia.com Wikipedia] article unless its just the country name
* Support - Commitment of government support to OLPC
#Invalid
#Unknown
#Low and not OLPC Priority
#Low and not OLPC Priority
#Low and OLPC Priority
#Low and OLPC Priority
Line 83: Line 95:
#Adoption
#Adoption
* Deployment - Progress on deployed laptops into country.
* Deployment - Progress on deployed laptops into country.
#Invalid
* Keyboard - Keyboard Layout. Please use a link.
#Unknown
#None
#Demonstration (under 50 machines)
#Trial (50 to 500 machines)
#Intermediate Trial (500 to 5000 machines)
#Wide adoption (over 5000 machines)}}
* Keyboard - Keyboard Layout. Please use a link like <tt><nowiki>[[OLPC_Argentina_Keyboard|Spanish Layout]]</nowiki></tt>. See [http://wiki.laptop.org/go/Category:Keyboard Category:Keyboard] page for a list.
* Spoken - Primary spoken language.
* Spoken - Primary spoken language.
* Written - Primary written language.
* Written - Primary written language.
* Spoken2 - Secondary spoken langage(s).
* Spoken2 - Secondary spoken language(s).
* Written2 - Secondary written language(s).
* Written2 - Secondary written language(s).
:For languages, please use both the English name of the language and the two (or, if none, three) letter [http://www.loc.gov/standards/iso639-2/php/code_list.php language code] for the language. You may use a link like <tt><nowiki>[[Spanish language|Spanish (es)]]</nowiki></tt>


Using the template will add your page to the [[:Category:Country box|Country box category]] as well as subcategories for the particular levels of Government Support and Deployment, e.g., [[:Category:Country_Support_Contingent]] and [[:Category:Country_Deployment_Trial]]. If there are any missing parameters, the page will also belong to [[:Category:Country_Invalid]]. The template works well although floating tables can always have troubles with narrow displays. Also, be aware of a Wikipedia bug that a change to the way this template adds categories may take an edit or some time for the page caches to pick up new categories.
The template works pretty well although floating tables can always have troubles with very wide pages.
</noinclude>
</noinclude>

Latest revision as of 09:54, 2 January 2014

Translate9.svg

Set Country param


 Country Information
 ISO Country Code Set Code Param
 Wikipedia Article Wikipedia Link
 Government Support Set Support Param
 Deployment Set Deployment Param
 Languages
 Keyboard Layout Set Keyboard Param
 Written Set Written Param
 Spoken Set Spoken Param
 Secondary Written None
 Secondary Spoken None


Flag of Peru.svg

Peru


 Country Information
 ISO Country Code PE
 Wikipedia Article Wikipedia Link
 Government Support Sponsored Trials
 Deployment Demonstration (under 50 machines)
 Languages
 Keyboard Layout Spanish Layout
 Written Spanish (es)
 Spoken Spanish (es)
 Secondary Written English (en)
 Secondary Spoken English (en)

This template provides an overview of the OLPC activity in a country. You call the template filling in all the parameters, where some of the parameters are special numbers.

Here's an example of what to put in your wiki page:

{{Country_box|
  Country=Peru|
  Flag=Flag of Peru.svg|
  Code=PE |              
  Wikipedia=Peru|
  Support=7|
  Deployment=1|
  Keyboard=[[OLPC_Argentina_Keyboard|Spanish Layout]]|
  Spoken=Spanish (es)|
  Written=Spanish (es)|
  Written2 = English (en)|
  Spoken2=English (en)}}

These are the parameters:

  1. Invalid
  2. Unknown
  3. Low and not OLPC Priority
  4. Low and OLPC Priority
  5. High Level Interest
  6. Commitment in Principal
  7. Sponsored Trials
  8. Contingent Adoption
  9. Adoption
  • Deployment - Progress on deployed laptops into country.
  1. Invalid
  2. Unknown
  3. None
  4. Demonstration (under 50 machines)
  5. Trial (50 to 500 machines)
  6. Intermediate Trial (500 to 5000 machines)
  7. Wide adoption (over 5000 machines)}}
  • Keyboard - Keyboard Layout. Please use a link like [[OLPC_Argentina_Keyboard|Spanish Layout]]. See Category:Keyboard page for a list.
  • Spoken - Primary spoken language.
  • Written - Primary written language.
  • Spoken2 - Secondary spoken language(s).
  • Written2 - Secondary written language(s).
For languages, please use both the English name of the language and the two (or, if none, three) letter language code for the language. You may use a link like [[Spanish language|Spanish (es)]]

Using the template will add your page to the Country box category as well as subcategories for the particular levels of Government Support and Deployment, e.g., Category:Country_Support_Contingent and Category:Country_Deployment_Trial. If there are any missing parameters, the page will also belong to Category:Country_Invalid. The template works well although floating tables can always have troubles with narrow displays. Also, be aware of a Wikipedia bug that a change to the way this template adds categories may take an edit or some time for the page caches to pick up new categories.