Module:ScriptItem: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 842: Line 842:
line1 = line1.."via the observer pattern. [https://wiki.gtaconnected.com/HowTo/Events Read more.]"
line1 = line1.."via the observer pattern. [https://wiki.gtaconnected.com/HowTo/Events Read more.]"
end
end
table.insert(out, line1)
table.insert(out, "<div style='margin-top: 20px;'>"..line1.."</div>")
table.insert(out, "<div style='margin-top: 20px;'></div>")
local getTypeSide = function(type)
local getTypeSide = function(type)
Line 872: Line 871:
types[i] = p.loadTemplate(frame, 'Side', {[getTypeSide(type)]='1'}).." "..type
types[i] = p.loadTemplate(frame, 'Side', {[getTypeSide(type)]='1'}).." "..type
end
end
table.insert(out, table.concat(types, ""))
table.insert(out, "<div style='margin-top: 20px;'>"..table.concat(types, "").."</div>")
local parts = p.split(p.getDisplayedName(frame), ".")
local parts = p.split(p.getDisplayedName(frame), ".")
Line 890: Line 889:
end
end
return table.concat(out, "<br>\n")
return table.concat(out, "")
end
end


6,834

edits

Navigation menu