Template:Get data page
This template is used in semantic queries in templates, mostly infobox templates, to get imported data from data pages into content pages. Specifically, it first assigns the name to the data page returned by the query to the data_page variable. It then transcludes the data page itself, and properly set up data pages assign their data to appropriate variables.
It isn't intended to be used directly.
If the template containing this code receives a value for the datapage parameter, it will find the data page with that exact name if it exists and is in Category:Imported card data. Otherwise, if the name parameter, it will look for a data page in Category:Imported card data with that name value in Property:Has name. Obviously, the code above is intended for card data, but by merely changing the category, it can be quickly adapted for other types of data.