Hail12Pink (talk | contribs) No edit summary |
Hail12Pink (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
==documentation== |
|||
GetPartInfo can be invoked using |
GetPartInfo can be invoked using |
||
<pre>{{#invoke:GetPartInfo|getField|FIELD}}</pre> |
<pre>{{#invoke:GetPartInfo|getField|FIELD}}</pre> |
||
Line 9: | Line 10: | ||
==use-case examples:== |
|||
====In-game Description==== |
====In-game Description==== |
Revision as of 22:05, 24 August 2021
documentation
GetPartInfo can be invoked using
{{#invoke:GetPartInfo|getField|FIELD}}
replace "FIELD" with the wanted thing, like:
{{#invoke:GetPartInfo|getField|Recipe}}
additionally, you may add a second parameter to specify which part's information you want to retrieve, if this is not provided it will guess that the wanted part has the same name as the page's title, although if the page has multiple different parts listed, you will need to specify the second parameter if the part does not have the same name as the page as such:
{{#invoke:GetPartInfo|getField|Recipe|WirelessButton}}
use-case examples:
In-game Description
"A device used to travel at faster than light speeds to other regions of the universe. Simply input the coordinates to your destination and have a sufficient amount of fuel, and you'll be on your way to your destination. To initiate warping, power the hyperdrive and trigger it. When warping, the hyperdrive will be anchored to prevent any movement. The power required for warping will be dependent on the distance travelled, as well as the size of the object being transported. The amount of power required will be displayed in the hyper drive, shown in the red text. All of the parts connected to the hyperdrive and every player sitting will be teleported, however any free floating parts or standing up players will be sucked into the vaccum of space, so be careful. The red text at the bottom of the hyperdrive indicates how much power is needed to perform the jump. Make sure the numbers on the hyperdrive is facing up to ensure correct stud alignment. "
Recipe
Raw recipe
Malleability
Fixed size
fields
here is a list of all the fields that can be retrieved using this module:
- Recipe
- Raw recipe
- Malleability
- Description