Module:Comment

local p = {}

function p.Main(frame) return p.main(frame.args) end

function p.main(args) local cType = args[1] -- "Comment Type," The template that is being called (Fi, Midna, Navi, etc.) local cSubject = args[2] -- "Comment Subject," The header for the comment (Stalfos, Green Rupee, Zelda, etc.) Pulls from parameter 1. local cContent = args[3] -- "Comment Content," The quote that is displayed in the comment. Pulls from parameter 2 and automatically surrounds it with qutotation marks. if (cType == "Archive") then --for Template:Archive returnTable = string.format("\nThis page is an archive of an old Talk Page. The contents have been moved from another page to clear space and to preserve history, so this page is locked from editing. If you wish to ask about the relative page, or respond to an earlier message, you may direct any comments to the current talk page. If you wish to refer to a message on this page, link to %s.''  ", cSubject, cContent)    elseif (cType == "Fi") then --for Template:Fi        returnTable = string.format("Fi's Comment: \n{|\n|\n|Target lock: %s  \"%s \"\n|}  ", cSubject, cContent) elseif (cType == "Fishman") then --for Template:Fishman returnTable = string.format("Fishman's Comment: \n{|\n|\n|%s \"%s\"\n|}  ", cSubject, cContent) elseif (cType == "Happy Mask Salesman") then --for Template:Happy Mask Salesman returnTable = string.format("The Happy Mask Salesman's Comment: <div class=\"mw-collapsible-content\" style=\"border-radius: 25px; border: 4px solid ; background-color: ; display: flex\">\n{|\n|\n|<span style=\"font-size: 130%%; font-weight: bold;\">%s \"%s\"\n|}  ", cSubject, cContent) elseif (cType == "Midna") then --for Template:Midna returnTable = string.format("<div class=\"toccolours mw-collapsible\" data-expandtext=\"show comment ▼\" data-collapsetext=\"hide comment ▲\"><div style=\"font-size: 105%%\">Midna's Comment: <div class=\"mw-collapsible-content\" style=\"border-radius: 25px; border: 4px solid ; background-color: ; display: flex\">\n{|\n|\n|<span style=\"font-size: 130%%; font-weight: bold;\">%s \"<span class=\"colored-text tphd-midna-blue\">%s \"\n|}  ", cSubject, cContent) elseif (cType == "Monita") then --for Template:Monita returnTable = string.format("<div class=\"toccolours mw-collapsible\" data-expandtext=\"show comment ▼\" data-collapsetext=\"hide comment ▲\"><div style=\"font-size: 105%%\">Monita's Comment: <div class=\"mw-collapsible-content\" style=\"border-radius: 25px; border: 4px solid ; background-color: ; display: flex\">\n{|\n|\n|<span style=\"font-size: 130%%; font-weight: bold;\">%s \"%s\"\n|}  ", cSubject, cContent) elseif (cType == "Navi") then --for Template:Navi returnTable = string.format("<div class=\"toccolours mw-collapsible\" data-expandtext=\"show comment ▼\" data-collapsetext=\"hide comment ▲\"><div style=\"font-size: 105%%\">Navi's Comment: <div class=\"mw-collapsible-content\" style=\"border-radius: 25px; border: 4px solid ; background-color: ; display: flex\">\n{|\n|\n|<span style=\"font-size: 130%%; font-weight: bold;\">%s \"%s\"\n|}  ", cSubject, cContent) elseif (cType == "Tatl") then --for Template:Tatl returnTable = string.format("<div class=\"toccolours mw-collapsible\" data-expandtext=\"show comment ▼\" data-collapsetext=\"hide comment ▲\"><div style=\"font-size: 105%%\">Tatl's Comment: <div class=\"mw-collapsible-content\" style=\"border-radius: 25px; border: 4px solid ; background-color: ; display: flex\">\n{|\n|\n|<span style=\"font-size: 130%%; font-weight: bold;\">%s \"%s\"\n|}  ", cSubject, cContent) elseif (cType == "Tingle") then --for Template:Tingle returnTable = string.format("<div class=\"toccolours mw-collapsible\" data-expandtext=\"show comment ▼\" data-collapsetext=\"hide comment ▲\"><div style=\"font-size: 105%%\">Tingle's Comment: <div class=\"mw-collapsible-content\" style=\"border-radius: 25px; border: 4px solid ; background-color: ; display: flex\">\n{|\n|\n|<span style=\"font-size: 130%%; font-weight: bold;\">%s \"%s\"\n|}  ", cSubject, cContent) end return returnTable end

return p