نمایش مبدأ برای پودمان:Aligned table
ظاهر
به دلیل زیر، اجازهٔ ویرایش این صفحه را ندارید:
میتوانید مبدأ این صفحه را ببینید و رونوشت بردارید:
-- This module implements {{aligned table}}
local p = {}
local function isnotempty(s)
return s and s:match( '^%s*(.-)%s*$' ) ~= ''
end
function p.table(frame)
local args = (frame.args[3] ~= nil) and frame.args or frame:getParent().args
local entries = {}
local colclass = {}
local colstyle = {}
local cols = tonumber(args['cols']) or 2
-- create the root table
local root = mw.html.create('table')
-- add table style for fullwidth
if isnotempty(args['fullwidth']) then
root
:css('width', '100%')
:css('border-collapse', 'collapse')
000
1:0
الگوی بهکاررفته در این صفحه:
بازگشت به پودمان:Aligned table.