Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
(testing ideas)
m (testing ideas)
Line 12: Line 12:
</noinclude>
</noinclude>


{| cellpadding="2" cellspacing="0" style="float:right; border:1px solid #aaa; text-size:small; background:#f9f9f9; width:15em; margin:5px 0px 5px 5px;"
{| cellpadding="2" cellspacing="0" style="float:right; border:1px solid #aaa; font-size:small; background:#f9f9f9; width:15em; margin:5px 0px 5px 5px;"


|-
|-
| 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>
| colspan="2" style="font-size:large; text-align:center; background:#6bbe45; color:white" | '''{{{component}}}'''<span style="font-size:small;"><br>[[:Category:{{{type|activity}}}|({{{type|activity}}})]]</span>
{{ #if: {{{icon|}}} | {{!}}-
{{ #if: {{{icon|}}} | {{!}}-
{{!}} colspan="2" style="valign:middle; padding:5px"{{!}} [[Image:{{{icon}}}{{!}}center]] |}}
{{!}} colspan="2" style="valign:middle; padding:5px"{{!}} [[Image:{{{icon}}}{{!}}center]] |}}
Line 33: Line 33:
| style="text-align:right;" | '''Source:'''
| style="text-align:right;" | '''Source:'''
| style="text-align:left;" | {{{source}}}
| style="text-align:left;" | {{{source}}}
{{ #if: {{{language}}} | {{!}}-

{{!}} style="text-align:right;" {{!}} '''Language:'''
{{!}} style="text-align:left;" {{!}} {{{language}}}
|}}
|-
|-
| style="text-align:right;" | '''[[Localization|l10n]]:'''
| style="text-align:right;" | '''[[Localization|l10n]]:'''
Line 47: Line 50:
| colspan="2" style="text-align:center" | {{{contributors}}}
| colspan="2" style="text-align:center" | {{{contributors}}}
|}
|}
<!-- CATEGORIZATION -- TESTING -->
Testing parameterized categorizations:
<!-- CATEGORIZATION -- type -->
Category:{{ #switch: {{{type}}} | activity=Activity | core=Core | #default=Software Component }}
<!-- CATEGORIZATION -- l10n -->
Category:{{ #if: {{{l10n|}}} | Pending i18n | l10n }}

<includeonly>[[Category:Activity]]</includeonly><noinclude>
<includeonly>[[Category:Activity]]</includeonly><noinclude>
This template automatically includes the page in the <nowiki>[[:Category:</nowiki>{{{type}}}]].
This template automatically includes the page in the <nowiki>[[:Category:</nowiki>{{{type}}}]].
Line 61: Line 71:
/ Could be the first ''build'' number --&gt;
/ Could be the first ''build'' number --&gt;
| source = &lt;!-- Repository / location of the source --&gt;
| source = &lt;!-- Repository / location of the source --&gt;
| ''language'' = &lt;!-- OPTIONAL -- Computer language of the ''source'' --&gt;
| l10n = &lt;!-- Repository / location of the l10n resources --&gt;
| l10n = &lt;!-- Repository / location of the l10n resources --&gt;
| [[:Category:Test Plans|''testplan'']] = &lt;!-- OPTIONAL -- link to the [[:Category:Test Plans|test plan page]] --&gt;
| contributors = &lt;!-- People contributing to the activity --&gt;
| contributors = &lt;!-- People contributing to the activity --&gt;
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>

Revision as of 16:06, 30 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)
Status: {{{status}}}
Version: {{{version}}}
Base: {{{base}}}
Source: {{{source}}}
Language: {{{language}}}
l10n: add it here
Contributors
{{{contributors}}}
Testing parameterized categorizations:
 Category:Software Component
 Category:l10n


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 -->
 | language     = <!-- OPTIONAL -- Computer language of the source -->
 | l10n         = <!-- Repository / location of the l10n resources -->
 | testplan     = <!-- OPTIONAL -- link to the test plan page -->
 | contributors = <!-- People contributing to the activity -->
 }}

Sample



Foo
(Bar)
Xo s.png
Status: {{{status}}}
Version: {{{version}}}
Base: {{{base}}}
Source: {{{source}}}
Language: {{{language}}}
l10n: add it here
Test plans: some page
Contributors
{{{contributors}}}
Testing parameterized categorizations:
 Category:Software Component
 Category:l10n
{{ Sandbox
| component = Foo
| type = Bar
| icon = Xo s.png
| testplan = [[some page]]
}}