Template:Script/doc: Difference between revisions
From Tears of Themis Wiki
imported>Elaeagnifolia (→Usage) |
imported>Elaeagnifolia |
||
Line 12: | Line 12: | ||
}} | }} | ||
</pre> | </pre> | ||
==Parameters== | |||
* <code>characterLinks</code> - 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. | |||
* <code>scriptHeader</code> - Optional if you want to change the header text. Defaults to "Script". | |||
* <code>collapsed</code> - Adding in this variable will default the script div to be collapsed instead of expanded. | |||
* <code>script</code> - Where you define the character lines using [[Template:SL]]. | |||
==Example== | ==Example== | ||
<pre> | |||
{{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!}} | |||
}} | |||
</pre> | |||
{{Script | {{Script | ||
|characterLinks=Artem!Artem Wing,Luke!Luke Pearce,You!Main Character | |characterLinks=Artem!Artem Wing,Luke!Luke Pearce,You!Main Character |
Revision as of 02:03, 7 August 2021
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.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!}} }}
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.