6,834
edits
No edit summary |
No edit summary |
||
Line 862: | Line 862: | ||
if args.type ~= 'event' then | if args.type ~= 'event' then | ||
local baseTypeLower = baseType:lower() | local baseTypeLower = baseType:lower() | ||
local allTypes = p.copyTable(derivedTypes[baseTypeLower] | local allTypes | ||
if derivedTypes[baseTypeLower] then | |||
allTypes = p.copyTable(derivedTypes[baseTypeLower]) | |||
table.insert(allTypes, 1, baseType) | |||
else | |||
allTypes = { baseType } | |||
end | |||
local types = {} | local types = {} | ||
for i,type in ipairs(allTypes) do | for i,type in ipairs(allTypes) do | ||
Line 869: | Line 875: | ||
p.sortTable(types) | p.sortTable(types) | ||
for i,type in ipairs(types) do | for i,type in ipairs(types) do | ||
types[i] = p.loadTemplate(frame, 'Side', {[getTypeSide(type)]='1'}).." "..type | types[i] = p.loadTemplate(frame, 'Side', {[getTypeSide(type)]='1'}).." ".."<span style=\"font-family: 'Source Code Pro', monospace;\">"..type.."</span>" | ||
end | end | ||
table.insert(out, "<div style='margin-top: 20px;'></div>") | table.insert(out, "<div style='margin-top: 20px;'></div>") | ||
table.insert(out, "\n"..table.concat(types, "")) | table.insert(out, "\n"..table.concat(types, "<br>")) | ||
local parts = p.split(p.getDisplayedName(frame), ".") | local parts = p.split(p.getDisplayedName(frame), ".") |
edits