Template:Script/doc

From Tears of Themis Wiki
< Template:Script
Revision as of 02:04, 7 August 2021 by imported>Elaeagnifolia (→‎Parameters)
Template-info.png Documentation

Description

Template used for writing scripts.

Usage

{{Script
|scriptHeader=
|characterLinks=
|collapsed=
|script=
}}

Parameters

  • characterLinks - Use this parameter to define character names to pages. For example, if you want You to link to Main Character, then you would write You!Main Character. You can define multiple characters using a comma delimiter. Defining them here will automatically set the links when you write them later in the script text.
  • scriptHeader - Optional if you want to change the header text. Defaults to "Script".
  • collapsed - Adding in this variable will default the script div to be collapsed instead of expanded.
  • script - Where you define the character lines using Template:SL.

Example

{{Script
|characterLinks=Artem!Artem Wing,Luke!Luke Pearce,You!Main Character
|collapsed=1
|script=
{{SL|Artem|My name is Artem!}}
{{SL|You|Hi Artem!}}
{{SL|Luke|My name is Luke!}}
{{SL|You|Hi Luke!}}
}}
Script

Artem: My name is Artem!

You: Hi Artem!

Luke: My name is Luke!

You: Hi Luke!

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.