From WikiChip
Difference between revisions of "Module:arch timeline"
(Created page with "local p = { arch = { intel = { x86 = { {"09/01/2015", "01/01/2018", "Skylake" }, {"08/30/2016", "01/01/2019",...") |
|||
Line 13: | Line 13: | ||
} | } | ||
} | } | ||
+ | |||
+ | function p.new_timeline(w, h) | ||
+ | |||
+ | end | ||
function p.intel_x86 (frame) | function p.intel_x86 (frame) | ||
− | return frame | + | local timeline |
+ | local lang = mw.language.getContentLanguage() | ||
+ | |||
+ | if not frame.args.date_start or not frame.args.date_end then | ||
+ | return "MISSING START OR END DATE" | ||
+ | end | ||
+ | |||
+ | if not frame.args.width or not frame.args.height then | ||
+ | return "MISSING WIDTH OR HEIGHT" | ||
+ | end | ||
+ | |||
+ | local start_date = frame.args.date_start | ||
+ | local end_date = frame.args.date_end | ||
+ | |||
+ | -- figure out our date range | ||
+ | local real_start = start_date | ||
+ | for i = 1, 10 do | ||
+ | |||
+ | end | ||
+ | |||
+ | |||
+ | return "" | ||
end | end | ||
return p | return p |
Revision as of 02:43, 14 May 2017
Documentation for this module may be created at Module:arch timeline/doc
local p = {
arch = {
intel = {
x86 = {
{"09/01/2015", "01/01/2018", "[[intel/microarchitectures/skylake|Skylake]]" },
{"08/30/2016", "01/01/2019", "[[intel/microarchitectures/kaby_lake|Kaby Lake]]" },
{"07/01/2017", "01/01/2019", "[[intel/microarchitectures/coffee_lake|Coffee Lake]]" },
{"10/01/2017", "10/01/2019", "[[intel/microarchitectures/cannonlake|Cannonlake]]" },
{"08/01/2018", "01/01/2020", "[[intel/microarchitectures/icelake|Icelake]]" },
{"08/01/2019", "01/01/2021", "[[intel/microarchitectures/tigerlake|Tigerlake]]" }
}
}
}
}
function p.new_timeline(w, h)
end
function p.intel_x86 (frame)
local timeline
local lang = mw.language.getContentLanguage()
if not frame.args.date_start or not frame.args.date_end then
return "MISSING START OR END DATE"
end
if not frame.args.width or not frame.args.height then
return "MISSING WIDTH OR HEIGHT"
end
local start_date = frame.args.date_start
local end_date = frame.args.date_end
-- figure out our date range
local real_start = start_date
for i = 1, 10 do
end
return ""
end
return p