Module:Infobox Episode: Difference between revisions

Manually define premium here
(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 = 'Episode', } local params = { parse.name, parse.image, parse.release, parse.premium, } local infobox = Infobox.new(config, params, args) infobox :add_row{ {tag='th', content=Infobox.param('name'), class='infobox-header', colspan='20'}, } :add_row{...")
 
(Manually define premium here)
 
(One intermediate revision by the same user not shown)
Line 9:
local config = {
infobox_name = 'Episode',
class = {Infobox.param('name')},
}
Line 15 ⟶ 16:
parse.image,
parse.release,
-- Premium manually defined in episode infoboxes
parse.premium,
{name = 'premium', func = parse.yes_no, smw_property = 'Premium', smw_func = parse.yes_no_smw, category_incomplete = 'Needs premium status'}
}