Template:Tooltip dice range string: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#ifeq: {{{minimum|}}} | {{{maximum|}}} | |<span class="qud-roll-range">range: {{{minimum|}}}-{{{maximum|}}}</span>}}<noinclude>[[Category:Templates]]
{{#ifeq: {{{minimum|}}} | {{{maximum|}}} | |<span class="qud-roll-range">range: {{{minimum|}}}-{{{maximum|}}}</span>}}<noinclude>[[Category: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>), formatted in a <code><span></code> block appropriate for the Character template tooltip. This probably won't be useful anywhere else. Returns an empty string if there is no range (minimum == maximum).
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>&lt;span&gt;</code> block appropriate for the Character template tooltip. This probably won't be useful anywhere else. Returns an empty string if there is no range (minimum == maximum).
</noinclude>
</noinclude>

Revision as of 17:32, 11 August 2019


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 template tooltip. This probably won't be useful anywhere else. Returns an empty string if there is no range (minimum == maximum).