Mr. Johnson (talk | contribs) (Created page with "<includeonly><!--Template Subcategories--></includeonly> {{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 {{Parameter|mandatory|string}}, the text to be used in the button. ==Returns== {{Code|<nowiki>{{Button|Things}}</nowiki>}} returns: {{Return|{{Button|Things}}}}") |
Mr. Johnson (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
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|Stuff|red=true}}</nowiki>}} returns: {{Return|{{Button|Stuff|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