Template:Dialogue option: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added example of multiple tags)
Tags: Mobile edit Mobile web edit
(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 ===
{{code|<nowiki>{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}</nowiki>}}:
{{Template demo
{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}
| style = table
 
| caption 1 = Basic usage
 
| <nowiki>{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}</nowiki>
{{code|<nowiki>{{Dialogue option|Let me sing about our history|tags=Githyanki, Bard|roll=Performance|dc=10}}</nowiki>}}:
| caption 2 = Multiple tags
{{Dialogue option|Let me sing about our history.|tags=Githyanki, Bard|roll=Performance|dc=10}}
| <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]]

Revision as of 22:46, 30 July 2024

Template documentation

Used to Visually represent an in-game dialogue option.

Usage

{{Dialogue option|<dialogue text>|tags=<tags>|roll=<roll type>|dc=<difficulty class>}}

Examples

Example Markup Renders as
Basic usage
{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}
[BARD][DECEPTION] I am confident you will survive this! (DC 15)
Multiple tags
{{Dialogue option|Let me sing about our history|tags=Githyanki, Bard|roll=Performance|dc=10}}
[GITHYANKI][BARD][PERFORMANCE] Let me sing about our history (DC 10)

Used to Visually represent an in-game dialogue option.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Dialogue text1

The text for the dialogue option

Stringrequired
Tagstags

Comma separated list of the tags you need to have to choose the dialogue option

Example
Barbarian, Bard, Githyanki
Stringsuggested
Roll typeroll

What skill or ability the dice roll is, if there is one

Example
Charisma, Wisdom, Persuasion, Deception, Intimidation
Stringsuggested
Difficulty Classdc

The Difficulty Class of the dice roll is, if there is one

Example
2, 10, 15, 20
Stringsuggested