Jump to content

Module:Tabular data/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mxn (talk | contribs) at 23:27, 9 May 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


This module displays the contents of a tabular data page on Wikimedia Commons as a (rather plain) table.

lookup

Returns the value of the cell in the given output column of the row matching the search key and column.

This function is reminiscent of LOOKUP() macros in popular spreadsheet applications, except that the search key must match exactly. (On the other hand, this means the table does not need to be sorted.)

Usage: {{#invoke:Tabular data|lookup|Data table page name.tab|Search key|Search column name|Output column name}}

Example:

{{#invoke:Tabular data

{{#invoke:Tabular data}}

wikitable

Returns the entire data table as a (rather plain) table.

Usage: {{#invoke:Tabular data|wikitable|Data table page name.tab}}

Example:

{{#invoke:Tabular data

{{#invoke:Tabular data}}