Jump to content

Module:ShipInfobox: Difference between revisions

From Elite Dangerous Wiki
Content deleted Content added
Initial creating
 
mNo edit summary
Line 3: Line 3:
-- Add custom class
-- Add custom class
function ShipInfobox.Factionreq( field, vars )
function ShipInfobox.Factionreq( field, vars )
⚫
return "<span class=\"factionreq\">" + field.Value + "</span>"
local output = ""
⚫
output = '<span class="factionreq">' + field.Value + '</span>'
return output
end
end



Revision as of 12:25, 22 May 2015

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

local ShipInfobox = {}
            
-- Add custom class
function ShipInfobox.Factionreq( field, vars )
  return "<span class=\"factionreq\">" + field.Value + "</span>"
end  

return ShipInfobox