ചെക്ക് യൂസർമാർ, emailconfirmed, സമ്പർക്കമുഖ കാര്യനിർവാഹകർ, kiteuser, oversight, കാര്യനിർവാഹകർ, അപ്ലോഡ് സഹായി മേള തിരുത്തുന്നവർ
750
തിരുത്തലുകൾ
No edit summary |
(ചെ.)No edit summary |
||
വരി 6: | വരി 6: | ||
local itemName = args.ItemName or "" | local itemName = args.ItemName or "" | ||
local grades = { | local grades = { | ||
{ suffix = "A ഗ്രേഡ്", file = "MedelA.svg", label = "A ഗ്രേഡ്" }, | { suffix = "A ഗ്രേഡ്", file = "MedelA.svg", label = "A ഗ്രേഡ്", description = "This is an A grade." }, | ||
{ suffix = "B ഗ്രേഡ്", file = "MedelB.svg", label = "B ഗ്രേഡ്" }, | { suffix = "B ഗ്രേഡ്", file = "MedelB.svg", label = "B ഗ്രേഡ്", description = "This is a B grade." }, | ||
{ suffix = "C ഗ്രേഡ്", file = "MedelC.svg", label = "C ഗ്രേഡ്" }, | { suffix = "C ഗ്രേഡ്", file = "MedelC.svg", label = "C ഗ്രേഡ്", description = "This is a C grade." }, | ||
{ suffix = "മറ്റുള്ളവ", file = "MedelO.svg", label = "മറ്റുള്ളവ" }, | { suffix = "മറ്റുള്ളവ", file = "MedelO.svg", label = "മറ്റുള്ളവ", description = "Other grades fall here." }, | ||
} | } | ||
local output = {} | local output = {} | ||
local expensiveCalls = 0 | local expensiveCalls = 0 | ||
local maxExpensiveCalls = | local maxExpensiveCalls = 250 -- Stay below the limit | ||
for _, grade in ipairs(grades) do | for _, grade in ipairs(grades) do | ||
വരി 24: | വരി 24: | ||
expensiveCalls = expensiveCalls + 1 -- Increment for each existence check | expensiveCalls = expensiveCalls + 1 -- Increment for each existence check | ||
table.insert(output, string.format( | table.insert(output, string.format( | ||
'<div style="text-align: center; padding: 0.75em; font-weight: normal; line-height: 1.15; font-size: 1.05em; margin-bottom: 0.2em; min-width: 120px; max-width: 250px; flex: 1 1 0px; margin-right: 1px; ' .. | '<div class="grade-item" style="text-align: center; padding: 0.75em; font-weight: normal; line-height: 1.15; font-size: 1.05em; margin-bottom: 0.2em; min-width: 120px; max-width: 250px; flex: 1 1 0px; margin-right: 1px; ' .. | ||
'background: linear-gradient(135deg, #E3FDFD, #CBF1F5); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease;">' .. | 'background: linear-gradient(135deg, #E3FDFD, #CBF1F5); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative;">' .. | ||
'<span class="tooltip" style="visibility: hidden; background-color: #333; color: #fff; text-align: center; border-radius: 6px; padding: 5px; position: absolute; bottom: 110%%; left: 50%%; transform: translateX(-50%%); z-index: 1; opacity: 0; transition: opacity 0.3s ease;">%s</span>' .. | |||
'<span aria-hidden="true" role="presentation">[[File:%s|45px|link=%s|frameless|center]]</span>' .. | '<span aria-hidden="true" role="presentation">[[File:%s|45px|link=%s|frameless|center]]</span>' .. | ||
'[[%s|<b>%s</b>]]' .. | '[[%s|<b>%s</b>]]' .. | ||
'</div>', | '</div>', | ||
grade.file, pageTitle, pageTitle, grade.label | grade.description, grade.file, pageTitle, pageTitle, grade.label | ||
)) | )) | ||
end | end |
തിരുത്തലുകൾ