Template:Table ComponentFields: Difference between revisions

Template page
Replace logic with Lua module (Module:ComponentFields) instead of unrolled loop
Tag: Replaced
get this out of stubs
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{| class="wikitable"
<onlyinclude><includeonly>{| class="wikitable mw-collapsible"
|+ Fields
|+ Fields
|-
|-
Line 19: Line 19:
{{#invoke:ComponentFields|main}}
{{#invoke:ComponentFields|main}}
|-
|-
|}
|}</includeonly></onlyinclude>
</includeonly></onlyinclude>


This template is used to display the table of fields in [[Component]] pages.
This template is used to display the table of fields in [[Component]] pages.
Line 30: Line 29:
{{Table ComponentFields
{{Table ComponentFields
|FixTransformsEnabled|Bool| Clamps IK transforms to reasonable values and Resets IK every update.
|FixTransformsEnabled|Bool| Clamps IK transforms to reasonable values and Resets IK every update.
|componentInitiated|Bool|  
|componentInitiated|Bool| Marks this component as fully started and ready to solve IK transforms.
|IKPosition|Float3|  
|IKPosition|Float3| Unused.
|IKPositionWeight|Float| Weight of the IK
|IKPositionWeight|Float| Weight of the IK. Makes the bones go back to <code>defaultLocalPositions</code> and <code>defaultLocalRotations</code> as this goes to 0. Also known as default pose.
}}
}}


Line 38: Line 37:


{{Table ComponentFields
{{Table ComponentFields
|Manager|ScaleObjectManager|
|Manager|ScaleObjectManager| something something.
|_sizeParser|QuantityTextEditorParser`1|TypeString1=QuantityTextEditorParser<Distance>|
|_sizeParser|QuantityTextEditorParser`1|TypeString1=QuantityTextEditorParser<Distance>| something something.
|_material|FresnelMaterial|
|_material|FresnelMaterial| something something.
}}
}}

Latest revision as of 01:17, 3 August 2025


This template is used to display the table of fields in Component pages.

Examples

Basic example. (cropped from VRIK)

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
FixTransformsEnabled Bool Clamps IK transforms to reasonable values and Resets IK every update.
componentInitiated Bool Marks this component as fully started and ready to solve IK transforms.
IKPosition Float3 Unused.
IKPositionWeight Float Weight of the IK. Makes the bones go back to defaultLocalPositions and defaultLocalRotations as this goes to 0. Also known as default pose.

Example using TypeString to specify a different type from the link. (cropped from Component:ScaleObjectCreator)

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Manager ScaleObjectManager something something.
_sizeParser QuantityTextEditorParser<Distance> something something.
_material FresnelMaterial something something.