Difference between revisions of "Template:Dice expression"
From Roll20 Wiki
m |
m |
||
Line 4: | Line 4: | ||
{{token|{{{1|dice expression}}}}} {{rarr}} {{token|{{{1|dice expression}}}}}{{token|modifier|-}} | {{token|{{{1|dice expression}}}}} {{rarr}} {{token|{{{1|dice expression}}}}}{{token|modifier|-}} | ||
{{token|{{{1|dice expression}}}}} {{rarr}} <nowiki>{</nowiki>{{token|expression list}}<nowiki>}</nowiki>{{token|group modifier|-}} | {{token|{{{1|dice expression}}}}} {{rarr}} <nowiki>{</nowiki>{{token|expression list}}<nowiki>}</nowiki>{{token|group modifier|-}} | ||
− | {{token|{{{1|dice expression}}}}} {{rarr}} {{token|{{{1|dice expression}}}}} {{token|operator}} {{token|{{{1|dice expression}}}}} | + | {{token|{{{1|dice expression}}}}} {{rarr}} {{token|{{{1|dice expression}}}}} {{token|operator}} {{token|{{{1|dice expression}}}|-}} |
{{token|{{{1|dice expression}}}}} {{rarr}} {{token|function}}({{token|{{{1|dice expression}}}}})</includeonly><noinclude>{{documentation}}</noinclude> | {{token|{{{1|dice expression}}}}} {{rarr}} {{token|function}}({{token|{{{1|dice expression}}}}})</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 17:19, 14 January 2015
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
|
The above documentation is transcluded from Template:Dice expression/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |