Module:Tscript/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Tscript
Supplementary functions for Template:Story Transcript.
Functions
| Function name | Associated template | Parameters | Description |
|---|---|---|---|
icon
|
Template:Story Transcript/Dialogue |
|
Returns code to embed an icon for the specified character, either [[File:{value of 2}]] or [[File:Story_Icon_{value of 1}.png]]. If both arguments are blank, returns an empty string.
|
ch
|
Template:Story Transcript/Dialogue |
|
Returns code for identifying and potentially linking a character's name. |
v
|
Template:Story Transcript/Dialogue, Template:Story Transcript/Narration |
|
Returns code for embedding a character's voice lines.
If no value is specified, returns an empty string. If values are specified, for every (max 4) parameter before an unspecified parameter are output so that every valid parameter is turned into |
d
|
Template:Story Transcript/Dialogue |
|
Returns code for embedding the text of a character's dialogue. If 1 is unspecified, returns an empty string. If 1 is specified and 2 is unspecified, returns 1 in a single table column. If both 1 and 2 are specified, returns both in separate table columns. |
cs
|
Template:Story Transcript/Narration, Template:Story Transcript/Illustration, Template:Story Transcript/Music, Template:Story Transcript/Video |
|
If 1 is unspecified, returns colspan="2".
If 1 is specified, returns |
Explanation
- ↑ See the following table
| 1 | 2 | 3 | 4 | Output |
|---|---|---|---|---|
| (empty string) | ||||
| my_file | [[File:my_file.ogg]]
| |||
| file1 | file2 | file3 | file4 | [[File:file1.ogg]][[File:file2.ogg]][[File:file3.ogg]][[File:file4.ogg]]
|
| file1 | file4 | [[File:file1.ogg]]
|