Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) |
||
Line 8: | Line 8: | ||
{{Code|<nowiki>{{Button|Things}}</nowiki>}} returns: {{Return|{{Button|Things}}}} | {{Code|<nowiki>{{Button|Things}}</nowiki>}} returns: {{Return|{{Button|Things}}}} | ||
{{Code|<nowiki>{{Button|roll}}</nowiki>}} returns: {{Return|{{Button|roll}}}} | {{Code|<nowiki>{{Button|roll}}</nowiki>}} returns: {{Return|{{Button|roll}}}} | ||
{{Code|<nowiki>{{Button|Stuff|red=true}}</nowiki>}} returns: {{Return|{{Button| | {{Code|<nowiki>{{Button|Stuff|red=true}}</nowiki>}} returns: {{Return|{{Button|Stuff|red=true}}}} | ||
{{Code|<nowiki>{{Button|roll|red=true}}</nowiki>}} returns: {{Return|{{Button|roll|red=true}}}} | {{Code|<nowiki>{{Button|roll|red=true}}</nowiki>}} returns: {{Return|{{Button|roll|red=true}}}} |
Latest revision as of 03:23, 27 December 2023
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