Module:Mermaid

From Portals of Phereon Wiki
Revision as of 05:54, 25 September 2021 by Kozd (talk | contribs) (draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {};
local cargo = mw.ext.cargo;
local utils = require( "Module:Utils" );

function p.spirits(frame)
	local temp_res = {};
	local spirits = {};
	local results = cargo.query();
	for _, result in ipairs(results) do
		local spirit = {};
	end
	local evolutions = cargo.query();
	for _, evolution in ipairs(evolutions) do
	end
	local header = tostring(mw.html.create( 'div' ):addClass('label-header'));
	local image  = tostring(mw.html.create( 'span' )
		:tag('img'):addClass('label-image')
		:attr('src', frame:callParserFunction{ name = 'filepath', args = '72x72px' })
		:allDone())
	local text = tostring(mw.html.create( 'span' ):addClass('class','label-text')
		:wikitext('')
		:tag('table'):addClass('label-table')
		:tag('thead'):done()
		:tag('tbody')
		:tag('tr')
		:tag('td')
		:wikitext(''):done()
		:tag('td')
		:wikitext(''):done()
		:tag('tr')
		:tag('td')
		:wikitext(''):done()
		:tag('td')
		:wikitext(''):done()
		:allDone());
	local restbl = table.concat(temp_res,"");
    return string.gsub(restbl,'"',"'");
end

return p