Template:Tinker check: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(default case doesn't need 'default=')
m (better validation)
Line 7: Line 7:
  | 5
  | 5
  | 6 = [[Tinker II]]
  | 6 = [[Tinker II]]
  | [[Tinker III]]
  | 7
| 8
| 9 = [[Tinker III]]
| #default = [[Tinkering|Tinker ?]][[Category:Pages with Tinker check Template errors]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
[[Category:Templates]]
[[Category:Templates]]
Line 16: Line 19:
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>

Revision as of 19:20, 11 September 2019

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.