Template:Tinker check: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (better validation)
(returns tinker I if most significant bit is A, B, C, D)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
<includeonly>{{#switch: {{{1}}}
| A
| B
| C
| D
  | 0
  | 0
  | 1
  | 1

Revision as of 22:44, 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.