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: Difference between revisions

No edit summary
No edit summary
Line 2: Line 2:
<includeonly><onlyinclude><span class="sr5-button">{{#switch: {{lc:{{{1|}}}}}
<includeonly><onlyinclude><span class="sr5-button">{{#switch: {{lc:{{{1|}}}}}
| roll = {{#fas:dice-six}}&nbsp;'''Roll'''
| roll = {{#fas:dice-six}}&nbsp;'''Roll'''
| #defalt = {{{1|{{Required|1|Button}}}}}
| #default = {{{1|{{Required|1|Button}}}}}
}}</span></onlyinclude></includeonly>
}}</span></onlyinclude></includeonly>

Revision as of 22:06, 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:
Things
{{Button|roll}} returns:
 Roll
{{Button|Stuff|red=true}} returns:
Stuff
{{Button|roll|red=true}} returns:
 Roll

The documentation above was transcluded from Template:Button/Documentation.