Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
(typo)
(typo)
Line 22: Line 22:
}}
}}
}}
}}

pos={{#pos:{{{1}}}|/}}
iftest={{#if {{#pos:{{{1}}}|/}} |
yes |
no
}}

Revision as of 11:47, 21 December 2008

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 {{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: subpage parsing
Goal
Given "Feature roadmap/Name of feature", return "Name of feature"
Given "Just a title", return "Just a title"


{{#sub:

 {{{1}}} |
 {{#if {{#pos:{{{1}}}|/}} |
       Expression error: Unrecognized punctuation character "{". |
       {{#pos:{{{1}}}|/}}
 }}

}}

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

 yes |
 no
 }}