Difference between revisions of "Template:Dice expression/doc"
From Roll20 Wiki
(new) |
m |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | Formalizes the [[Dice Reference#Roll20 Dice Specification|dice expression]] syntax. | + | {{documentation subpage|override=dice expression/doc|Dice expression}} |
+ | Formalizes the [[Dice Reference#Roll20 Dice Specification|dice expression]] syntax. Each of the <code>token</code> in the output below may be changed by offering it up as a parameter. For example, each instance of <code>compare</code> can be changed by supplying a value for the parameter ''compare''. This allows callers of this template to avoid name collisions with other tokens in the formal syntax. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 8: | Line 9: | ||
|| <code><nowiki>{{dice expression}}</nowiki></code> | || <code><nowiki>{{dice expression}}</nowiki></code> | ||
|| {{dice expression}} | || {{dice expression}} | ||
+ | |- style="vertical-align:top" | ||
+ | || <pre>{{dice expression | ||
+ | |dice expression=foo | ||
+ | |roll=bar | ||
+ | |modifier=baz | ||
+ | |expression list=fizz | ||
+ | |group modifier=buzz}}</pre> | ||
+ | || {{dice expression | ||
+ | |dice expression=foo | ||
+ | |roll=bar | ||
+ | |modifier=baz | ||
+ | |expression list=fizz | ||
+ | |group modifier=buzz}} | ||
|} | |} | ||
− | <includeonly>[[Category:Regular Grammar Templates]]</includeonly | + | <includeonly>[[Category:Regular Grammar Templates]]</includeonly> |
Latest revision as of 16:00, 16 January 2015
This is a documentation subpage for Dice expression. It contains usage information, categories and other content that is not part of the original template page. |
Formalizes the dice expression syntax. Each of the token
in the output below may be changed by offering it up as a parameter. For example, each instance of compare
can be changed by supplying a value for the parameter compare. This allows callers of this template to avoid name collisions with other tokens in the formal syntax.
Wikitext | Output |
---|---|
{{dice expression}}
|
dice expression
→
→
→ {
}
→
→
( ) →
df →
d
→ integer
→ (
) → +
→ -
→ *
→ /
→ floor
→ ceil
→ round
→ abs
→
→ f
→ !
→ !!
→ !p
→ r
→ ro
→
→ s
→ sd
→ ε
→ integer
→ >integer
→ <integer
→
→
integer →
→
integer → k
→ kh
→ kl
→ d
→ dh
→ dl
→
,
→
→
→
→
→ f
|
{{dice expression |dice expression=foo |roll=bar |modifier=baz |expression list=fizz |group modifier=buzz}} |
foo
→
→
→ {
}
→
→
( ) →
df →
d
→ integer
→ (
) → +
→ -
→ *
→ /
→ floor
→ ceil
→ round
→ abs
→
→ f
→ !
→ !!
→ !p
→ r
→ ro
→
→ s
→ sd
→ ε
→ integer
→ >integer
→ <integer
→
→
integer →
→
integer → k
→ kh
→ kl
→ d
→ dh
→ dl
→
,
→
→
→
→
→ f
|