Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
{{Template|Button}} inserts a stylized text string, formatted to look somewhat like the buttons used in system dialogs and roll cards. | {{Template|Button}} inserts a stylized text string, formatted to look somewhat like the buttons used in system dialogs and roll cards. | ||
==Usage== | ==Usage== | ||
It accepts a single {{Parameter|mandatory|string}}, the text to be used in the button. | It accepts a single {{Parameter|mandatory|string}}, the text to be used in the button. If the parameter is {{Code|roll}}, a D6 symbol is included. | ||
It also accepts one {{Parameter|optional}}, {{Code|red}}. If set, it changes the background color. | |||
==Returns== | ==Returns== | ||
{{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|Sutff|red=true}}}} | |||
{{Code|<nowiki>{{Button|roll|red=true}}</nowiki>}} returns: {{Return|{{Button|roll|red=true}}}} |
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:
Sutff
{{Button|roll|red=true}}
returns:
Roll