Template:Script/choice: Difference between revisions

From Love and Deepspace Wiki
Content added Content deleted
mNo edit summary
No edit summary
Line 4: Line 4:


--><div class="script-choice">'''[CHOICE]''' {{{choice1|}}}
--><div class="script-choice">'''[CHOICE]''' {{{choice1|}}}
{{{choice1Dialogue|}}}<!--
<div class="script-choice-dialogue">{{{choice1Dialogue|}}}</div><!--


### Choice 2
### Choice 2
Line 10: Line 10:
-->{{#if:{{{choice2|}}} |
-->{{#if:{{{choice2|}}} |
'''[CHOICE]''' {{{choice2|}}}
'''[CHOICE]''' {{{choice2|}}}
{{{choice2Dialogue|}}}
<div class="script-choice-dialogue">{{{choice2Dialogue|}}}</div>
}}<!--
}}<!--


Line 17: Line 17:
-->{{#if:{{{choice3|}}} |
-->{{#if:{{{choice3|}}} |
'''[CHOICE]''' {{{choice3|}}}
'''[CHOICE]''' {{{choice3|}}}
{{{choice3Dialogue|}}}
<div class="script-choice-dialogue">{{{choice3Dialogue|}}}</div>
}}<!--
}}<!--


Line 24: Line 24:
-->{{#if:{{{choice4|}}} |
-->{{#if:{{{choice4|}}} |
'''[CHOICE]''' {{{choice4|}}}
'''[CHOICE]''' {{{choice4|}}}
{{{choice4Dialogue|}}}
<div class="script-choice-dialogue">{{{choice4Dialogue|}}}</div>
}}
}}
</div></includeonly>
</div></includeonly>

Revision as of 05:02, 18 February 2024

Documentation

Description

Template:Script encompasses several subtemplates to help create stylized scripts.

Required

Script Parts

Example

{{Script/start}}
{{Script/location|Grassy Fields}}
{{Script/action|The sun warms the air while the wind blows through the grassy fields. A girl runs across.}}
{{Script/speaker|Girl|Wheeeeeeeeeee!!!!}}
{{Script/end}}
Script
Grassy Fields
The sun warms the air while the wind blows through the grassy fields. A girl runs across.
Girl: Wheeeeeeeeeee!!!!

Adding Location Links

If you want the location to link to a specific page, you can add the link field. This will also store the link into Cargo as the location for querying. For example, if you want Southeastern corner of Hat Island to link to Hat Island, do the following (either way):

{{Script/location|Southeastern corner of Hat Island|link=Hat Island}}
{{Script/location|location=Southeastern corner of Hat Island|link=Hat Island}}

Adding Choices

If a script has choices, use Template:Script/choice. The template is as follows:

{{Script/choice
|choice1=
|choice1Dialogue=
|choice2=
|choice2Dialogue=
|choice3=
|choice3Dialogue=
|choice4=
|choice4Dialogue=
}}

Here's an example of its usage.

{{Script/start}}
{{Script/location|Grassy Fields}}
{{Script/action|The sun warms the air while the wind blows through the grassy fields. What do you do?}}

{{Script/choice
|choice1=RUN ACROSS!
|choice1Dialogue=
{{Script/speaker|Girl|Wheeeeeeeeeee!!!!}}
{{Script/speaker|Girl|So fun!!!!!}}
|choice2=Sit and relax.
|choice2Dialogue=
{{Script/speaker|Girl|Cozy.}}
|choice3=Go back inside.
|choice3Dialogue=
{{Script/speaker|Girl|No time for sun.}}
{{Script/speaker|Girl|More time for Love and Deepspace.}}
}}

{{Script/end}}
Script
Grassy Fields
The sun warms the air while the wind blows through the grassy fields. What do you do?
[CHOICE] RUN ACROSS!
Girl: Wheeeeeeeeeee!!!!
Girl: So fun!!!!!
[CHOICE] Sit and relax.
Girl: Cozy.
[CHOICE] Go back inside.
Girl: No time for sun.
Girl: More time for Love and Deepspace.