Eight-week class dates and graduation counts
 
Show specialty counts on Class pages
 
Line 35: Line 35:
['30'] = { dates = '18 May – 17 July 1945', graduated = '121 of 148' },
['30'] = { dates = '18 May – 17 July 1945', graduated = '121 of 148' },
['31'] = { dates = '26 July – 22 September 1945', graduated = '74 of 108' },
['31'] = { dates = '26 July – 22 September 1945', graduated = '74 of 108' },
}
local SPECIALTIES = {
['1'] = { {'IPW German', '32'} },
['2'] = { {'IPW German', '32'}, {'IPW Italian', '4'}, {'IPW other language', '56'}, {'Photo interpretation', '33'} },
['3'] = { {'IPW German', '53'}, {'IPW Italian', '11'}, {'IPW other language', '100'}, {'Photo interpretation', '36'}, {'Counterintelligence', '100'} },
['4'] = { {'IPW German', '123'}, {'IPW Italian', '22'}, {'IPW other language', '125'}, {'Photo interpretation', '57'}, {'Counterintelligence', '52'} },
['5'] = { {'IPW German', '86'}, {'IPW Italian', '37'}, {'IPW other language', '194'}, {'Photo interpretation', '52'}, {'Counterintelligence', '80'}, {'Terrain intelligence', '22'} },
['6'] = { {'IPW German', '80'}, {'IPW Italian', '25'}, {'IPW other language', '142'}, {'Photo interpretation', '95'}, {'Counterintelligence', '59'}, {'Terrain intelligence', '25'} },
['7'] = { {'IPW German', '109'}, {'IPW Italian', '43'}, {'IPW other language', '155'}, {'Photo interpretation', '47'}, {'Counterintelligence', '165'}, {'Terrain intelligence', '18'} },
['8'] = { {'IPW German', '130'}, {'IPW Italian', '23'}, {'IPW other language', '82'}, {'Photo interpretation', '74'}, {'Counterintelligence', '93'} },
['9'] = { {'IPW German', '133'}, {'IPW other language', '73'}, {'Photo interpretation', '60'}, {'Counterintelligence', '36'}, {'Terrain intelligence', '79'}, {'Signal intelligence', '32'} },
['10'] = { {'IPW German', '177'}, {'IPW Italian', '87'}, {'IPW other language', '98'}, {'Photo interpretation', '82'}, {'Counterintelligence', '37'}, {'Terrain intelligence', '28'}, {'Signal intelligence', '28'} },
['11'] = { {'IPW German', '184'}, {'IPW Italian', '74'}, {'Photo interpretation', '136'}, {'Terrain intelligence', '33'} },
['12'] = { {'IPW German', '119'}, {'IPW other language', '128'}, {'Photo interpretation', '147'} },
['13'] = { {'IPW German', '189'}, {'IPW other language', '69'}, {'Photo interpretation', '166'}, {'Terrain intelligence', '36'} },
['14'] = { {'IPW German', '130'}, {'IPW other language', '61'}, {'Photo interpretation', '165'}, {'Terrain intelligence', '71'} },
['15'] = { {'IPW German', '61'}, {'IPW other language', '95'}, {'Photo interpretation', '168'}, {'Terrain intelligence', '35'} },
['16'] = { {'IPW German', '163'}, {'IPW other language', '120'}, {'Photo interpretation', '193'}, {'Terrain intelligence', '37'} },
['17'] = { {'IPW German', '127'}, {'IPW other language', '116'}, {'Photo interpretation', '231'}, {'Terrain intelligence', '37'} },
['18'] = { {'IPW German', '147'}, {'IPW other language', '147'}, {'Photo interpretation', '328'} },
['19'] = { {'IPW German', '140'}, {'IPW other language', '107'}, {'Photo interpretation', '242'} },
['20'] = { {'IPW German', '107'}, {'IPW other language', '40'}, {'Photo interpretation', '164'}, {'Counterintelligence', '19'}, {'Terrain intelligence', '25'} },
['21'] = { {'IPW German', '96'}, {'IPW other language', '51'}, {'Photo interpretation', '134'}, {'Terrain intelligence', '28'} },
['22'] = { {'IPW German', '118'}, {'IPW other language', '62'}, {'Photo interpretation', '122'}, {'Counterintelligence', '18'}, {'Terrain intelligence', '24'} },
['23'] = { {'IPW German', '70'}, {'IPW other language', '45'}, {'Photo interpretation', '85'}, {'Counterintelligence', '128'}, {'Russian interpreter', '32'} },
['24'] = { {'IPW German', '35'}, {'Photo interpretation', '91'}, {'Counterintelligence', '261'}, {'Terrain intelligence', '15'}, {'Russian interpreter', '112'} },
['25'] = { {'IPW German', '76'}, {'Photo interpretation', '71'}, {'Counterintelligence', '356'}, {'Terrain intelligence', '13'}, {'Russian interpreter', '63'} },
['26'] = { {'IPW German', '58'}, {'Photo interpretation', '45'}, {'Counterintelligence', '272'}, {'Terrain intelligence', '12'}, {'German translation', '23'}, {'Russian interpreter', '8'} },
['27'] = { {'IPW German', '47'}, {'Photo interpretation', '31'}, {'Counterintelligence', '99'}, {'Terrain intelligence', '16'}, {'German translation', '33'}, {'Russian interpreter', '11'} },
['28'] = { {'IPW German', '46'}, {'Photo interpretation', '3'}, {'Counterintelligence', '78'}, {'Terrain intelligence', '25'}, {'German translation', '19'}, {'Russian interpreter', '11'}, {'Chinese interpreter', '58'}, {'General intelligence', '17 (Ge)'} },
['29'] = { {'IPW German', '4'}, {'Photo interpretation', '44'}, {'Counterintelligence', '96'}, {'Terrain intelligence', '56'}, {'Russian interpreter', '9'}, {'Chinese interpreter', '39'}, {'General intelligence', '17 (Ru)'} },
['30'] = { {'Photo interpretation', '22'}, {'Counterintelligence', '62'}, {'Terrain intelligence', '20'}, {'Chinese interpreter', '13'}, {'Japanese interpreter', '4'} },
['31'] = { {'Photo interpretation', '4'}, {'Terrain intelligence', '64'}, {'Chinese interpreter', '6'} },
}
}


Line 68: Line 102:
return ''
return ''
end
end
return string.format(
local bits = {
"'''Dates:''' %s<br />'''Graduated:''' %s (eight-week MITC class). See [[By The Numbers/Eight Week Classes - Dates & Graduation Numbers|By The Numbers]] for all classes.",
string.format(
info.dates,
"'''Dates:''' %s<br />'''Graduated:''' %s (eight-week MITC class).",
info.graduated
info.dates,
)
info.graduated
),
}
local specs = SPECIALTIES[num]
if specs and #specs > 0 then
local items = {}
for _, pair in ipairs(specs) do
table.insert(items, string.format('%s&nbsp;%s', pair[1], pair[2]))
end
table.insert(
bits,
"'''Specialties (class counts):''' " .. table.concat(items, '; ')
.. ". See [[By The Numbers/Eight Week Courses by Specialties|By The Numbers]]."
)
else
table.insert(
bits,
"See [[By The Numbers/Eight Week Classes - Dates & Graduation Numbers|By The Numbers]] for all classes."
)
end
return table.concat(bits, '<br />')
end
end


return p
return p