Module:Infobox radar
Documentation for this module may be created at Module:Infobox radar/doc
--require "mw.text"
--require "mw.page"
local p = {
infobox = require "Module:infobox"
}
-- This is used by template {{infobox radar}}.
function p.radar(frame)
local pframe = frame:getParent()
local args = pframe.args -- the arguments passed TO the {{infobox radar}} template, in the wikitext that instantiates the template
local config = frame.args -- the arguments passed BY the {{infobox radar}} template, in the wikitext of the template itself
local t = {}
t.title = args.name -- Should have "or mw.page.title.name" appended, but that isn't available yet.
t.image = args.image
t.caption = args.caption
t.titleclass = "summary"
t.bodyclass = "vevent"
t[1] = { label = "Country of origin", data = args.country }
t[2] = { label = "Introduced", data = args.introdate }
t[3] = { label = "Number built", data = args.number }
t[4] = { label = "Type", data = args.type }
t[5] = { label = "Frequency", data = args.frequency }
t[6] = { label = "[[Pulse Repetition Frequency|PRF]]", data = args.PRF }
t[7] = { label = "[[Beamwidth]]", data = args.beamwidth }
t[8] = { label = "Pulsewidth", data = args.pulsewidth }
t[9] = { label = "RPM", data = args.RPM or args.rpm }
t[10] = { label = "Range", data = args.range }
t[11] = { label = "Altitude", data = args.altitude }
t[12] = { label = "Diameter", data = args.diameter }
t[13] = { label = "[[Azimuth]]", data = args.azimuth }
t[14] = { label = "Elevation", data = args.elevation }
t[15] = { label = "Precision", data = args.precision }
t[16] = { label = "Power", data = args.power }
t[17] = { label = "Other names", data = args.other_names }
return p.infobox.simple(frame, config, t)
end
return p