Jump to content

Module:Template parameter value/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Aidan9382 (talk | contribs) at 12:01, 3 May 2023 (Move from template doc page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Implements {{Template parameter value}}

Module usage

The module can be used directly for other modules through the function getValue(page, templates, parameters, options), which will return a success boolean and either the resulting parameter value or why it failed.

page, templates, and parameters are all required arguments. options is an optional table which can have the parameters template_index, parameter_index, ignore_subtemplates, only_subtemplates, and ignore_blank. More info on what these parameters do can be found in the template's template data.

Testcases

Testcases are available at Module talk:Template parameter value/testcases