Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude><span class="sr5-button | <includeonly><onlyinclude><span class="sr5-button">{{#switch: {{lc:{{{1|}}}}} | ||
| roll = {{#fas:dice-six}} '''Roll''' | |||
| #defalt = {{{1|{{Required|1|Button}}}}} | |||
}}</span></onlyinclude></includeonly> |
Revision as of 22:05, 26 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: {{Button|roll}}
returns: {{Button|Stuff|red=true}}
returns: {{Button|roll|red=true}}
returns: The documentation above was transcluded from Template:Button/Documentation. [ edit ]