الفرق بين المراجعتين لصفحة: «وحدة:Lua banner»
تم حذف المحتوى تمت إضافة المحتوى
لا ملخص تعديل |
لا ملخص تعديل |
||
سطر 1:
-- This module implements the {{lua}} template.
local yesno = require('Module:Yesno')▼
local
local
local
local p = {}
السطر 23 ⟵ 24:
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
if args.nocat and args.nocat ~= '' then
return box .. trackingCategories▼
if trackingCategories and trackingCategories ~= "" then
trackingCategories = mw.getCurrentFrame():preprocess('{{#تبديل:{{SUBPAGENAME}}|ملعب|ملعب2|doc|مختبر|نسخة|تجربة|شرح=|#default='.. trackingCategories .. "}}")
end
▲ return box .. (trackingCategories or '')
end
السطر 29 ⟵ 35:
local boxArgs = {}
if #modules < 1 then
boxArgs.text = '<strong class="error">
else
local moduleLinks = {}
السطر 36 ⟵ 42:
end
local moduleList = mList.makeList('bulleted', moduleLinks)
boxArgs.text = '
end
boxArgs.type = 'notice'
boxArgs.small = true
boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=Lua logo|link= ويكيبيديا:لوا]]'
return mMessageBox.main('mbox', boxArgs)
end
السطر 57 ⟵ 61:
cats[#cats + 1] = 'Lua templates with errors'
end
['Module:String'] = 'قوالب تستند على وحدة String',
['Module:Citation'] = 'قوالب استشهاد تستند على وحدة لوا',
['Module:Citation/CS1'] = 'قوالب استشهاد تستند على وحدة لوا',
['وحدة:تحويلات بلدان'] = 'قوالب تستخدم وحدة تحويلات بلدان',
['وحدة:Flagg'] = 'قوالب تستخدم وحدة:Flagg',
['Module:Flagg'] = 'قوالب تستخدم وحدة:Flagg'
▲ }
-- Lua templates category
titleObj = titleObj or mw.title.getCurrentTitle()
local subpageBlacklist = {
['doc'] = true,
['sandbox2'] = true,
['testcases'] = true,
['مختبر'] = true
}
if titleObj.namespace == 10
and not subpageBlacklist[titleObj.subpageText]
then
mw.log( Module )
local
if not cate and mw.ustring.find( Module , "وحدة:ب.ص.م", 1, true ) then
cate = "قوالب وحدة:ب.ص.م"
▲ ['Module:Math'] = 'Templates based on the Math Lua module',
▲ ['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module',
if not cate and mw.ustring.find( Module , "Flagg", 1, true ) then
cate = 'قوالب تستخدم وحدة:Flagg'
▲ }
end
if cate and cate ~= "" then
▲ end
▲ cats[#cats + 1] = category
▲ local protLevels = {
▲ for i, module in ipairs(modules) do
end
end
end
if #cats < 1 then
cats[#cats + 1] = 'قوالب تستند على وحدات لوا'
end
|