Template:Sandbox: Difference between revisions
Jump to navigation
Jump to search
(testing ideas) |
(reorganize) |
||
(38 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
Often you need to test an idea for a template, so try it out here. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
If you try out the template here, you have to save the template and then preview to see how it works. You can instead edit [[Test sandbox template]]. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{| 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="valign:middle; padding:5px"{{!}} [[Image:{{{icon}}}{{!}}center]] |}} |
|||
|- |
|||
| style="text-align:right;" | '''Status:''' |
|||
| style="text-align:left;" | {{{status}}} |
|||
; Goal |
|||
|- |
|||
: Given "Feature roadmap/Name of feature", return "Name of feature" |
|||
| style="text-align:right;" | '''Version:''' |
|||
: Given "Just a title", return "Just a title" |
|||
| style="text-align:left;" | {{{version}}} |
|||
⚫ | |||
|- |
|||
{{#sub: |
|||
| style="text-align:right;" | '''Base:''' |
|||
{{{1}}} | |
|||
| style="text-align:left;" | {{{base}}} |
|||
⚫ | |||
{{#expr: {{#pos:{{{1}}}|/}} + 1}} | |
|||
{{#pos:{{{1}}}|/}} |
|||
⚫ | |||
⚫ | |||
pos={{#pos:{{{1}}}|/}} |
|||
|- |
|||
iftest={{#if: {{#pos:{{{1}}}|/}} | |
|||
| style="text-align:right;" | '''Source:''' |
|||
yes | |
|||
| style="text-align:left;" | {{{source}}} |
|||
no |
|||
}} |
|||
|- |
|||
| 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>''}}} }} |
|||
{{ #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}}} |
|||
⚫ | |||
<includeonly>[[Category:Activity]]</includeonly><noinclude> |
|||
This template automatically includes the page in the <nowiki>[[:Category:</nowiki>{{{type}}}]]. |
|||
== Usage == |
|||
<nowiki>{{</nowiki>Status box |
|||
| component = <!-- Name of the component --> |
|||
| type = <!-- Type of the component {activity, core, support} --> |
|||
| icon = <!-- ''file name.ext'' (sans <tt><nowiki>[[Image:</nowiki>''file name.ext''<nowiki>]]</nowiki></tt> --> |
|||
| 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 --> |
|||
<nowiki>}}</nowiki> |
|||
== Sample == |
|||
<br clear="all"> |
|||
{{ 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]] |
|||
</noinclude> |
Latest revision as of 01:31, 16 March 2009
Often you need to test an idea for a template, so try it out here.
- 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). -- User:Xavi
The idea of this {{Sandbox}} page is to have that, a simple testing template that will not interfere with others and avoid leaving a trail of botched attempts.
If you try out the template here, you have to save the template and then preview to see how it works. You can instead edit Test sandbox template.
See Also http://meta.wikimedia.org/wiki/Help:Template
Please leave this comment/text above for others to read.
- Testing: subpage parsing
- Goal
- Given "Feature roadmap/Name of feature", return "Name of feature"
- Given "Just a title", return "Just a title"
{{#sub:
{{{1}}} | Expression error: Unrecognized punctuation character "{".
}}
pos={{#pos:{{{1}}}|/}} iftest=yes