• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Module:NihongoKai

From Kancolle Wiki
Revision as of 12:02, 20 April 2015 by Nanamin (talk | contribs) (Created page with "local getArgs = require('Module:GetArgs') local format = require('Module:StringInterpolation').format local NihongoKai = { _template = [[<span style="${style}" title="${t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:NihongoKai/doc

local getArgs = require('Module:GetArgs')
local format = require('Module:StringInterpolation').format

local NihongoKai = {
    _template = [[<span style="${style}" title="${title}">${content}</span>]],
}

function NihongoKai:Main(args)
    return format{self._template, content = args[1], title = args[2], style = args[3] or ""}
end

function NihongoKai.Begin(args)
    local args = getArgs{frame = frame:getParent()}
	return NihongoKai:Main(args)
end