Prismata Wiki
Advertisement
Template-info Documentation

This template, when used with {{Data table header}}, is used to display a data table on a data page to the right side, usually through a Data template that also sets variables and the name to a "data_pages" Cargo table for automatic connection to a content page.

Each row of a data table displays the following:

  • One parameter of the relevant data template.
  • The variable the value of that parameter is set to.
  • The fields of the Cargo table this value should either be set to directly or play some role in determining the field's value.
    • The data template does not actually do this itself. This instead serves as a brief reference for the field assignments a template on the content page should do. Most commonly, an infobox will perform these assignments.
  • The value given to the parameter, which will be stored in the given variable.
    • Note that the table is usually set up to display on the template page itself, but this column's cells will be empty since the template page does and should not provide values.

The header will also identify the specific table affected.

Usage:

{{Data table header|table=Cargo table name}}
{{Data table row|parameter name|field name(s)|variable name|value|link=link option}}
...repeat above line for each row needed
|}

where:

  • parameter name: The name of a parameter on the data template.
  • field name(s): The name of the fields this parameter value should affected, with multiple names separated by commas.
  • variable name: The name of the variable this parameter value is assigned to. This is optional if the parameter and variable names are the same (which is recommended when writing the data template).
  • link option: Optional. Set to yes if the data table should treat the parameter value as a page name and display it as a link. Otherwise, it will be displayed as plain text.

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.

Advertisement