Template:Sandbox: Difference between revisions
Jump to navigation
Jump to search
(testing an upgrade to Template:Status box) |
(testing ideas) |
||
| Line 13: | Line 13: | ||
{| 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; text-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:larger; text-align:center; background:#6bbe45; color:white" | '''{{{component}}}'''<span style="font-size:normal;"><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]] |}} |
||
|- |
|||
| colspan="2" style="valign:middle; padding:5px"| [[Image:{{{icon}}}|center]] |
|||
|- |
|- |
||
| style="text-align:right;" | '''Status:''' |
| style="text-align:right;" | '''Status:''' |
||
| style="text-align:left;" | {{{status}}} |
| style="text-align:left;" | {{{status}}} |
||
|- |
|- |
||
| style="text-align:right;" | '''Version:''' |
| style="text-align:right;" | '''Version:''' |
||
| style="text-align:left;" | {{{version}}} |
| style="text-align:left;" | {{{version}}} |
||
|- |
|- |
||
| style="text-align:right;" | '''Base:''' |
| style="text-align:right;" | '''Base:''' |
||
| style="text-align:left;" | {{{base}}} |
| style="text-align:left;" | {{{base}}} |
||
|- |
|- |
||
| style="text-align:right;" | '''Source:''' |
| style="text-align:right;" | '''Source:''' |
||
| style="text-align:left;" | {{{source}}} |
| style="text-align:left;" | {{{source}}} |
||
|- |
|- |
||
| style="text-align:right;" | '''[[Localization|l10n]]:''' |
| 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>''}}} }} |
| style="text-align:left;" | {{ #ifexist: {{PAGENAME}}/Localization|[[{{PAGENAME}}/Localization]]|{{{l10n|''<span class="plainlinks">[{{fullurl:{{PAGENAME}}}}/Localization add it here]</span>''}}} }} |
||
{{ #if: {{{testplan|{{#ifexist:{{PAGENAME}}/Test plan|gotpage}}}}} | {{!}}- |
|||
{{!}} style="text-align:right;" {{!}} '''[[:Category:Test Plans|Test plans]]:''' |
|||
{{!}} style="text-align:left;" {{!}} {{#ifexist:{{PAGENAME}}/Test plan|[[{{PAGENAME}}/Test plan]]|{{{testplan}}}}} |
|||
|}} |
|||
|- |
|- |
||
| colspan="2" style="text-align:center;" | '''Contributors''' |
| colspan="2" style="text-align:center;" | '''Contributors''' |
||
|- |
|- |
||
| colspan="2" style="text-align:center" | {{{contributors}}} |
| colspan="2" style="text-align:center" | {{{contributors}}} |
||
| Line 61: | Line 68: | ||
<br clear="all"> |
<br clear="all"> |
||
{{ Sandbox | component = Foo | type = Bar | icon = |
{{ Sandbox | component = Foo | type = Bar | icon = Xo s.png | testplan = [[some page]] }} |
||
<nowiki>{{</nowiki> Sandbox |
|||
| component = Foo |
|||
| type = Bar |
|||
| icon = Xo s.png |
|||
| testplan = <nowiki>[[some page]]</nowiki> |
|||
<nowiki>}}</nowiki> |
|||
[[Category:Template]] |
[[Category:Template]] |
||
Revision as of 20:14, 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) | |
| 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 |
| Test plans: | some page |
| Contributors | |
| {{{contributors}}} | |
{{ Sandbox
| component = Foo
| type = Bar
| icon = Xo s.png
| testplan = [[some page]]
}}