Module:Book
From Eli's Software Encyclopedia
Documentation for this module may be created at Module:Book/doc
local p = {}
function p.getData(frame)
local parent = frame and frame:getParent()
if not parent then return {} end
local args = parent.args or {}
return args
end
function p.semanticStore(infobox)
end
function p.semanticStore(frame)
local titleObj = mw.title.getCurrentTitle()
p.getData(frame)
local data = {
'Has Title=' .. booktitle,
'Author=' .. authors,
'+sep=,',
'Publisher=' .. publisher,
'Release Date=' .. releaseDate,
'Genre=' .. genre,
'ISBN=' .. isbn,
'LCC=' .. lcc,
'Book Format=' .. bookformat,
'Country=' .. country,
'Language=' .. language
}
mw.smw.set( data )
end
return p
