Jump to content

Module:MilAward

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BoonDock (talk | contribs) at 16:06, 2 April 2023 (Create module). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local data = require("Module:MilAward/data")

local function Display(args)
    local code = args["Code"]
    local award_data = data[code]
    local description = award_data["Description"]
    local ribbon_image = award_data["RibbonImage"]
    local post_nom = award_data["PostNom"]
    local country = award_data["Country"]
    
    local output = ""
    output = output .. "Description: " .. description .. "<br>"
    output = output .. "Ribbon Image: " .. ribbon_image .. "<br>"
    output = output .. "Post-Nominal: " .. post_nom .. "<br>"
    output = output .. "Country: " .. country .. "<br>"
    
    return output
end

return {
    Display = Display
}