More actions
This is the documentation page for Module:Data
The Data module exists to translate information from Data: pages to templates/articles.
Arguments
<1>
(Subject): This argument is taken as the title of the intended Data: page to search through.
<2+>
(Parameter chain): Arguments 2 and beyond define the parameter chain to search on the data page.
Functions
getData
: The primary function of the module. Accepts the full argument set to determine the parameter to return from the subject.
Examples
An example populated JSON set can be found at Data:Example, and blank at Data:Example/blank.
{{#invoke:Data|getData|LV-SW "SWERV"|mass}}
- Returns the mass of the "SWERV", 4.000
.
{{#invoke:Data|getData|LV-3000 "Tuba"|modules|engine|thrust|vac}}
- Returns the vacuum thrust of the "Tuba", 510.0
.