60,558
editsAd placeholder
Template:Dialogue option: Difference between revisions
Jump to navigation
Jump to search
Removed newlines so it doesn't make separate paragraphs and can be used in lists, etc.
(Added example of multiple tags) Tags: Mobile edit Mobile web edit |
HiddenDragon (talk | contribs) (Removed newlines so it doesn't make separate paragraphs and can be used in lists, etc.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:tags|{{{tags|}}}|,}} | <includeonly>{{#arraydefine:tags|{{{tags|}}}|,}}{{#if:{{{tags|}}}|{{#arrayprint:tags||@|<nowiki>[</nowiki>{{uc:@}}<nowiki>]</nowiki>}}}}{{#if:{{{roll|}}}|<nowiki>[</nowiki>{{uc:{{{roll}}}}}<nowiki>]</nowiki>}}{{#if:{{{tags|}}}{{{rolls|}}}|<nowiki> </nowiki>}}{{{1|}}}{{#if:{{{dc|}}}|<nowiki> </nowiki>(DC {{{dc}}})}}</includeonly><noinclude>{{documentation|content=Used to Visually represent an in-game dialogue option. | ||
{{#if:{{{tags|}}}|{{#arrayprint:tags||@|<nowiki>[</nowiki>{{uc:@}}<nowiki>]</nowiki>}} | |||
}}{{#if:{{{roll|}}}|<nowiki>[</nowiki>{{uc:{{{roll}}}}}<nowiki>]</nowiki> | |||
}}{{#if:{{{tags|}}}{{{rolls|}}}|<nowiki> </nowiki>}}{{{1|}}}{{#if:{{{dc|}}}|<nowiki> </nowiki>(DC {{{dc}}})}} | |||
</includeonly><noinclude>{{documentation|content=Used to Visually represent an in-game dialogue option. | |||
== Usage == | == Usage == | ||
Line 9: | Line 5: | ||
=== Examples === | === Examples === | ||
{{ | {{Template demo | ||
| style = table | |||
| caption 1 = Basic usage | |||
| <nowiki>{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}</nowiki> | |||
| caption 2 = Multiple tags | |||
| <nowiki>{{Dialogue option|Let me sing about our history|tags=Githyanki, Bard|roll=Performance|dc=10}}</nowiki> | |||
}} | |||
[[Category:Formatting templates]][[Category:Templates]] | [[Category:Formatting templates]][[Category:Templates]] |