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..." |
Add way to handle nested direct types |
||
(2 intermediate revisions by the same user not shown) | |||
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}}}|<{{{2}}}>}}}}</onlyinclude></includeonly> | |(nested)=''direct'' '''{{{2}}}''' | ||
|''direct'' '''[[Type:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|<{{{2}}}>}}'''}}</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. |
Latest revision as of 21:59, 3 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.
list of Float
direct IKSolverVR