Template:Sandbox: Difference between revisions
Jump to navigation
Jump to search
m (tweak) |
(reorganize) |
||
(47 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]]. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<includeonly><span style="background:red; ">{{{1}}}</span>[[Category:Pending]]</includeonly><noinclude>[[Category:Template]] |
|||
⚫ | |||
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. |
|||
; Goal |
|||
== Usage == |
|||
: Given "Feature roadmap/Name of feature", return "Name of feature" |
|||
: Given "Just a title", return "Just a title" |
|||
⚫ | |||
<nowiki>{{</nowiki> Pending |
|||
{{#sub: |
|||
| type = <!-- { example | confirmation | update | etc } |
|||
{{{1}}} | |
|||
<nowiki>}}</nowiki> |
|||
{{#if: {{#pos:{{{1}}}|/}} | |
|||
{{#expr: {{#pos:{{{1}}}|/}} + 1}} | |
|||
{{#pos:{{{1}}}|/}} |
|||
}} |
|||
}} |
|||
pos={{#pos:{{{1}}}|/}} |
|||
== Samples == |
|||
iftest={{#if: {{#pos:{{{1}}}|/}} | |
|||
yes | |
|||
Thus the user can exploit this feature to <nowiki>{{ Pending | need example }}</nowiki>. As we can... |
|||
no |
|||
Thus the user can exploit this feature to {{ Sandbox | need example }}. As we can... |
|||
}} |
|||
</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