Template:Script line: Difference between revisions
From Tears of Themis Wiki
imported>Elaeagnifolia No edit summary |
imported>Elaeagnifolia No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly>{{#switch:{{{1|}}} | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!-- | ||
-->{{#css: | |||
.luke-script-line { | |||
color: #d0ab00; | |||
} | |||
.artem-script-line { | |||
color: #c30e0e; | |||
} | |||
.marius-script-line { | |||
color: #8772dd; | |||
} | |||
.vyn-script-line { | |||
color: #7dbe84; | |||
} | |||
}}<!-- | |||
### Variable Define | |||
-->{{#switch:{{{1|}}} | |||
|Luke Pearce | |Luke Pearce | ||
|Luke={{#vardefine: | |Luke={{#vardefine:class|luke-script-line}} | ||
|Artem Wing | |Artem Wing | ||
|Artem={{#vardefine: | |Artem={{#vardefine:class|artem-script-line}} | ||
|Marius von Hagen | |Marius von Hagen | ||
|Marius={{#vardefine: | |Marius={{#vardefine:class|artem-script-line}} | ||
|Vyn Richter | |Vyn Richter | ||
|Vyn={{#vardefine: | |Vyn={{#vardefine:class|artem-script-line}} | ||
}}<!-- | |||
### Template Display | |||
--><span class="{{#var:class}}">{{#if:{{{link|}}} | |||
| '''[[{{{link|}}}|{{{1|}}}]]''' | | '''[[{{{link|}}}|{{{1|}}}]]''' | ||
| {{#if:{{#var:{{{1|}}}}} | '''[[{{#var:{{{1|}}}}}|{{{1|}}}]]''' | '''{{{1|}}}'''}} | | {{#if:{{#var:{{{1|}}}}} | '''[[{{#var:{{{1|}}}}}|{{{1|}}}]]''' | '''{{{1|}}}'''}} | ||
}}</span>: {{{2|}}} | }}</span>: {{{2|}}} | ||
</includeonly> | </includeonly> |
Revision as of 02:19, 7 August 2021
Description
Used for single script lines.
Usage
{{SL|<speaker>|<line>}}
Example
{{SL|Person|Saying something}}
Person: Saying something
The text will change color for the LIs (Also works with full names):
{{SL|Luke|My name is Luke!}} {{SL|Artem|My name is Artem!}} {{SL|Marius|My name is Marius!}} {{SL|Vyn|My name is Vyn!}}
Luke: My name is Luke!
Artem: My name is Artem!
Marius: My name is Marius!
Vyn: My name is Vyn!
The above documentation is transcluded from Template:Script line/doc. (edit | history)