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

تم حذف المحتوى تمت إضافة المحتوى
لا ملخص تعديل
لا ملخص تعديل
سطر 23:
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
if args.nocat and args.nocat ~= '' then
return box .. trackingCategories
end
if trackingCategories and trackingCategories ~= "" then
trackingCategories = mw.getCurrentFrame():preprocess('{{#تبديل:{{SUBPAGENAME}}|ملعب|ملعب2|doc|مختبر|نسخة|تجربة|شرح=|#default='.. trackingCategories .. "}}")
end
return box .. (trackingCategories or '')
end
 
السطر 29 ⟵ 34:
local boxArgs = {}
if #modules < 1 then
boxArgs.text = '<strong class="error">Errorخطأ: noلم modulesتذكر specifiedأي وحدة</strong>'
else
local moduleLinks = {}
السطر 36 ⟵ 41:
end
local moduleList = mList.makeList('bulleted', moduleLinks)
boxArgs.text = 'Thisهذا ' ..
(mw.title.getCurrentTitle():inNamespaces(828,829) and 'module' or 'template') ..
' usesيستخدم [[Wikipediaويكيبيديا:Luaلوا|Luaلوا]]:\n' .. moduleList
end
boxArgs.type = 'notice'
السطر 72 ⟵ 77:
if not category then
local categories = {
['Module:String'] = 'Luaقوالب String-basedتستند templatesعلى وحدة String',
['Module:Math'] = 'Templatesقوالب basedتستند onعلى theوحدة Math Lua module',
['Module:BaseConvert'] = 'Templatesقوالب basedتستند onعلى theوحدة BaseConvert Lua module',
['Module:Citation'] = 'Lua-basedقوالب citationاستشهاد templatesتستند على وحدة لوا',
}
categories['Module:Citation/CS1'] = categories['Module:Citation']
السطر 94 ⟵ 99:
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
if moduleProt < currentProt then
cats[#cats + 1] = "Templates'قوالب usingتستند under-protectedعلى Luaوحدات modules"لوا'
break
end