Anonymous
×
Create a new article
Write your page title here:
We currently have 55 articles on SR5 Foundry VTT System Wiki. Type your article name above or click on one of the titles below and start writing!



SR5 Foundry VTT System Wiki

Template:Button/Documentation: Difference between revisions

No edit summary
 
(One intermediate revision 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.


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|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