More actions
(Started documenting the module) Tag: 2017 source edit |
(Format fixes) Tag: 2017 source edit |
||
Line 3: | Line 3: | ||
== Arguments == | == Arguments == | ||
<code><1></code> (Subject): This argument is taken as the title of the intended Data: page to search through. | <code><1></code> (Subject): This argument is taken as the title of the intended Data: page to search through. | ||
<code>2+</code> (Parameter chain): Arguments 2, 3, 4, and so on define the parameter chain to search on the data page. | |||
<code><2+></code> (Parameter chain): Arguments 2, 3, 4, and so on define the parameter chain to search on the data page. | |||
== Functions == | == Functions == | ||
Line 9: | Line 10: | ||
== Examples == | == Examples == | ||
<LV-SW_"SWERV"><mass> - Returns the mass of the "SWERV", <code>4.000</code>. | <code><LV-SW_"SWERV"><mass></code> - Returns the mass of the "SWERV", <code>4.000</code>. | ||
<LV-3000_"Tuba"><modules><engine><thrust><vac> - Returns the vacuum thrust of the "Tuba", <code>510.0</code>. | |||
<code><LV-3000_"Tuba"><modules><engine><thrust><vac></code> - Returns the vacuum thrust of the "Tuba", <code>510.0</code>. |
Revision as of 21:48, 9 October 2024
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, 3, 4, and so on 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
<LV-SW_"SWERV"><mass>
- Returns the mass of the "SWERV", 4.000
.
<LV-3000_"Tuba"><modules><engine><thrust><vac>
- Returns the vacuum thrust of the "Tuba", 510.0
.