Difference between revisions of "Template:MC-Basic/PredefinedConstantHeader"

From SoftMC-Wiki
Jump to: navigation, search
m (Draft)
 
(added description)
Line 1: Line 1:
 
<includeonly><table width="100%" border="1" cellspacing="0" cellpadding="3">
 
<includeonly><table width="100%" border="1" cellspacing="0" cellpadding="3">
 
<tr>
 
<tr>
<th width="120">Reserved Name</th>
+
<th width="150">Reserved Name</th>
<th width="80">Value</th>
+
<th width="100">Value</th>
 
<th>Usage</th>
 
<th>Usage</th>
 
<th>Example</th>
 
<th>Example</th>
Line 14: Line 14:
 
{{Template
 
{{Template
 
|description=
 
|description=
 +
Header for predefined constants table in MC-Basic reference (AMCS Firmware).
  
 
|template=
 
|template=
 
<nowiki>
 
<nowiki>
{{MC-Basic/ErrorCodeHeader|
+
{{MC-Basic/PredefinedConstantHeader|
 
contents
 
contents
 
}}
 
}}
Line 24: Line 25:
 
|parameters=
 
|parameters=
 
;contents
 
;contents
: News entries, which require the [[Template:MC-Basic/ErrorCode|<nowiki>{{MC-Basic/ErrorCode}}</nowiki>]] template.
+
: Predefined constants entries, which require the [[Template:MC-Basic/PredefinedConstant|<nowiki>{{MC-Basic/PredefinedConstant}}</nowiki>]] template.
  
|operation=
 
 
|examples=
 
|examples=
 +
;Input
 +
<pre>
 +
{{MC-Basic/PredefinedConstantHeader|
 +
{{MC-Basic/PredefinedConstant|True|1|Absolute property (axis and group) Simulated property (axis)|A1.Absolute <nowiki>=</nowiki> True}}
 +
{{MC-Basic/PredefinedConstant|False|0|Absolute property (axis and group) Simulated property (axis)|A1.Absolute <nowiki>=</nowiki> False}}
 +
{{MC-Basic/PredefinedConstant|PI|3.14159265359|In expressions; to convert from Radians to degrees|Deg <nowiki>=</nowiki> Rad *180 / PI}}
 +
}}
 +
</pre>
 +
;Output
 +
{{MC-Basic/PredefinedConstantHeader|
 +
{{MC-Basic/PredefinedConstant|True|1|Absolute property (axis and group) Simulated property (axis)|A1.Absolute <nowiki>=</nowiki> True}}
 +
{{MC-Basic/PredefinedConstant|False|0|Absolute property (axis and group) Simulated property (axis)|A1.Absolute <nowiki>=</nowiki> False}}
 +
{{MC-Basic/PredefinedConstant|PI|3.14159265359|In expressions; to convert from Radians to degrees|Deg <nowiki>=</nowiki> Rad *180 / PI}}
 +
}}
  
 
}}
 
}}
 +
  
 
[[Category:Template:MC-Basic]]
 
[[Category:Template:MC-Basic]]
 
</noinclude>
 
</noinclude>

Revision as of 09:54, 14 December 2010

Header for predefined constants table in MC-Basic reference (AMCS Firmware).

Template

{{MC-Basic/PredefinedConstantHeader|
contents
}}

Parameters

contents
Predefined constants entries, which require the {{MC-Basic/PredefinedConstant}} template.

Examples

Input
{{MC-Basic/PredefinedConstantHeader|
{{MC-Basic/PredefinedConstant|True|1|Absolute property (axis and group) Simulated property (axis)|A1.Absolute = True}}
{{MC-Basic/PredefinedConstant|False|0|Absolute property (axis and group) Simulated property (axis)|A1.Absolute = False}}
{{MC-Basic/PredefinedConstant|PI|3.14159265359|In expressions; to convert from Radians to degrees|Deg = Rad *180 / PI}}
}}
Output
Reserved Name Value Usage Example
True 1 Absolute property (axis and group) Simulated property (axis) A1.Absolute = True
False 0 Absolute property (axis and group) Simulated property (axis) A1.Absolute = False
PI 3.14159265359 In expressions; to convert from Radians to degrees Deg = Rad *180 / PI

For more examples refer to pages, which use this template: What links here.

Help:Templates describes general usage of templates, including treatment of special characters.