Template:Random dialogue

From Old School RuneScape Wiki
Jump to: navigation, search
Template documentation
This documentation is transcluded from Template:Random dialogue/doc. [edit] [purge]

The Random dialogue template is used on transcript pages to indicate the following spoken dialogues are randomised, whilst keeping the wording consistent across pages.

Usage

Typical usage is to place the template at the start of a section where each time dialogue is started the npc's response is random.

{{Random dialogue}}
* Dialogue 1
** Example text
** {{tact|end}}
* Dialogue 2
** Example text
** {{tact|end}}

This would result in:

A random dialogue will be selected every time Random dialogue is spoken to:

  • Dialogue 1
    • Example text
    • (End of dialogue)
  • Dialogue 2
    • Example text
    • (End of dialogue)


However the template can also be used to indicate a conditional that is random within a section using {{Random dialogue|option}}:

* Example text
** Example option
*** {{Random dialogue|option}}
**** Dialogue 1
***** Example text
***** {{tact|continue}}
**** Dialogue 2
***** Example text
***** {{tact|continue}}

This results in:

  • Example text
    • Example option
      • A random dialogue will be selected every time this option is chosen:
        • Dialogue 1
          • Example text
          • (Continues below)
        • Dialogue 2
          • Example text
          • (Continues below)

Overhead

When used in relation to overhead dialogue, {{Random dialogue|overhead}} should be used:

{{Random dialogue|overhead}}
* Dialogue 1
** {{RSChat|Example text}}
* Dialogue 2
** {{RSChat|Example text}}

This results in:

A random overhead dialogue will be selected every time they speak:

  • Dialogue 1
    • Example text
  • Dialogue 2
    • Example text

Text override

Should a text override be required rather than the default pagename, {{Random dialogue|text for override}} can be used:

{{Random dialogue|Alexis}}
* Dialogue 1
** Example text
** {{tact|continue}}

This results in:

A random dialogue will be selected every time Alexis is spoken to:

  • Dialogue 1
    • Example text
    • (Continues below)

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.


Inserts a premade dialogue for use in transcripts that indicates randomised dialogue.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
11

Text override for npc name

Default
PAGENAME
Example
empty
Auto value
empty
Stringoptional