মডিউল:মূল নিবন্ধ: সংশোধিত সংস্করণের মধ্যে পার্থক্য
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
NahidSultan (আলোচনা | অবদান) শব্দ |
আফতাবুজ্জামান (আলোচনা | অবদান) সম্পাদনা সারাংশ নেই |
||
৪ নং লাইন:
local mHatnote = require('Module:Hatnote')
local mArguments -- lazily initialise
local p = {}
function p.main(frame)
▲ mTableTools = require('Module:TableTools')
mArguments = require('Module:Arguments')
local args = mArguments.getArgs(frame, {parentOnly = true})
১৬ ⟶ ১৪ নং লাইন:
for k, v in pairs(args) do
if type(k) == 'number' then
local display = args['label ' .. k] or args['l' ..
local page =
string.format('%s|%s', string.gsub(v, '|.*$', ''), display) or v
pages[
end
end
if #pages == 0 and mw.title.getCurrentTitle().namespace == 0 then
return mHatnote.makeWikitextError(
'কোন পাতার নাম দেয়া হয়নি',
'টেমপ্লেট:মূল নিবন্ধ#ত্রুটি',
args.category
)
end▼
local options = {
selfref = args.selfref
}
return p._main(
end
function p._main(
-- Get the list of pages. If no first page was specified we use the current
-- page name.
local currentTitle = mw.title.getCurrentTitle()
if #args == 0 then args = {currentTitle.text} end
local firstPage = string.gsub(args[1], '|.*$', '')
firstPage = currentTitle.text▼
▲ end
-- Find the pagetype.
local
-- Make the formatted link text
list = mHatlist.andList(args, true)
-- Build the text.
local isPlural = #
local mainForm
if (curNs == 14) or (curNs == 15) then --category/talk namespaces
'এই [[সাহায্য:বিষয়শ্রেণী|বিষয়শ্রেণীর]] জন্য মূল %sগুলি হল %s'
▲ if isPlural then
or
'এই [[সাহায্য:বিষয়শ্রেণী|বিষয়শ্রেণীর]] জন্য মূল %sটি হল %s'
.. ' মূল %sসমূহ হল %s'▼
else
end
local text = string.format(
-- Process the options and pass the text to the _rellink function in
-- [[Module:Hatnote]].
options = options or {}
local hnOptions = {
selfref = options.selfref
}
|