Template:MaxSpellLevel

This file takes a class and level and returns the higest level spell that can be cast.