Difference between revisions of "Template:DataType"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Fix line return)
m (Add Anything and PositionX types)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch:{{lc:{{{1|}}}}}
 
<includeonly>{{#switch:{{lc:{{{1|}}}}}
 +
| any
 +
| anything= {{Biki|Anything}}
 
| a
 
| a
 
| arr
 
| arr
Line 29: Line 31:
 
| obj
 
| obj
 
| object= {{Biki|Object}}
 
| object= {{Biki|Object}}
 +
| pos
 +
| position= {{Biki|Position}}
 +
| pos2d
 +
| position2d= {{Biki|Position2D}}
 +
| posagl
 +
| positionagl= {{Biki|PositionAGL}}
 +
| posasl
 +
| positionasl= {{Biki|PositionASL}}
 +
| posaslw
 +
| positionaslw= {{Biki|PositionASLW}}
 +
| posatl
 +
| positionatl= {{Biki|PositionATL}}
 
| handle
 
| handle
 
| script
 
| script
Line 43: Line 57:
 
| teammember= {{Biki|Team Member}}
 
| teammember= {{Biki|Team Member}}
 
|
 
|
 +
| nothing
 
|-= {{Biki|Nothing}}
 
|-= {{Biki|Nothing}}
 +
|#default= {{{1|}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
Links to the corresponding {{Biki|Data Types}} BI wiki page.
 
Links to the corresponding {{Biki|Data Types}} BI wiki page.
Line 51: Line 67:
 
{{<nowiki/>DataType|'''''type'''''}}
 
{{<nowiki/>DataType|'''''type'''''}}
 
* type: one of:
 
* type: one of:
:{| class="wikitable sortbale"
+
:{| class="wikitable sortable"
 
! {{Biki|Data Types|Data Type}} !! Aliases
 
! {{Biki|Data Types|Data Type}} !! Aliases
 +
|- style="background-color: #EEE"
 +
| {{Biki|Anything}} || any, anything
 
|-
 
|-
 
| {{Biki|Array}} || a, arr, array
 
| {{Biki|Array}} || a, arr, array
Line 77: Line 95:
 
|-
 
|-
 
| {{Biki|Object}} || o, obj, object
 
| {{Biki|Object}} || o, obj, object
 +
|- style="background-color: #EEE"
 +
| {{Biki|Position}} || pos, position
 +
|- style="background-color: #EEE"
 +
| {{Biki|Position2D}} || pos2D, position2D
 +
|- style="background-color: #EEE"
 +
| {{Biki|PositionAGL}} || posAGL, positionAGL
 +
|- style="background-color: #EEE"
 +
| {{Biki|PositionASL}} || posASL, positionASL
 +
|- style="background-color: #EEE"
 +
| {{Biki|PositionASLW}} || posASLW, positionASLW
 +
|- style="background-color: #EEE"
 +
| {{Biki|PositionATL}} || posATL, positionATL
 
|-
 
|-
 
| {{Biki|Script (Handle)}} || handle, script, scripthandle
 
| {{Biki|Script (Handle)}} || handle, script, scripthandle
Line 107: Line 137:
 
| <nowiki>{{DataType|s}}</nowiki>
 
| <nowiki>{{DataType|s}}</nowiki>
 
| {{DataType|s}}
 
| {{DataType|s}}
 +
|-
 +
| <nowiki>{{DataType|number, boolean or str}}</nowiki>
 +
| {{DataType|number, boolean or str}}
 +
|}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 22:07, 20 May 2020

Links to the corresponding Data Types BI wiki page.

Usage

{{DataType|type}}

  • type: one of:
Data Type Aliases
Anything any, anything
Array a, arr, array
Boolean b, bool, boolean
Code code
Config conf, config
Control ctrl, control
Diary Record diary, diaryrecord
Display d, disp, display
Group g, grp, group
Location l, loc, location
Namespace namespace
Number n, num, number
Object o, obj, object
Position pos, position
Position2D pos2D, position2D
PositionAGL posAGL, positionAGL
PositionASL posASL, positionASL
PositionASLW posASLW, positionASLW
PositionATL posATL, positionATL
Script (Handle) handle, script, scripthandle
Side side
String s, str, string
Structured Text text, structuredtext
Task t, tsk, task
Team Member teammember
Examples
Code Result
{{DataType}} Nothing
{{DataType|-}} Nothing
{{DataType|num}} Number
{{DataType|s}} String
{{DataType|number, boolean or str}} number, boolean or str