Template:Sandbox: Difference between revisions
Jump to navigation
Jump to search
m (tweaking) |
(reorganize) |
||
(51 intermediate revisions by 3 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]]. |
|||
⚫ | |||
⚫ | |||
</noinclude> |
|||
⚫ | |||
<div style="float:right; clear:right; font-size:80%; max-width:60%; padding:0.3em; background:#c1fea1; color:#0a6c00; border:2px solid #8ad962; "><big>'''Latest Releases:'''</big> [[OS images]]<br>Stable: [http://olpc.download.redhat.com/olpc/streams/development/build406/ '''Build 406'''] (May 7)<span style="display:{{{stable|none}}}"><br> —[http://olpc.download.redhat.com/olpc/streams/development/LATEST-STABLE-BUILD/ext3/ ext3] [http://olpc.download.redhat.com/olpc/streams/development/LATEST-STABLE-BUILD/devel_ext3/ devel-ext3] [http://olpc.download.redhat.com/olpc/streams/development/LATEST-STABLE-BUILD/jffs2/ jffs2] [http://olpc.download.redhat.com/olpc/streams/development/LATEST-STABLE-BUILD/devel_jffs2/ devel-jffs2]</span><span style="display:{{{devel|none}}}"><br>Devel: [http://olpc.download.redhat.com/olpc/streams/development/latest/devel_ext3/ '''devel-ext3'''] or [http://olpc.download.redhat.com/olpc/streams/development/latest/devel_jffs2/ '''devel-jffs2''']</span><span style="display:{{{livecd|none}}}"><br>[[LiveCd|Live-CD]]: [http://olpc.download.redhat.com/olpc/streams/sdk/latest/livecd/olpc-redhat-stream-sdk-livecd.iso '''ISO-Build 385'''] (Apr 7)</span><span style="display:{{{firmware|none}}}"><br>[[Firmware]]: [[OLPC Firmware q2c11|'''Q2C11''']] (May 6)</span></div><noinclude> |
|||
⚫ | |||
== Usage == |
|||
---- |
|||
⚫ | |||
<br clear="all"> |
|||
{{ Sandbox }} |
|||
<nowiki>{{</nowiki> Sandbox |
|||
| stable = inline <!-- OPTIONAL -- shows or hides (default) the specific stable versions --> |
|||
| devel = inline <!-- OPTIONAL -- shows or hides (default) the devel-build info --> |
|||
| livecd = inline <!-- OPTIONAL -- shows or hides (default) the live-cd info --> |
|||
| firmware = inline <!-- OPTIONAL -- shows or hides (default) the firmware info --> |
|||
<nowiki>}}</nowiki> |
|||
; Goal |
|||
== Samples == |
|||
: Given "Feature roadmap/Name of feature", return "Name of feature" |
|||
: Given "Just a title", return "Just a title" |
|||
<br clear="all"> |
|||
{{ Sandbox | stable = inline }} |
|||
<nowiki>{{</nowiki> Sandbox | stable = inline <nowiki>}}</nowiki> |
|||
<br clear="all"> |
|||
{{ Sandbox | devel = inline}} |
|||
<nowiki>{{</nowiki> Sandbox | devel = inline <nowiki>}}</nowiki> |
|||
<br clear="all"> |
|||
{{ Sandbox | livecd = inline }} |
|||
<nowiki>{{</nowiki> Sandbox | livecd = inline <nowiki>}}</nowiki> |
|||
<br clear="all"> |
|||
{{ Sandbox | firmware = inline}} |
|||
<nowiki>{{</nowiki> Sandbox | firmware = inline <nowiki>}}</nowiki> |
|||
<br clear="all"> |
|||
{{ Sandbox | stable = inline | devel = inline | livecd = inline | firmware = inline}} |
|||
<nowiki>{{</nowiki> Sandbox |
|||
| stable = inline |
|||
| devel = inline |
|||
| livecd = inline |
|||
| firmware = inline <nowiki>}}</nowiki> |
|||
</noinclude> |
</noinclude> |
||
{{#sub: |
|||
{{{1}}} | |
|||
{{#if: {{#pos:{{{1}}}|/}} | |
|||
{{#expr: {{#pos:{{{1}}}|/}} + 1}} | |
|||
{{#pos:{{{1}}}|/}} |
|||
}} |
|||
}} |
|||
pos={{#pos:{{{1}}}|/}} |
|||
iftest={{#if: {{#pos:{{{1}}}|/}} | |
|||
yes | |
|||
no |
|||
}} |
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