Template:SingleSpellSlotGenerator

Given a caster level and a spell level, returns the number of spell slots for that spell level.