Template:Tinker check: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly> {{#ifexpr: {{{1}}} < 4 | Tinker I | {{#ifexpr: {{{1}}} < 7 | Tinker II | Tinker III }} }} </includeonly> <noinclude> Category:Templates {{doc}} <...") |
(remove auto linking, move to item template) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#switch: {{{1}}} | ||
{{# | | A | ||
</includeonly> | | B | ||
<noinclude> | | C | ||
| D | |||
| 0 | |||
| 1 | |||
| 2 | |||
| 3 = Tinker I | |||
| 4 | |||
| 5 | |||
| 6 = Tinker II | |||
| 7 | |||
| 8 | |||
| 9 = Tinker III | |||
| #default = ?[[Category:Pages with Tinker check Template errors]] | |||
}}</includeonly><noinclude> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
{{ | You probably shouldn't be calling this unless you're writing a template. | ||
Usage: <code><nowiki>{{Tinker check| 4 }}</nowiki></code> | |||
Output: | |||
{{Tinker check| 4 }} | |||
If an invalid value (not 0-9) is sent to this template, it returns a '''Tinker ?''' link and applies the [[:Category:Pages with Tinker check Template errors]] category. | |||
</noinclude> | </noinclude> |
Latest revision as of 22:59, 22 January 2020
You probably shouldn't be calling this unless you're writing a template.
Usage: {{Tinker check| 4 }}
Output: Tinker II
If an invalid value (not 0-9) is sent to this template, it returns a Tinker ? link and applies the Category:Pages with Tinker check Template errors category.