Module:Key value table/doc

From Wikisource
Jump to navigation Jump to search

This module accepts 'triples' of labelN,dataN,classN as arguments, which represent the rows of a 2 field table row, being a 'label' and a value. The classN params define a CSS class for that row.

In order to support the use of 'default' labels, (such as those used in a template), set defaults_idx to be m, where m is the m is the highest labelN which represents a 'default' label. If there is no non-blank or nil dataN for a given labelN when N is equal or less than defaults_idx, then display of labelN will be suppressed in the generated output.