"साचा:TemplateBox" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
छो always allow multilingual objects for custom table
छो paste from sandbox
ओळ १४६:
cols = 2,
width = '20%',
extract = function(item, renderCell, monolingual)
local label, alias, param = item.label, "", item.key
renderCell(monolingual(label))
param = '<code>' .. param .. '</code>'
if item.aliases then
ओळ १५९:
col = 'param-desc',
width = '60%',
extract = function(item, renderCell, monolingual)
renderCell(monolingual(item.description))
end
}, {
col = 'param-default',
width = '10%',
extract = function(item, renderCell, monolingual)
local def = monolingual(item.default) or ''
if #def == 0 then
def = '<span class="mw-templatedata-doc-muted" style="color:#777; font-variant:small-caps">' .. msg('param-empty') .. '</span>'
ओळ १७५:
col = 'param-status',
width = '10%',
extract = function(item, renderCell, monolingual)
local stat = msg('param-optional')
if item.required then
ओळ ४२२:
local row, rows = '', {}
local renderCellmonolingual = function(wikitext)
if type(wikitext) == 'table' then
wikitext = frame:expandTemplate{ title = 'LangSwitch', args = wikitext }
end
return wikitext
end
local renderCell = function(wikitext)
row = row .. '<td>' .. wikitext .. '</td>'
end
Line ४४६ ⟶ ४४९:
row = ''
for i2, field in ipairs( tableLayout ) do
field.extract(item, renderCell, monolingual)
end
table.insert(rows, row)
"https://mr.wikipedia.org/wiki/साचा:TemplateBox" पासून हुडकले