Module:Quote

-- local Quote = {} local getArgs = require('Module:Arguments').getArgs function Quote.quote(frame) -- Implements local args = getArgs(frame) return Quote._quote(args) end

Quote.main = Quote.quote

function Quote._quote( args ) local quotetext = args['quote'] or args[1] or args['quotetext'] or '' local personquoted = args['person'] or args[2] or args['personquoted'] local quotesource = args[3] or args['quotesource'] local reference = mw.html.create('cite') :addClass("ref_author") local blockquote = mw.html.create('blockquote') :wikitext('“ ' .. quotetext .. ' “') :addClass("ref_quote") if (personquoted or quotesource) then local source = '&mdash; '..(personquoted or quotesource) if (personquoted and quotesource) then source = '&mdash; '..personquoted..', ' .. quotesource end reference:wikitext(source) blockquote:node(reference) end return tostring(blockquote) end

function Quote.line( frame ) -- implements

end

function Quote.dialogue( frame ) -- implements end

return Quote