Prismata Wiki
Template-info.png Documentation

This is a simple template that performs two functions:

  • It sets the page name given in the first parameter to the data_page var.
  • It then transcludes the given page as if it were a template.

It isn't intended to be directly used. Instead, infoboxes such as {{Unit infobox}} use it in a Cargo query of a table such as Unit_data_pages that finds the appropriate data page and then passes it to this template.

Example of usage (from inside an infobox template):

  |where={{#if: {{{testdatapage|}}}
      |"{{#if:{{{name|}}}|{{{name}}}|{{#titleparts:{{PAGENAME}} }} }}"
  |group by=Unit_data_pages._pageName
  |template=Get data page
  |more results text=
  |no html