Lua error in Module:ChapterLayout at line 22: frame:expandTemplate: invalid type table for arg 'entity'.