Module:Transcript

-- Creates a simple transcript or dialogue -- Syntax : local p = {}

function p.main(frame) local args = require("Dev:Arguments").getArgs(frame) return dialogue(args) end

function dialogue(args) local htmlTranscript = mw.html.create("dl") local text = "" local count = 1 while args[count] do       text = args[count] if count % 2 == 0 then htmlTranscript:tag("dt") :addClass("transcript_quote") :wikitext(text) else htmlTranscript:tag("dd") :addClass("transcript_author") :wikitext(text) end count = count + 1 end htmlTranscript:addClass("transcript_dialogue") return htmlTranscript end

return p