Template:Tooltip dice range string: Difference between revisions
(Created page with "{{#ifeq: {{{minimum|}}} | {{{maximum|}}} | | {{{minimum|}}}-{{{maximum|}}}}}<noinclude>Category:Templates Meant for use as a template parameter for Module:Dice/Format...") |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: {{{minimum|}}} | {{{maximum|}}} | | {{{minimum|}}}-{{{maximum|}}}}}<noinclude>[[Category:Templates]] | <includeonly>{{#ifeq: {{{minimum|}}} | {{{maximum|}}} | |<span class="qud-roll-range">range: {{{minimum|}}}-{{{maximum|}}}</span>}}</includeonly><noinclude>[[Category:Dice Templates]] | ||
Meant for use as a template parameter for [[Module:Dice/Format]]. Returns only the range for a dice roll string (example: <code>16-19</code>). | Meant for use as a template parameter for [[Module:Dice/Format]]. Returns only the range for a dice roll string (example: <code>16-19</code>), formatted in a <code><span></code> block appropriate for the Character and Item template tooltips. This probably won't be useful anywhere else. Returns an empty string if there is no range (minimum == maximum). | ||
</noinclude> | </noinclude> |
Latest revision as of 15:59, 22 December 2020
Meant for use as a template parameter for Module:Dice/Format. Returns only the range for a dice roll string (example: 16-19
), formatted in a <span>
block appropriate for the Character and Item template tooltips. This probably won't be useful anywhere else. Returns an empty string if there is no range (minimum == maximum).