Template:Tinker check: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(remove auto linking, move to item template)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#switch: {{{1}}}
{{#ifexpr: {{{1}}} < 4 | [[Tinker I]] | {{#ifexpr: {{{1}}} < 7 | [[Tinker II]] | [[Tinker III]] }} }}
| 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.
You probably shouldn't be calling this unless you're writing a template.


Usage: <code><nowiki>{{Tinker check|4}}</nowiki></code>
Usage: <code><nowiki>{{Tinker check| 4 }}</nowiki></code>


Output:
Output:
{{Tinker check|4}}
{{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.