Toggle menu
15
236
76
27.7K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Params/testcases/tnumerical/doc: Difference between revisions

From Kenshi Wiki
Created page with "This test template allows to experiment with functions that focus on numerical and sequential arguments. As these require at most two arguments, this template uses the {{para|#first}} and {{para|#second}} special parameters to do its tests. == Usage == For instance, <syntaxhighlight lang="wikitext">{{module:params/testcases/tnumerical | #first = 2 | #second = 2 | -2 = minus two | 0 = zero | 1 = one | 2 = two | 3 = three | 19 = nineteen | 20 = twenty }..."
 
No edit summary
 
Line 37: Line 37:
[[Category:Module testcases]]
[[Category:Module testcases]]
[[Category:Module sand&test]]
[[Category:Module sand&test]]
[[Category:Module test cases]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
[[Category:Module documents]]
[[Category:Module documents]]
[[Category:Module sand&test documents]]
[[Category:Module sand&test documents]]
</noinclude>
</noinclude>

Latest revision as of 20:39, 9 March 2025

This test template allows to experiment with functions that focus on numerical and sequential arguments. As these require at most two arguments, this template uses the |#first= and |#second= special parameters to do its tests.

Usage

For instance,

{{module:params/testcases/tnumerical
	| #first = 2
	| #second = 2
	| -2 = minus two
	| 0 = zero
	| 1 = one
	| 2 = two
	| 3 = three
	| 19 = nineteen
	| 20 = twenty
}}

generates

Function name #first=2 and |#second=2
squeezing 1=minus two|2=zero|3=one|4=two|5=three|6=nineteen|7=twenty
filling_the_gaps -2=minus two|-1=|0=zero|1=one|2=two|3=three|4=|5=|6=|7=|8=|9=|10=|11=|12=|13=|14=|15=|16=|17=|18=|19=nineteen|20=twenty
clearing 1=one|2=two|3=three
cutting|2|2] -2=minus two|0=zero|16=nineteen|17=twenty
cropping|2|2 0=zero|1=one|2=two|3=three
purging|2|2 -2=minus two|0=zero|1=one|17=nineteen|18=twenty
backpurging|2|2 -2=minus two|0=zero|1=three|17=nineteen|18=twenty
rotating 1=twenty|2=nineteen|18=three|19=two|20=one|21=zero|23=minus two
sorting_sequential_values -2=minus two|0=zero|1=one|2=three|3=two|19=nineteen|20=twenty

See also