Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (tweak)
(testing for a Task template)
Line 8: Line 8:
[[Category:Template]]
[[Category:Template]]


: <big>'''Testing Pending<strike></strike>'''</big>
: <big>'''Testing Task<strike></strike>'''</big>


</noinclude>
</noinclude>
<includeonly><span style="background:red; ">{{{1}}}</span>[[Category:Pending]]</includeonly><noinclude>[[Category:Template]]
<includeonly><div style="border:1px black gray; background:666; float:right">

Duration: {{{duration}}} {{{unit}}}

Category: {{{category}}}

</div></includeonly><noinclude>


This template allows to place tags to denote something that needs further work. The parameter will be used to display the type of 'pending activity'. Currently it has been thought out to mark places where examples are needed.
This template allows to place tags to denote something that needs further work. The parameter will be used to display the type of 'pending activity'. Currently it has been thought out to mark places where examples are needed.
Line 19: Line 25:
== Usage ==
== Usage ==


<nowiki>{{</nowiki> Pending
<nowiki>{{</nowiki> Task
| type = &lt;!-- { example | confirmation | update | etc }
| duration = &lt;!-- a number denoting the estimated time required --&gt;
| unit = &lt;!-- { minutes | hours | days | weeks | months | years } --&gt;
| category = &lt;!-- { Programming | Education | Organizing } --&gt;
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>


== Samples ==
== Samples ==


<br clear="all">
Thus the user can exploit this feature to <nowiki>{{ Pending | need example }}</nowiki>. As we can...
{{ Sandbox | duration = 8 | unit = hours | category = Programming }}
Thus the user can exploit this feature to {{ Sandbox | need example }}. As we can...
<nowiki>{{ Sandbox | duration = 8 | unit = hours | category = Programming }}</nowiki>
</noinclude>
</noinclude>

Revision as of 22:51, 31 May 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 Task



This template allows to place tags to denote something that needs further work. The parameter will be used to display the type of 'pending activity'. Currently it has been thought out to mark places where examples are needed.

Pages tagged with this template will automatically be included in the Category:Pending for easy retrieval.

Usage

{{ Task
            | duration =    <!-- a number denoting the estimated time required -->
            | unit     =    <!-- { minutes | hours | days | weeks | months | years } -->
            | category =    <!-- { Programming | Education | Organizing } -->
}}

Samples


Duration: 8 hours

Category: Programming

{{ Sandbox | duration = 8 | unit = hours | category = Programming }}