Template:Sandbox: Difference between revisions
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; |
{| 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: |
| 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 --> |
/ Could be the first ''build'' number --> |
||
| source = <!-- Repository / location of the source --> |
| source = <!-- Repository / location of the source --> |
||
| ''language'' = <!-- OPTIONAL -- Computer language of the ''source'' --> |
|||
| l10n = <!-- Repository / location of the l10n resources --> |
| l10n = <!-- Repository / location of the l10n resources --> |
||
| [[:Category:Test Plans|''testplan'']] = <!-- OPTIONAL -- link to the [[:Category:Test Plans|test plan page]] --> |
|||
| contributors = <!-- People contributing to the activity --> |
| contributors = <!-- People contributing to the activity --> |
||
<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) | |
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]] }}