Template:Get cell/doc

This template gets the content of a specified table cell. This is useful for making table cells whose value depend on others.

Usage
To get the content of a table cell, first you need to give an id to the table (see ). Then use the following syntax:

replacing "cell-reference" for A1, B2, D7, etc, and "table-id" for the id of the table (see ).

To get the content of a table cell in another page, use the optional third parameter, like so:

replacing "page-name" for the name of the page where the table can be found.

Notes:


 * If the table you are designing is transcluded into another page, then the cell references will not work in the transcluding page unless you set the optional third parameter to the page where the cells can be found.
 * If the cell content is numeric, it will be automatically formatted into a plain number to simplify subsequent calculations (see ).

Example
The following wikitext:

Will output the following table:

Template data
{	"params": { "1": {			"label": "Cell", "description": "Cell reference", "example": "A1, B2, D7", "type": "string", "required": true },		"2": {			"label": "Table", "description": "ID of the table where the cell can be found", "example": "population-table", "type": "string", "required": true },		"3": {			"label": "Page", "description": "Title or ID of the page where the cell can be found", "type": "wiki-page-name", "default": "Current page" }	},	"description": "This template gets the content of a specified table cell.", "format": "inline" }