Module:StoryLine
Documentation for this module may be created at Module:StoryLine/doc
local p = {} function p.render(frame) local args = frame:getParent().args local actorNPC = args.actorNPC local actorAlias = args.actorAlias local actorLink = args.actorLink local actor = args.actor local line = args.line or "" local speaker = "" if actorNPC and actorNPC ~= "" then speaker = actorNPC elseif actorAlias and actorAlias ~= "" and actorLink and actorLink ~= "" then speaker = '[[' .. actorLink .. '|' .. actorAlias .. ']]' elseif actorAlias and actorAlias ~= "" then speaker = actorAlias elseif actor and actor ~= "" then speaker = '[[' .. actor .. ']]' end local output = '{| class="wikitable" style="width: 100%;"\n' output = output .. '|-\n' output = output .. '| style="width: 100px; text-align: center;" | ' .. speaker .. '\n' output = output .. '| style="font-weight: bold;" | ' .. line .. '\n' output = output .. '|}' return output end return p