বিষয়বস্তুতে চলুন

মডিউল:Shortcut: সংশোধিত সংস্করণের মধ্যে পার্থক্য

১টি সংস্করণ আমদানি করা হয়েছে
(1 revision imported)
 
(১টি সংস্করণ আমদানি করা হয়েছে)
 
(৩ জন ব্যবহারকারী দ্বারা সম্পাদিত ৪টি মধ্যবর্তী সংশোধন দেখানো হচ্ছে না)
৭৭ নং লাইন: ৭৭ নং লাইন:


local root = mw.html.create()
local root = mw.html.create()
root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = 'Shortcut/styles.css'} })
root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Shortcut/styles.css'} })
-- Anchors
-- Anchors
local anchorDiv = root
local anchorDiv = root
১০৩ নং লাইন: ১০৩ নং লাইন:
local shortcutList = root
local shortcutList = root
:tag('div')
:tag('div')
:addClass('module-shortcutboxplain plainlist noprint')
:addClass('module-shortcutboxplain noprint')
:attr('role', 'note')
:attr('role', 'note')
if options.float and options.float:lower() == 'left' then
if options.float and options.float:lower() == 'left' then
১১৭ নং লাইন: ১১৭ নং লাইন:
:wikitext(shortcutHeading)
:wikitext(shortcutHeading)
end
end
local list = shortcutList:tag('ul')
for i, item in ipairs(listItems) do
local ubl = require('Module:List').unbulleted(listItems)
list:tag('li'):wikitext(item)
shortcutList:wikitext(ubl)
end
return tostring(root)
return tostring(root)
end
end