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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{{minimum|}}} | {{{maximum|}}} | |<span class="qud-roll-range">range: {{{minimum|}}}-{{{maximum|}}}</span>}}<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>), 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).
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 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).