Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (tweaking)
(trying simple mnemonic for key image)
Line 7: Line 7:
'''See Also''' http://meta.wikimedia.org/wiki/Help:Template
'''See Also''' http://meta.wikimedia.org/wiki/Help:Template
[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>[[Image:Key ctrl.jpg]]<noinclude>


: <big>'''Testing new template Template:Ctrl<strike></strike>'''</big>
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;">
{| width="100%" cellpadding="0" cellspacing="0" <!-- style="background-color:#0093d0; color:white" -->
|- valign=top
| align=center | '''IN'''
| align=center | '''{{{method}}}'''
| algin=center | '''OUT'''
|- valign=top
| {{{in}}}
| {{{comment}}}
| {{{out}}}
|}
</div>
<noinclude>

: <big>'''Testing new template Template:PyMethod<strike></strike>'''</big>


== usage ==
== usage ==


<nowiki>{{</nowiki> Sandbox
<nowiki>{{</nowiki> Sandbox <nowiki>}}</nowiki>
| method = &lt;-- name of the function/method --&gt;
| comment = &lt;-- description of the method --&gt;
| in = &lt;-- list of arguments / parameters --&gt;
| ''in_notes'' = &lt;-- OPTIONAL - notes on the arguments / parameters --&gt;
| out = &lt;-- return value --&gt;
| ''out_notes'' = &lt;-- OPTIONAL - notes on the returned value --&gt;
<nowiki>}}</nowiki>


== samples ==
== samples ==


<nowiki>{{</nowiki> Sandbox
<nowiki>{{</nowiki> Sandbox <nowiki>}}</nowiki>
push the {{Sandbox}} key
| method = ShareActivity
| in = s: activity id, s: activity type, s: name, a{sv}: properties
| out = o
| comment = Shares an activity with others
<nowiki>}}</nowiki>
{{Sandbox
| method = ShareActivity
| in = s: activity id, s: activity type, s: name, a{sv}: properties
| out = o
| comment = Shares an activity with others }}
----
<nowiki>{{</nowiki> Sandbox
| method = ShareActivity
| in = s: activity id,<br>s: activity type,<br>s: name,<br>a{sv}: properties
| out = o
| comment = Shares an activity with others
<nowiki>}}</nowiki>
{{Sandbox
| method = ShareActivity
| in = s: activity id,<br>s: activity type,<br>s: name,<br>a{sv}: properties
| out = o
| comment = Shares an activity with others }}
</noinclude>
</noinclude>

Revision as of 14:02, 21 April 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

Key ctrl.jpg

Testing new template Template:Ctrl

usage

{{ Sandbox }}

samples

{{ Sandbox }}

push the Key ctrl.jpg key