Module:Based on: திருத்தங்களுக்கு இடையிலான வேறுபாடு
Jump to navigation
Jump to search
imported>Balajijagadesh translation |
imported>Sukanthi "local p = {} function p.lua_main(frame) local s = frame.args[1] if frame.args[3] then local args = {} for i, v in ipairs(frame.args) do if i >= 2 then args[#args+1] = v end end args['style'] = 'display: inline' args['list_style'] = 'display: inline' args['item1_style'] = 'display: inline' h = mw.html.create('div') h:wikitext..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது |
(வேறுபாடு ஏதுமில்லை)
| |
10:00, 20 ஆகத்து 2024 இல் கடைசித் திருத்தம்
Documentation for this module may be created at Module:Based on/doc
local p = {}
function p.lua_main(frame)
local s = frame.args[1]
if frame.args[3] then
local args = {}
for i, v in ipairs(frame.args) do
if i >= 2 then
args[#args+1] = v
end
end
args['style'] = 'display: inline'
args['list_style'] = 'display: inline'
args['item1_style'] = 'display: inline'
h = mw.html.create('div')
h:wikitext(s)
h:tag('br') -- h:newline() is not working for some reason
h:wikitext('படைத்தவர் ')
h:wikitext(frame:expandTemplate{ title = 'Unbulleted list', args = args })
return h
elseif frame.args[2] then
s = s .. '<br />படைத்தவர் ' .. frame.args[2]
return s
end
return s
end
function p.main(frame)
return p.lua_main(frame:getParent())
end
return p