Module:Jcttop/core

From blackwiki
Revision as of 21:19, 30 December 2013 by blackwiki>Happy5214 (Creating stub)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This module implements {{jcttop/core}}.


local p = {}

local format = mw.ustring.format -- Local version of string formatting function
local HtmlBuilder = require "Module:HtmlBuilder" -- Import module to build HTML code
local getArgs = require('Module:Arguments').getArgs -- Import module function to work with passed arguments

function p._jcttop(args)
	-- This function calls two other functions to generate a hatnote and header row.
	-- This function is accessible from other Lua modules.
	return '' -- Temporary stub
end

function p.jcttop(frame)
	-- Entry function for {{jcttop/core}}
	local args = getArgs(frame) -- Gather passed arguments into easy-to-use table.
	return p._jcttop(args) -- Simply call another function with those arguments to actually create the header.
end

return p