ചെക്ക് യൂസർമാർ, emailconfirmed, സമ്പർക്കമുഖ കാര്യനിർവാഹകർ, kiteuser, oversight, കാര്യനിർവാഹകർ, അപ്ലോഡ് സഹായി മേള തിരുത്തുന്നവർ
783
തിരുത്തലുകൾ
(Jinoytommanjaly (സംവാദം) ചെയ്ത നാൾപ്പതിപ്പ് 2625982 നീക്കം ചെയ്യുന്നു) റ്റാഗ്: തിരസ്ക്കരിക്കൽ |
No edit summary |
||
| വരി 277: | വരി 277: | ||
end | end | ||
function p.list ( frame ) | function p.list(frame) | ||
local outputTable = {} | |||
local hasDescriptions = false | |||
for key, icon in pairs(p.icons) do | |||
-- Use the icon variable for the correct file reference | |||
table.insert(outputTable, '|-\n| [[File:Maki7-' .. icon .. '.svg|18px]] || ' .. icon) | |||
-- Check for and include descriptions if available | |||
local helpText = frame.args[icon] or frame:getParent().args[icon] | |||
if helpText then | |||
table.insert(outputTable, ' || ' .. helpText) | |||
hasDescriptions = true | |||
end | |||
table.insert(outputTable, '\n') | |||
end | |||
-- Table header | |||
local tableHeader = [[ | |||
{|class="wikitable" | |||
|+ {{int:kartographer-icon-docs-table}} | |||
! {{int:kartographer-icon-docs-icon}} !! {{int:kartographer-icon-docs-key}} | |||
]] | |||
if hasDescriptions then | |||
tableHeader = tableHeader .. '!! {{int:kartographer-icon-docs-help}}' | |||
end | |||
table.insert(outputTable, 1, tableHeader .. '\n') | |||
-- Table footer | |||
table.insert(outputTable, '|}') | |||
return frame:preprocess(table.concat(outputTable)) | |||
end | end | ||
return p | return p | ||
തിരുത്തലുകൾ