Module:Message box: Difference between revisions
add cmbox
m>Mr. Stradivarius (add imbox) |
m>Mr. Stradivarius (add cmbox) |
||
Line 206: | Line 206: | ||
data.imageEmptyCell = true | data.imageEmptyCell = true | ||
data.below = true | data.below = true | ||
return p.build(data, args) | |||
end | |||
function p._cmbox(args) | |||
local data = {} | |||
data.types = { | |||
speedy = { | |||
class = 'cmbox-speedy', | |||
image = 'Cmbox deletion.png' | |||
}, | |||
delete = { | |||
class = 'cmbox-delete', | |||
image = 'Cmbox deletion.png' | |||
}, | |||
content = { | |||
class = 'cmbox-content', | |||
image = 'Cmbox content.png' | |||
}, | |||
style = { | |||
class = 'cmbox-style', | |||
image = 'Edit-clear.svg' | |||
}, | |||
move = { | |||
class = 'cmbox-move', | |||
image = 'Cmbox move.png' | |||
}, | |||
protection = { | |||
class = 'cmbox-protection', | |||
image = 'Cmbox protection.png' | |||
}, | |||
notice = { | |||
class = 'cmbox-notice', | |||
image = 'Cmbox notice.png' | |||
} | |||
} | |||
data.default = 'notice' | |||
data.classes = {'plainlinks', 'cmbox'} | |||
return p.build(data, args) | return p.build(data, args) | ||
end | end | ||
Line 242: | Line 279: | ||
p.imbox = makeWrapper(p._imbox) | p.imbox = makeWrapper(p._imbox) | ||
p.ombox = makeWrapper(p._ombox) | p.ombox = makeWrapper(p._ombox) | ||
p.cmbox = makeWrapper(p._cmbox) | |||
return p | return p |