Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Please sign up or log in to edit the wiki.

Module:Navplate/Manufacturers: Difference between revisions

From the Star Citizen Wiki, the fidelity™ encyclopedia
Content deleted Content added
Created page with "local NavplateManufacturers = {} local metatable = {} local methodtable = {} metatable.__index = methodtable local navplate = require( 'Module:Navplate' ) local navplateData = mw.loadJsonData( 'Module:Navplate/Manufacturer/data.json' ); --- Queries the SMW Store --- @return table function methodtable.getSmwData( self, category ) end --- Outputs the table --- --- @return string function methodtable.make( self ) local args = { subtitle = 'Products of', title = '..."
 
No edit summary
Line 7: Line 7:


local navplate = require( 'Module:Navplate' )
local navplate = require( 'Module:Navplate' )
local navplateData = mw.loadJsonData( 'Module:Navplate/Manufacturer/data.json' );
local navplateData = mw.loadJsonData( 'Module:Navplate/Manufacturers/data.json' );


--- Queries the SMW Store
--- Queries the SMW Store

Revision as of 22:22, 5 February 2024

Module documentation[view][edit][history][purge]
This documentation is transcluded from Module:Navplate/Manufacturers/doc. Changes can be proposed in the talk page.

local NavplateManufacturers = {}

local metatable = {}
local methodtable = {}

metatable.__index = methodtable

local navplate = require( 'Module:Navplate' )
local navplateData = mw.loadJsonData( 'Module:Navplate/Manufacturers/data.json' );

--- Queries the SMW Store
--- @return table
function methodtable.getSmwData( self, category )

end

--- Outputs the table
---
--- @return string
function methodtable.make( self )
	local args = {
		subtitle = 'Products of',
		title = 'Manufacturer'
	}

	mw.logObject( self.category )
	local data = self:getSmwData( self.category )

	-- mw.logObject( args )

    return navplate.navplateTemplate({
		args = args
    })
end

--- New Instance
---
--- @return table NavplateManufacturers
function NavplateManufacturers.new( self, frameArgs )
    local instance = {
		category = 'Category:Aegis Dynamics'
	}
    setmetatable( instance, metatable )
    return instance
end


--- "Main" entry point
---
--- @param frame table Invocation frame
--- @return string
function NavplateManufacturers.main( frame )
    local instance = NavplateManufacturers:new()

    return instance:make()
end


return NavplateManufacturers