Module:Jctint
Appearance
![]() | This Lua module is used on 15,000+ pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module implements the {{jctint/core}} template. Please see the template page for usage instructions.
Usage
From wikitext
{{#invoke:Jctint|jctint}}
From Lua
local jctintCoreModule = require("Module:Jctint")
jctintCoreModule._jctint(args)
Tracking categories
local p = {}
local HtmlBuilder = require "Module:HtmlBuilder"
function p.locations(frame)
local pframe = frame:getParent()
local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template
local root = HtmlBuilder.create()
local unitary = args.unitary or ''
if unitary ~= '' then
local tag = root.tag('td').attr('colspan', '3').wikitext(unitary)
local align = args.unitary_align or 'left'
tag.css('text-align', align)
end
return tostring(root)
end
return p