Module:Book: Difference between revisions

From Eli's Software Encyclopedia
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Reverted
Line 15: Line 15:


local titleObj    = mw.title.getCurrentTitle()
local titleObj    = mw.title.getCurrentTitle()
getData(frame)
p.getData(frame)


     local data = {
     local data = {

Revision as of 12:07, August 19, 2025

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