"ഘടകം:Maki icon overview" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

251 ബൈറ്റുകൾ കൂട്ടിച്ചേർത്തിരിക്കുന്നു ,  8 ജനുവരി 2025
തിരുത്തലിനു സംഗ്രഹമില്ല
(Jinoytommanjaly (സംവാദം) ചെയ്ത നാൾപ്പതിപ്പ് 2625982 നീക്കം ചെയ്യുന്നു)
റ്റാഗ്: തിരസ്ക്കരിക്കൽ
No edit summary
 
വരി 277: വരി 277:
end
end


function p.list ( frame )
function p.list(frame)
local outputTable = {}
    local outputTable = {}
local hasDescriptions = false
    local hasDescriptions = false


for key, icon in pairs( p.icons ) do
    for key, icon in pairs(p.icons) do
table.insert( outputTable, '|-\n| [[File:Maki7-' ..icon.. '.svg|18px]] || ' .. icon )
        -- Use the icon variable for the correct file reference
        table.insert(outputTable, '|-\n| [[File:Maki7-' .. icon .. '.svg|18px]] || ' .. icon)


local helpText = frame.args[icon] or frame:getParent().args[icon]
        -- Check for and include descriptions if available
if helpText then
        local helpText = frame.args[icon] or frame:getParent().args[icon]
table.insert( outputTable, ' || ' .. helpText )
        if helpText then
hasDescriptions = true
            table.insert(outputTable, ' || ' .. helpText)
end
            hasDescriptions = true
        end


table.insert( outputTable, '\n' )
        table.insert(outputTable, '\n')
end
    end


local tableHeader = [[
    -- Table header
{|class="wikitable"
    local tableHeader = [[
|+ {{int:kartographer-icon-docs-table}}
        {|class="wikitable"
! {{int:kartographer-icon-docs-icon}} !! {{int:kartographer-icon-docs-key}}
        |+ {{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}}'
    if hasDescriptions then
end
        tableHeader = tableHeader .. '!! {{int:kartographer-icon-docs-help}}'
table.insert( outputTable, 1, tableHeader .. '\n' )
    end
    table.insert(outputTable, 1, tableHeader .. '\n')


table.insert( outputTable, '|}' )
    -- Table footer
    table.insert(outputTable, '|}')


return frame:preprocess( table.concat( outputTable ) )
    return frame:preprocess(table.concat(outputTable))
end
end


return p
return p
"https://schoolwiki.in/പ്രത്യേകം:മൊബൈൽവ്യത്യാസം/2625984" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്