الفرق بين المراجعتين لصفحة: «وحدة:Navbox»

ط ۱ نسخه واردشده
 
ط مراجعة واحدة
 
(٧ مراجعات متوسطة بواسطة مستخدمين اثنين آخرين غير معروضة)
سطر ٢٠: سطر ٢٠:
-- by parent navboxes. The result is that the category shows all pages
-- by parent navboxes. The result is that the category shows all pages
-- where a child navbox is not contained in a parent navbox.
-- where a child navbox is not contained in a parent navbox.
local orphanCat = '[[رده:جعبه‌های ناوبری یتیم]]'
local orphanCat = '[[category:جعبه‌های ناوبری یتیم]]'
if border == 'subgroup' and args.orphan ~= 'yes' then
if border == 'subgroup' and args.orphan ~= 'yes' then
-- No change; striping occurs in outermost navbox.
-- No change; striping occurs in outermost navbox.
سطر ٨١: سطر ٨١:
local function renderNavBar(titleCell)
local function renderNavBar(titleCell)


if args.navbar ~= 'off' and args.navbar ~= 'plain' and not (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'الگو:Navbox') then
if args.navbar ~= 'off' and args.navbar ~= 'plain' and not (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'template:Navbox') then
titleCell:wikitext(navbar{
titleCell:wikitext(navbar{
args.name,
args.name,
سطر ٣٢٢: سطر ٣٢٢:


for _, cat in ipairs(getTrackingCategories()) do
for _, cat in ipairs(getTrackingCategories()) do
builder:wikitext('[[رده:' .. cat .. ']]')
builder:wikitext('[[category:' .. cat .. ']]')
end
end
end
end
سطر ٤٢٦: سطر ٤٢٦:
getArgs = require('Module:Arguments').getArgs
getArgs = require('Module:Arguments').getArgs
end
end
args = getArgs(frame, {wrappers = 'الگو:Navbox'})
args = getArgs(frame, {wrappers = 'template:Navbox'})


-- Read the arguments in the order they'll be output in, to make references number in the right order.
-- Read the arguments in the order they'll be output in, to make references number in the right order.