This question has been answered by BobRay. See the first response.

<?php
$title = $this->modx->resource->get('pagetitle');
$country = $modx->getObject('modCountry', array('country_name' => $title));
if ($country) {
$output = $modx->getChunk('CountryDataView', $country->toArray());
} else {
$output = 'Country not found';
}
return $output;
$title = $_GET['country']
<a href="mysite.com/view-country?country=Germany>Germany</a>
And I don't want to create a new resource for every page, I'd end up with millions of them and never be able to load the admin menu, but thank you for the advice.
A slightly different (better) way to go would be to have * a single page * that displays the country data and put a $_GET parameter called 'country' in the link to the page to specify the country.
