Difference between revisions of "Module:TableTools"
Jump to navigation
Jump to search
check type of prefix and suffix
en>Mr. Stradivarius (add type checking) |
en>Mr. Stradivarius on tour (check type of prefix and suffix) |
||
Line 214: | Line 214: | ||
function p.affixNums(t, prefix, suffix) | function p.affixNums(t, prefix, suffix) | ||
checkType('affixNums', 1, t, 'table') | checkType('affixNums', 1, t, 'table') | ||
checkType('affixNums', 2, prefix, 'string', true) | |||
checkType('affixNums', 3, suffix, 'string', true) | |||
prefix = prefix or '' | prefix = prefix or '' | ||
suffix = suffix or '' | suffix = suffix or '' |