- <th><a href="index.pl?page=alliances&order=score">Score</a> (<a href="index.pl?page=alliances&order=kscore">known planets</a>)</th>
- <th><a href="index.pl?page=alliances&order=scavg">Avg Score</a> (<a href="index.pl?page=alliances&order=kscavg">known planets</a>)</th>
- <th><a href="index.pl?page=alliances&order=size">Size</a> (<a href="index.pl?page=alliances&order=ksize">known planets</a>)</th>
- <th><a href="index.pl?page=alliances&order=siavg">Avg Size</a> (<a href="index.pl?page=alliances&order=ksiavg">known planets</a>)</th>
- <th><a href="index.pl?page=alliances&order=kxp">XP</a> (<a href="index.pl?page=alliances&order=kxpavg">avg</a>)</th>
- <th><a href="index.pl?page=alliances&order=kvalue">Value</a> (<a href="index.pl?page=alliances&order=kvalavg">avg</a>)</th>
+ <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=score">Score</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=kscore">known planets</a>)</th>
+ <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=scavg">Avg Score</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=kscavg">known planets</a>)</th>
+ <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=size">Size</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=ksize">known planets</a>)</th>
+ <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=siavg">Avg Size</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=ksiavg">known planets</a>)</th>
+ <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=kxp">XP</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=kxpavg">avg</a>)</th>
+ <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=kvalue">Value</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&order=kvalavg">avg</a>)</th>