Module:QuestDetails: Difference between revisions

28 bytes removed ,  Wednesday at 02:41
no edit summary
No edit summary
No edit summary
Line 1:
local p = {}
 
local infoboxInfobox = require('Module:Infobox')
local parse = require('Module:Param Parse')
 
Line 9:
local config = {
infobox_name = 'QuestDetails',
class = 'questdetails',
}
local params = {
{ name = 'start_point' },
{ name = 'requirements' }
}
 
local retinfobox = infoboxInfobox.new(config, params, args)
local auto_width = { ["max-width"] = "85%", ["width"] = "auto" }
infobox
ret:addRow {
:add_row{
{ tag = 'th', class = "questdetails-header", content = 'Start Point' },
{ tag = 'argdth', class = "questdetails-infoheader", content =infobox.param( 'start_pointStart Point'), css = auto_width },
{ tag = 'thtd', class = "questdetails-headerinfo", content=Infobox.param('start_point'), css = 'Start Point'auto_width },
}
}
 
:add_row{
ret:addRow {
{ tag = 'th', class = "questdetails-header", content = 'Requirements' },
{ tag = 'td', class = "questdetails-info", content=infoboxInfobox.param('requirements'), colspan = '2' },
}
}
 
return ret infobox
end
 
523

edits