Module:Book: Difference between revisions

From Eli's Software Encyclopedia
Created page with "local p = {} function p.semanticStore(frame) end return p"
 
mNo edit summary
Line 2: Line 2:


function p.semanticStore(frame)
function p.semanticStore(frame)
local current = mw.title:getCurrentTitle().fullText
local template = frame:getParent().args
local booktitle = template.booktitle
local data = {
['Has title'] = booktitle
}
mw.smw.set(data)
end
end


return p
return p

Revision as of 11:07, August 19, 2025

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

local p = {}

function p.semanticStore(frame)
	
	local current = mw.title:getCurrentTitle().fullText
	local template = frame:getParent().args
	local booktitle = template.booktitle
	
	local data = {
		['Has title'] = booktitle
	}
	
	mw.smw.set(data)
end

return p