Module:Infobox Shop: Difference between revisions

Description was just copying the description of the owner. Shops don't have descriptions.
(Created page with "local p = {} local Infobox = require('Module:Infobox') local parse = require('Module:Param Parse') function p.main(frame) local args = frame:getParent().args local config = { infobox_name = 'Shop', } local params = { parse.name, parse.image, parse.release, parse.premium, parse.episode, {name = 'owner', func = parse.has_content, smw_property = 'Shop owner'}, } local infobox = Infobox.new(config, params, args) infobox :add_row{ {tag='th',...")
 
(Description was just copying the description of the owner. Shops don't have descriptions.)
Tag: Manual revert
 
(6 intermediate revisions by 5 users not shown)
Line 9:
local config = {
infobox_name = 'Shop',
class = {Infobox.smw_param('episode')},
}
Line 18 ⟶ 19:
parse.episode,
{name = 'owner', func = parse.has_content, smw_property = 'Shop owner'},
{name = 'location', func = parse.has_content, smw_property = 'Location', category_incomplete = 'Needs location'},
}
Line 44 ⟶ 46:
{tag='td', content=Infobox.param('owner'), colspan="14"},
}
:add_row{
infobox:pad(20)
{tag='th', content='Located in', colspan="6"},
{tag='td', content=Infobox.param('location'), colspan="14"},
}
infobox :pad(20)
return infobox
809

edits