Template:RootFieldType: Difference between revisions

Template page
Created page with "<includeonly><onlyinclude>{{#switch: {{{1}}} |Sync`1={{{2}}} |SyncRef`1={{{2}}} |AssetRef`1={{{2}}} |SyncDelegate`1={{{2}}} |SyncList`1=''list'' of {{{2}}} |SyncRefList`1=''list'' of {{{2}}} |SyncAssetList`1=''list'' of {{{2}}} |FieldDrive`1=''field drive'' of {{{2}}} |RawOutput`1=''raw output'' of {{{2}}} |SyncArray`1=''array'' of {{{2}}} |''direct'' [[Type:{{{1}}}|{{{1}}}]]{{#if:{{{2}}}|<{{{2}}}>}}}}</onlyinclude></includeonly> This type is used by component fie..."
 
Move bolding here instead of Table ComponentFields
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch: {{{1}}}
<includeonly><onlyinclude>{{#switch: {{{1}}}
|Sync`1={{{2}}}
|Sync`1='''{{{2}}}'''
|SyncRef`1={{{2}}}
|SyncRef`1='''{{{2}}}'''
|AssetRef`1={{{2}}}
|AssetRef`1='''{{{2}}}'''
|SyncDelegate`1={{{2}}}
|SyncDelegate`1='''{{{2}}}'''
|SyncList`1=''list'' of {{{2}}}
|SyncList`1=''list'' of '''{{{2}}}'''
|SyncRefList`1=''list'' of {{{2}}}
|SyncRefList`1=''list'' of '''{{{2}}}'''
|SyncAssetList`1=''list'' of {{{2}}}
|SyncAssetList`1=''list'' of '''{{{2}}}'''
|FieldDrive`1=''field drive'' of {{{2}}}
|FieldDrive`1=''field drive'' of '''{{{2}}}'''
|RawOutput`1=''raw output'' of {{{2}}}
|RawOutput`1=''raw output'' of '''{{{2}}}'''
|SyncArray`1=''array'' of {{{2}}}
|SyncArray`1=''array'' of '''{{{2}}}'''
|''direct'' [[Type:{{{1}}}|{{{1}}}]]{{#if:{{{2}}}|&lt;{{{2}}}&gt;}}}}</onlyinclude></includeonly>
|''direct'' '''[[Type:{{{1}}}|{{{1}}}]]{{#if:{{{2}}}|&lt;{{{2}}}&gt;}}'''}}</onlyinclude></includeonly>


This type is used by component field tables to "hide" the real field type. We don't want to explain to people that 99% of field types are actually <code>Sync`1</code> or something, so common types get hidden or turned into something nice. Cases where the real field type is shown are listed as "direct" as an unambiguous fallback.
This type is used by component field tables to "hide" the real field type. We don't want to explain to people that 99% of field types are actually <code>Sync`1</code> or something, so common types get hidden or turned into something nice. Cases where the real field type is shown are listed as "direct" as an unambiguous fallback.

Revision as of 03:39, 1 March 2024


This type is used by component field tables to "hide" the real field type. We don't want to explain to people that 99% of field types are actually Sync`1 or something, so common types get hidden or turned into something nice. Cases where the real field type is shown are listed as "direct" as an unambiguous fallback.

The first parameter is the real field type, without generic args. So like Sync`1. The second argument is the generic contents, comma separated.

Float

list of Float

list of Sync`1<Float>

direct IKSolverVR<{{{2}}}>

direct FooBar`1<Float>

direct FooBar`2<Float, Float>