-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
From WikiChip
Difference between revisions of "Module:comp"
Line 23: | Line 23: | ||
local s = '' | local s = '' | ||
− | for chip in pairs(list) do | + | for key, chip in pairs(list) do |
s = s .. "<br>\n*" .. chip | s = s .. "<br>\n*" .. chip | ||
end | end |
Revision as of 17:28, 17 May 2017
Documentation for this module may be created at Module:comp/doc
function split(str, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(str, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end
local m = {}
function m.mpu_comp(frame)
if not frame.args.list then
return 'Error: Missing chip list to compare!'
end
local list = split(frame.args.list, ',')
local s = ''
for key, chip in pairs(list) do
s = s .. "<br>\n*" .. chip
end
return s
end
return m
Retrieved from "https://en.wikichip.org/w/index.php?title=Module:comp&oldid=42928"