Wikia Developers Wiki

Global Lua Modules/Transcript

< Global Lua Modules

847pages on
this wiki
Add New Page
Talk0 Share
A simple module to create "infinite" transcripts or dialogues.


Installing modules

To get a brief introduction to lua read the basics page first. On Wikia, one can use modules by either accessing a module remotely or copying all its contents to a Wiki. Modules accessed remotely from dev.wikia are subject to change while 'correctly' copied modules are controlled by a particular wiki.

Using a module "remotely" using Module:Devmodule

Create Module:Devmodule and copy the following code to remotely access modules in dev's repository. See more details in Global Lua Modules/Devmodule.
--[[This imports modules from dev.wikia]]
return require("Dev:Devmodule")

Loading modules remotely from dev.wikia

Create Module:Transcript in your wiki and add the following code:
--This loads modules directly from
return require("Dev:Transcript")

Using Module:Transcript in another wiki

To use modules without depending on dev see this page. Create Template:Transcript in your wiki and add the following code:

Using template in a page

You can use this module in a page using syntax such as:

Module information



Main function for users for invoke, entry point..
frametableA frame object containing the dialogue in the appropriate format.
Return typeReturn purpose
stringText containing the dialogue..


Creates dialogue using template arguments..
argstableA table containing template arguments with dialogue.
separatorstringA separator for each quote.
Return typeReturn purpose
stringText containing the dialogue..


{{#invoke:transcript|main|Luke|All right, I'll give it a try|Yoda|No. Try not. Do... or do not. There is no 'try.'}}
All right, I'll give it a try
No. Try not. Do... or do not. There is no 'try.'
{{#invoke:transcript|main|Luke:I can't believe it!|Yoda: That is why you failed.|#separator=:}}
I can't believe it!
That is why you failed.

Sample CSS

dl.transcript_dialogue dd {
    display: inline;
dl.transcript_dialogue dd:after {
    display: block;
    content: '';
dl.transcript_dialogue dt {
    display: inline-block;
    min-width: 100px;
dt.transcript_author {
    text-align: right;
dt.transcript_quote {

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.