Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
(testing Educator tag template)
(testing an upgrade to Template:Status box)
Line 8: Line 8:
[[Category:Template]]
[[Category:Template]]


: <big>'''Testing Educator<strike></strike>'''</big>
: <big>'''Testing: Status box<strike></strike>'''</big>


</noinclude>
</noinclude>

{| cellpadding="2" cellspacing="0" style="float:right; border:1px solid #aaa; font-size:small; background:#f9f9f9; width:15em; margin:5px 0px 5px 5px;"
{| cellpadding="2" cellspacing="0" style="float:right; border:1px solid #aaa; text-size:small; background:#f9f9f9; width:15em; margin:5px 0px 5px 5px;"
|-
|-
| rowspan=3 style="font-size:larger; text-align:center; background:#3b9fca; color:white" | '''EDU'''
| colspan="2" style="font-size:larger; text-align:center; background:#6bbe45; color:white" | '''{{{component}}}'''<span style="font-size:normal;"><br>[[:Category:{{{type|activity}}}|({{{type|activity}}})]]</span>
{{ #if: {{{icon|}}} | {{!}}-
| style="text-align:right;" | '''Grades:'''
{{!}} colspan="2" style="valign:middle; padding:5px"{{!}} [[Image:{{{icon}}}{{!}}center]] |}}
| style="text-align:left;" | {{{grades}}}
|-
|-
| colspan="2" style="valign:middle; padding:5px"| [[Image:{{{icon}}}|center]]
| style="text-align:right;" | '''Subjects:'''
| style="text-align:left;" | {{{subjects}}}
|-
|-
| style="text-align:right;" | '''Country:'''
| style="text-align:right;" | '''Status:'''
| style="text-align:left;" | [[OLPC {{{country}}}]]
| style="text-align:left;" | {{{status}}}
|-
| style="text-align:right;" | '''Version:'''
| style="text-align:left;" | {{{version}}}
|-
| style="text-align:right;" | '''Base:'''
| style="text-align:left;" | {{{base}}}
|-
| style="text-align:right;" | '''Source:'''
| style="text-align:left;" | {{{source}}}
|-
| style="text-align:right;" | '''[[Localization|l10n]]:'''
| style="text-align:left;" | {{ #ifexist: {{PAGENAME}}/Localization|[[{{PAGENAME}}/Localization]]|{{{l10n|''<span class="plainlinks">[{{fullurl:{{PAGENAME}}}}/Localization add it here]</span>''}}} }}


|-
| colspan="2" style="text-align:center;" | '''Contributors'''
|-
| colspan="2" style="text-align:center" | {{{contributors}}}
|}
|}
[[Category:User Teacher]]
<includeonly>[[Category:Activity]]</includeonly><noinclude>
This template automatically includes the page in the <nowiki>[[:Category:</nowiki>{{{type}}}]].
<includeonly>
</includeonly><noinclude>

Purpose of this template is to catalog users according to their ''teaching'' skills.

User pages tagged with this will be included in the following categories:

* [[:Category:User Teacher]]


== Usage ==
== Usage ==


<nowiki>{{</nowiki> Educator
<nowiki>{{</nowiki>Status box
| grades = &lt;!-- a set of <tt><nowiki>{{1st grade}}, {{2nd grade}}, etc.</nowiki></tt> templates that will catalog in the proper grade. --&gt;
| component = &lt;!-- Name of the component --&gt;
| type = &lt;!-- Type of the component {activity, core, support} --&gt;
| subjects = &lt;!-- a set of <tt><nowiki>{{Subject Language}}, {{Subject Math}}, etc.</nowiki></tt> templates that will catalog in the proper subject. --&gt;
| country = &lt;!-- <tt>shortEnglishName</tt> that links to the appropriate country --&gt;
| icon = &lt;!-- ''file name.ext'' (sans <tt><nowiki>[[Image:</nowiki>''file name.ext''<nowiki>]]</nowiki></tt> --&gt;
| status = &lt;!-- Status of the activity --&gt;
<nowiki>}}</nowiki>
| version = &lt;!-- Current/latest version available --&gt;
| base = &lt;!-- Yes/No if it's included in the [[OS images]]
/ Could be the first ''build'' number --&gt;
| source = &lt;!-- Repository / location of the source --&gt;
| l10n = &lt;!-- Repository / location of the l10n resources --&gt;
| contributors = &lt;!-- People contributing to the activity --&gt;
<nowiki>}}</nowiki>


== Samples ==
== Sample ==


<br clear="all">
<br clear="all">
{{ Sandbox | grades = {{2nd Grade}}, {{3rd Grade}} | subjects = {{Subject Math}} | country = Argentina }}
{{ Sandbox | component = Foo | type = Bar | icon = Xo_small.jpg }}

<nowiki>{{ Educator
[[Category:Template]]
| grades = {{2nd Grade}}, {{3rd Grade}}
| subjects = {{Subject Math}}
| country = Argentina }}</nowiki>
</noinclude>
</noinclude>

Revision as of 17:42, 29 June 2007

Many times you may want to just 'test' an idea for a template, I haven't found a sensible way of fully testing templates by themselves (as they will not get included in the edited version, but rather the saved version).

The idea of this Template:Sandbox is to have that, a simple testing zone that will not interfere with others and avoid leaving a trail of botched attempts.

Please leave this comment/text for others to read.
See Also http://meta.wikimedia.org/wiki/Help:Template
Testing: Status box


{{{component}}}
(activity)
[[Image:{{{icon}}}|center]]
Status: {{{status}}}
Version: {{{version}}}
Base: {{{base}}}
Source: {{{source}}}
l10n: add it here
Contributors
{{{contributors}}}

This template automatically includes the page in the [[:Category:{{{type}}}]].

Usage

{{Status box
 | component    = <!-- Name of the component -->
 | type         = <!-- Type of the component {activity, core, support} -->
 | icon         = <!-- file name.ext (sans [[Image:file name.ext]] -->
 | status       = <!-- Status of the activity -->
 | version      = <!-- Current/latest version available -->
 | base         = <!-- Yes/No if it's included in the OS images
                       / Could be the first build number -->
 | source       = <!-- Repository / location of the source -->
 | l10n         = <!-- Repository / location of the l10n resources -->
 | contributors = <!-- People contributing to the activity -->
 }}

Sample



Foo
(Bar)
Status: {{{status}}}
Version: {{{version}}}
Base: {{{base}}}
Source: {{{source}}}
l10n: add it here
Contributors
{{{contributors}}}