You can only extend one template at a time. For everything else, use macros or include statements.
For your list, using {% include %}
is just the ticket:
{% extends "template.html" %}
{% block content %}
<h2>The Links</h2>
<ul>
{% include "filewithlinks.html">
</ul>
{% endblock %}