Replace multiple placeholder occurrences in templates
Merge pull request #2497 from ahocevar/greedy-template

TileUrlFunction only replaces first instance of placeholder variables