Module:QuestDetails: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
local p = {} |
local p = {} |
||
local |
local Infobox = require('Module:Infobox') |
||
local parse = require('Module:Param Parse') |
local parse = require('Module:Param Parse') |
||
Line 9: | Line 9: | ||
local config = { |
local config = { |
||
infobox_name = 'QuestDetails', |
infobox_name = 'QuestDetails', |
||
class = 'questdetails' |
class = 'questdetails', |
||
} |
} |
||
local params = { |
local params = { |
||
{ |
{name = 'start_point'}, |
||
{ |
{name = 'requirements'} |
||
} |
} |
||
local |
local infobox = Infobox.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' }, |
|||
⚫ | |||
} |
|||
} |
|||
:add_row{ |
|||
ret:addRow { |
|||
{ tag = 'th', class = "questdetails-header", content = 'Requirements' }, |
|||
{tag = 'td', class = "questdetails-info", content=Infobox.param('requirements'), colspan='2' }, |
|||
} |
|||
} |
|||
return |
return infobox |
||
end |
end |
||