Template:Topt

Revision as of 13:24, 7 November 2024 by BlackHawk (talk | contribs) (Created page with "<div class="transcript-opt {{#ifeq:{{lc:{{{quest|}}}}}|no|disabled|}}">{{#if:{{{cond|}}}|''({{{cond}}})'' |}}{{#ifeq:{{lc:{{{quest|}}}}}|no|''(Non-quest dialogue)'' |}}{{{1}}}</div><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
{{{1}}}
Template documentation
This documentation is transcluded from Template:Topt/doc. [edit] [history] [purge]

Transcript option is used on transcript pages to record dialogue options. Following a usage of topt, dialogue that occurs in that branch should have an additional level of indent.

Usage

* {{Topt|First option here}}
** Example text
* {{Topt|cond=If the player has 100 coins:|Second option here}}
** Example text
* {{Topt|quest=no|Third option here}}

Results in:

  • First option here
    • Example text
  • (If the player has 100 coins:) Second option here
    • Example text
  • (Non-quest dialogue) Third option here

Parameters

1

The option text.

cond

Used if the option only appears conditionally. The value should be a description of the condition that causes the option to appear.

quest

Set to no if the dialogue is part of a quest transcript, but the option is not relevant to the quest. This will prefix the output with (Non-quest dialogue) and grey out the option.