Mr. Johnson (talk | contribs) (Created page with "{{Documentation}} <includeonly><onlyinclude><!--Replace all with nothing.--></onlyinclude></includeonly>") |
Mr. Johnson (talk | contribs) No edit summary Tag: Manual revert |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude>< | <includeonly><onlyinclude><span class="sr5-{{#if:{{{red|}}}|red|grey}}">{{#switch: {{lc:{{{1|}}}}} | ||
| roll = {{#fas:dice-six}} '''Roll''' | |||
| #default = {{{1|{{Required|1|Button}}}}} | |||
}}</span></onlyinclude></includeonly> |
Latest revision as of 03:21, 27 December 2023
Template:Button
Template:Button
inserts a stylized text string, formatted to look somewhat like the buttons used in system dialogs and roll cards.
Usage
It accepts a single mandatory string parameter, the text to be used in the button. If the parameter is roll
, a D6 symbol is included.
It also accepts one optional parameter, red
. If set, it changes the background color.
Returns
{{Button|Things}}
returns: Things
{{Button|roll}}
returns: Roll
{{Button|Stuff|red=true}}
returns: Stuff
{{Button|roll|red=true}}
returns: Roll
The documentation above was transcluded from Template:Button/Documentation. [ edit ]