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 actorText = "" if actorNPC then actorText = actorNPC elseif actorAlias and actorLink then actorText = string.format('[[%s|%s]]', actorLink, actorAlias) elseif actor then actorText = string.format('[[%s]]', actor) end return string.format([[ <div style="display: flex; margin: 2px 0;"> <div style="width: 100px; text-align: center;">%s</div> <div style="flex: 1;"><b>%s</b></div> </div> ]], actorText, line) end return p