Module:Side box: Difference between revisions
use Module:Yesno for the args.metadata code
(create Lua version of Template:Side box) |
(use Module:Yesno for the args.metadata code) |
||
Line 1: | Line 1: | ||
-- This module implements {{side box}}. | -- This module implements {{side box}}. | ||
local yesno = require('Module:Yesno') | |||
local p = {} | local p = {} | ||
Line 25: | Line 27: | ||
-- Main table classes | -- Main table classes | ||
data.classes = {} | data.classes = {} | ||
if args.metadata | if yesno(args.metadata, true) then | ||
table.insert(data.classes, 'metadata') | table.insert(data.classes, 'metadata') | ||
end | end |