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

From SoftMC-Wiki
Jump to: navigation, search
(added description)
m (corrected description)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly><tr valign="top">
 
<includeonly><tr valign="top">
<td>{{Anchor|{{{1}}}}}</td>
+
<td>{{Anchor|'''{{{1}}}'''}}</td>
 
<td>{{{2}}}</td>
 
<td>{{{2}}}</td>
 
<td>{{{3}}}</td>
 
<td>{{{3}}}</td>
Line 15: Line 15:
 
|template=
 
|template=
 
<nowiki>
 
<nowiki>
{{MC-Basic/PredefinedConstantHeader|name|value|usage|example}}
+
{{MC-Basic/PredefinedConstant|name|value|usage|example}}
 
</nowiki>
 
</nowiki>
  

Latest revision as of 08:01, 3 January 2011

Predefined constant entry within the {{MC-Basic/PredefinedConstantHeader}} template.

Template

{{MC-Basic/PredefinedConstant|name|value|usage|example}}

Parameters

name
Constant name.
value
Constant value.
usage
Usage description.
example
Examples.

Operation

The constant name is automatically anchored. A reference to a constant within the page can be done with #False.

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.