Template:Script: Difference between revisions
From Tears of Themis Wiki
imported>Elaeagnifolia mNo edit summary |
imported>Elaeagnifolia No edit summary |
||
Line 12: | Line 12: | ||
}}<!-- | }}<!-- | ||
--><div class="mw-collapsible {{#if:{{{collapsed|}}} | mw-collapsed }}" style="border: 1px solid gray; background: #eee; padding: 1em;"> | --><div class="mw-collapsible {{#if:{{{collapsed|}}} | mw-collapsed }}" style="border: 1px solid gray; background: #eee; padding: 1em; margin:0.5em;"> | ||
<div style="border-bottom: 1px solid gray;">'''{{{scriptHeader|Script}}}'''</div> | <div style="border-bottom: 1px solid gray;">'''{{{scriptHeader|Script}}}'''</div> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> |
Revision as of 02:22, 7 August 2021
Description
Template used for writing scripts.
Usage
{{Script |scriptHeader= |noHeader= |noStyle= |collapsed= |characterLinks= |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.script
- Where you define the character lines using Template:SL.
Styling Parameters
The other parameters used by the template are mostly for styling purposes.
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.noHeader
- Removes the header and collapsed/expand text.noStyle
- Removes the outer div box. Use this if you only want text.
Example
{{Script |characterLinks=Artem!Artem Wing,Luke!Luke Pearce,You!Main Character |scriptHeader=Another header name |script= {{SL|Artem|My name is Artem!}} {{SL|You|Hi Artem!}} {{SL|Luke|My name is Luke!}} {{SL|You|Hi Luke!}} }}
- Also supports script choices
{{Script |characterLinks=Artem!Artem Wing,Luke!Luke Pearce,You!Main Character |scriptHeader=Another header name |script= {{SC |choice1=Talk to Artem! |script1= {{SL|Artem|My name is Artem!}} {{SL|You|Hi Artem!}} |choice2=Talk to Luke! |script2= {{SL|Luke|My name is Luke!}} {{SL|You|Hi Luke!}} }} }}
The above documentation is transcluded from Template:Script/doc. (edit | history)