If you use the FASTA sequence of your template with its own structure, it will build a complete structure with those sections modelled as loops. You just need to provide MODELLER with the template structure, it's sequence (with gaps in the missing regions), and the sequence of the full thing.