Jump to content

Module:Jcttop/core

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Happy5214 (talk | contribs) at 21:19, 30 December 2013 (Creating stub). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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