Module:QuestDetails

From Brighter Shores Wiki
Revision as of 20:55, 17 November 2024 by Drekryan (talk | contribs)
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Module:QuestDetails/doc. [edit] [history] [purge]
This module does not have any documentation. Please consider adding documentation at Module:QuestDetails/doc. [edit]
Module:QuestDetails's function details is invoked by Template:QuestDetails.

local p = {}

function p.details(frame)
	local args = frame:getParent().args
	
	local params = {}
    params['start_point'] = 'value1'
    params['requirements'] = 'value2'
    
    mw.smw.set(params)
	
	local div = mw.html.create( 'div' )
	div:wikitext( "Testing" )
	if (args[1]) then
		div:wikitext( args[1].tostring() )
	end
	if (args[2]) then
		div:wikitext( args[2].tostring() )
	end

	return div
end

return p