Module:ShipInfobox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 17:
return result
end
 
 
function ShipInfobox.Factionreq( field )
-- Rather than ParserFunctions, try passing your variables this way.
local text = 'Requires '.. field.Requirement ..' rank of '.. filefield.Rank ..' or higher'
if not isempty(field.Requirement) then
-- Use mw.html for the best HTML output.
local output = mw.html.create('span')
:addClass('factionreq'):wikitext(text)