Template:Topt/doc

This is an old revision of this page, as edited by Alex (talk | contribs) at 00:51, 17 October 2024 (Created page with "{{Documentation}} '''Transcript option''' is used on transcript mw.pages to record dialogue options. Following a usage of topt, dialogue that occurs in that branch should have an additional level of indent. ==Usage== <pre> * {{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}} </pre> Results in: {{Transcript example| * {{topt|First option here}} ** Example text..."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Topt.
It contains usage information, categories, and other content that is not part of the original template page.

Transcript option is used on transcript mw.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.

event

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