Difference between revisions of "Template:MC-Basic"
m (Draft) |
m |
||
| (18 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly><!-- |
| + | -->__NOTOC__<!-- | ||
| + | -->__NOEDITSECTION__<!-- | ||
| + | |||
| + | ### DESCRIPTION | ||
| + | |||
| + | -->{{{DESCRIPTION}}}<!-- | ||
| + | |||
| + | ### SHORT FORM | ||
| + | |||
| + | -->{{#if:{{{SHORT FORM|}}}|: | ||
== Short form == | == Short form == | ||
{{{SHORT FORM}}} | {{{SHORT FORM}}} | ||
| + | }}<!-- | ||
| + | ### SYNTAX | ||
| + | |||
| + | -->{{#if:{{{SYNTAX|}}}|: | ||
== Syntax == | == Syntax == | ||
{{{SYNTAX}}} | {{{SYNTAX}}} | ||
| + | }}<!-- | ||
| + | ### AVAILABILITY | ||
| + | |||
| + | -->{{#if:{{{AVAILABILITY|}}}|: | ||
== Availability == | == Availability == | ||
{{{AVAILABILITY}}} | {{{AVAILABILITY}}} | ||
| + | }}<!-- | ||
| − | + | ### TYPE | |
| − | |||
| + | -->{{#if:{{{TYPE|}}}|: | ||
== Type == | == Type == | ||
{{{TYPE}}} | {{{TYPE}}} | ||
| + | }}<!-- | ||
| + | ### RANGE | ||
| + | |||
| + | -->{{#if:{{{RANGE|}}}|: | ||
== Range == | == Range == | ||
{{{RANGE}}} | {{{RANGE}}} | ||
| + | }}<!-- | ||
| + | ### UNITS | ||
| + | |||
| + | -->{{#if:{{{UNITS|}}}|: | ||
== Units == | == Units == | ||
{{{UNITS}}} | {{{UNITS}}} | ||
| + | }}<!-- | ||
| + | ### DEFAULT | ||
| + | |||
| + | -->{{#if:{{{DEFAULT|}}}|: | ||
== Default == | == Default == | ||
{{{DEFAULT}}} | {{{DEFAULT}}} | ||
| + | }}<!-- | ||
| + | ### SCOPE | ||
| + | |||
| + | -->{{#if:{{{SCOPE|}}}|: | ||
== Scope == | == Scope == | ||
{{{SCOPE}}} | {{{SCOPE}}} | ||
| + | }}<!-- | ||
| + | ### LIMITATIONS | ||
| + | |||
| + | -->{{#if:{{{LIMITATIONS|}}}|: | ||
== Limitations == | == Limitations == | ||
{{{LIMITATIONS}}} | {{{LIMITATIONS}}} | ||
| + | }}<!-- | ||
| + | ### EXAMPLE | ||
| + | |||
| + | -->{{#if:{{{EXAMPLE|}}}|: | ||
== Examples == | == Examples == | ||
{{{EXAMPLE}}} | {{{EXAMPLE}}} | ||
| + | }}<!-- | ||
| + | |||
| + | ### SEE ALSO | ||
| + | |||
| + | -->{{#if:{{{SEE ALSO|}}}|: | ||
| + | == See Also == | ||
| + | {{{SEE ALSO}}} | ||
| + | }} | ||
| + | |||
| + | <!-- ### Categories--> | ||
| + | [[Category:MC-Basic:Commands|{{#explode:{{PAGENAME}}|:|-1}}]] | ||
| + | [[Category:Control:Offline|{{#explode:{{PAGENAME}}|:|-1}}]] | ||
| − | + | </includeonly> | |
| − | |||
| + | <!-- | ||
| − | + | ######### USAGE | |
| − | |||
--><noinclude> | --><noinclude> | ||
{{Template | {{Template | ||
|description= | |description= | ||
| + | Template for [[:Category:MC-Basic:Commands|MC-Basic:Commands]] reference pages. | ||
| + | |||
|template= | |template= | ||
<nowiki> | <nowiki> | ||
{{MC-Basic | {{MC-Basic | ||
| − | |||
|SHORT FORM= | |SHORT FORM= | ||
|SYNTAX= | |SYNTAX= | ||
| Line 64: | Line 119: | ||
|parameters= | |parameters= | ||
| − | |||
| − | |||
;SHORT FORM | ;SHORT FORM | ||
: | : | ||
| Line 91: | Line 144: | ||
|operation= | |operation= | ||
| − | * Pages with this template are automatically added to the [[:Category | + | * Pages with this template are automatically added to the [[:Category:MC-Basic:Commands]]. |
|examples= | |examples= | ||
| + | <pre> | ||
| + | {{MC-Basic | ||
| + | |SHORT FORM= | ||
| + | |SYNTAX= | ||
| + | BIN$(<''number''>) | ||
| + | |||
| + | |AVAILABILITY= | ||
| + | Versions 4.0.0 and higher | ||
| + | |||
| + | |DESCRIPTION= | ||
| + | BIN$ returns the string representation of a number in a binary format. | ||
| + | |||
| + | |TYPE= | ||
| + | <''return'' ''value''>: String<br> | ||
| + | |||
| + | <''number''>: Long | ||
| + | |||
| + | |RANGE= | ||
| + | <''return'' ''value''>: N/A | ||
| + | |||
| + | <''number''>: MinLong to MaxLong | ||
| + | |||
| + | |UNITS= | ||
| + | |DEFAULT= | ||
| + | |SCOPE= | ||
| + | Configuration, Task or Terminal | ||
| + | |||
| + | |LIMITATIONS= | ||
| + | |EXAMPLE= | ||
| + | <nowiki><</nowiki>pre> | ||
| + | -->myStr = Bin$(58699) | ||
| + | -->?myStr | ||
| + | 1110010101001011 | ||
| + | <nowiki><</nowiki>/pre> | ||
| + | |||
| + | |SEE ALSO= | ||
| + | * [[MC-Basic:HEX$|HEX$]] | ||
}} | }} | ||
| + | </pre> | ||
| + | }} | ||
[[Category:Template:MC-Basic]] | [[Category:Template:MC-Basic]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 13:00, 28 May 2014
Template for MC-Basic:Commands reference pages.
Template
{{MC-Basic
|SHORT FORM=
|SYNTAX=
|AVAILABILITY=
|DESCRIPTION=
|TYPE=
|RANGE=
|UNITS=
|DEFAULT=
|SCOPE=
|LIMITATIONS=
|EXAMPLE=
|SEE ALSO=
}}
Parameters
- SHORT FORM
- SYNTAX
- AVAILABILITY
- DESCRIPTION
- TYPE
- RANGE
- UNITS
- DEFAULT
- SCOPE
- LIMITATIONS
- EXAMPLE
- SEE ALSO
Operation
- Pages with this template are automatically added to the Category:MC-Basic:Commands.
Examples
{{MC-Basic
|SHORT FORM=
|SYNTAX=
BIN$(<''number''>)
|AVAILABILITY=
Versions 4.0.0 and higher
|DESCRIPTION=
BIN$ returns the string representation of a number in a binary format.
|TYPE=
<''return'' ''value''>: String<br>
<''number''>: Long
|RANGE=
<''return'' ''value''>: N/A
<''number''>: MinLong to MaxLong
|UNITS=
|DEFAULT=
|SCOPE=
Configuration, Task or Terminal
|LIMITATIONS=
|EXAMPLE=
<pre>
-->myStr = Bin$(58699)
-->?myStr
1110010101001011
</pre>
|SEE ALSO=
* [[MC-Basic:HEX$|HEX$]]
}}
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.