View source for Module:SS Medals
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
-- Helper function to determine the correct class value and format it
local function getClass(data, id, frame, forDisplay)
local class = data[id]["class"]
if not class then
return "None"
end
if type(class) == "string" then
-- Process single string class
if forDisplay then
return frame:preprocess("{{SSIcon|" .. class .. "}}")
else
return class
end
elseif type(class) == "table" then
-- Process list of classes
if #class == 1 then
-- Single class in a table
if forDisplay then
return frame:preprocess("{{SSIcon|" .. class[1] .. "}}")
000
1:0
Template used on this page:
Return to Module:SS Medals.