Module:Sandbox/tricoteuses/sometest explained
local wd = require 'Module:Wd'
local p =
function p.legislative_session(frame) local args = for k,v in pairs(frame:getParent.args) do args[k] = mw.text.trim(v) end local end_time = wd._property local start_time = wd._property local label = string.match(wd._label, "(.*)%(.*%)") local end_start local style if end_time
start_time then style = "align=\"center\" style=\"background-color:#E8E9E9\"" end_start = "\n| " .. style .. " colspan=2 | " .. start_time else style = "align=\"center\" " end_start = "\n| " .. style .. " | ".. start_time .. "\n| " .. style .. " | " .. end_time end return "\n| " .. label .. end_startend
return p