Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
(testing Educator tag template)
(reorganize)
 
(40 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.
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).


: 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 [[Template:Sandbox]] is to have that, a simple testing zone that will not interfere with others and avoid leaving a trail of botched attempts.


The idea of this {{tl|Sandbox}} page is to have that, a simple testing template 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
[[Category:Template]]


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]].
: <big>'''Testing Educator<strike></strike>'''</big>


'''See Also''' http://meta.wikimedia.org/wiki/Help:Template
</noinclude>
[[Category:Template]]
{| cellpadding="2" cellspacing="0" style="float:right; border:1px solid #aaa; font-size:small; background:#f9f9f9; width:15em; margin:5px 0px 5px 5px;"
|-
| rowspan=3 style="font-size:larger; text-align:center; background:#3b9fca; color:white" | '''EDU'''
| style="text-align:right;" | '''Grades:'''
| style="text-align:left;" | {{{grades}}}
|-
| style="text-align:right;" | '''Subjects:'''
| style="text-align:left;" | {{{subjects}}}
|-
| style="text-align:right;" | '''Country:'''
| style="text-align:left;" | [[OLPC {{{country}}}]]


''Please leave this comment/text above for others to read.''
|}
----
[[Category:User Teacher]]
<includeonly>
</includeonly><noinclude>


: <big>'''Testing: subpage parsing'''</big>
Purpose of this template is to catalog users according to their ''teaching'' skills.


; Goal
User pages tagged with this will be included in the following categories:
: Given "Feature roadmap/Name of feature", return "Name of feature"
: Given "Just a title", return "Just a title"


</noinclude>
* [[:Category:User Teacher]]
{{#sub:
{{{1}}} |
{{#if: {{#pos:{{{1}}}|/}} |
{{#expr: {{#pos:{{{1}}}|/}} + 1}} |
{{#pos:{{{1}}}|/}}
}}
}}


pos={{#pos:{{{1}}}|/}}
== Usage ==
iftest={{#if: {{#pos:{{{1}}}|/}} |

yes |
<nowiki>{{</nowiki> Educator
no
| grades = &lt;!-- a set of <tt><nowiki>{{1st grade}}, {{2nd grade}}, etc.</nowiki></tt> templates that will catalog in the proper grade. --&gt;
}}
| subjects = &lt;!-- a set of <tt><nowiki>{{Subject Language}}, {{Subject Math}}, etc.</nowiki></tt> templates that will catalog in the proper subject. --&gt;
| country = &lt;!-- <tt>shortEnglishName</tt> that links to the appropriate country --&gt;
<nowiki>}}</nowiki>

== Samples ==

<br clear="all">
{{ Sandbox | grades = {{2nd Grade}}, {{3rd Grade}} | subjects = {{Subject Math}} | country = Argentina }}
<nowiki>{{ Educator
| grades = {{2nd Grade}}, {{3rd Grade}}
| subjects = {{Subject Math}}
| country = Argentina }}</nowiki>
</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