Jump to content

Module:Side box: Difference between revisions

18 bytes added ,  10 years ago
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 and args.metadata:lower() ~= 'no' then
if yesno(args.metadata, true) then
table.insert(data.classes, 'metadata')
table.insert(data.classes, 'metadata')
end
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.