Jump to content

Module:Extra

From Monster Girl Encyclopedia
Revision as of 05:22, 4 September 2022 by imported>Ochiverde (Created page with "local lac = {} function lac.laconic( frame ) local page = frame.args[1] or mw.title.getCurrentTitle().text page = page .. "/Extra" local lilac = mw.title.new(page, 0) if lilac == nil then return '' end local lalac = lilac:getContent() if lalac == nil then return '' end local liclac liclac = mw.ustring.gsub( lalac, "^[^\n]*\n+", '', 1) liclac = mw.ustring.gsub( liclac, "\n+----.*", '', 1) liclac = mw.ustring.gsub( liclac, "\n+%[%[Category:", '', 1) ret...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local lac = {}

function lac.laconic( frame )
	local page = frame.args[1] or mw.title.getCurrentTitle().text
	page = page .. "/Extra"
	
	local lilac = mw.title.new(page, 0)
	if lilac == nil then return '' end
	
	local lalac = lilac:getContent()
	if lalac == nil then return '' end

	local liclac
	liclac = mw.ustring.gsub( lalac,  "^[^\n]*\n+", '', 1)
	liclac = mw.ustring.gsub( liclac, "\n+----.*", '', 1)
	liclac = mw.ustring.gsub( liclac, "\n+%[%[Category:", '', 1)
	
	return liclac
end

return lac