Template:Party Size: Difference between revisions
(automatic template to parse number of players for infobox mission) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#ifexpr:{{{min}}}-{{{max}}}<0|{{{min}}}-{{{max}}}|{{{min}}}}} Player{{#switch: {{{max}}} | ||
|1 = | |1 = | ||
|#default = s | |#default = s |
Revision as of 23:28, 19 December 2023
Purpose
Party Size turns the upper and lower bounds of two numbers into a pretty string. Used for infoboxes and other templates.
Examples
Party size of min 1, max 6:
{{Party Size|min=1|max=6}}
1-6 Players
Party size of min 1, max 1:
{{Party Size|min=1|max=1}}
1 Player
Party size of min 2, max 2:
{{Party Size|min=2|max=2}}
2 Players