Bfeher

From ROBOTC API Guide
Jump to: navigation, search

Bence Feher

Score 629
Pages 542
Changes 2455

All time (Top 10)

Copy the template below when adding to pages!


Table of Contents + Legend

Color Key
Function:
Variable:

Example Code

<!-- for BOTH table of contents AND legend, pass '1' for both parameters: -->
{{tl|1|1}}

<!-- for ONLY the table of contents, pass '1' for first parameter, leave second parameter empty: -->
{{tl|1|}}

<!-- for ONLY the legend, pass '1' to second parameter, leave first parameter empty: -->
{{tl||1}}


Page Title

If custom name is the same as actual name except for capitalization and replacing spaces with underscores or vice versa, things will be OK. If your custom name is different than the actual name then links can and will break.

Example Code

{{DISPLAYTITLE:custom text}}
<!-- NOTE:
           For "custom text", this page is using the Variable {{SUBPAGENAME}} -->
<br />

Navigation

Main Page → Bence


  • usage:
    <yambe:breadcrumb self="page title">Parent_Page</yambe:breadcrumb>
  • example:
    <yambe:breadcrumb self="Natural Language">NXT</yambe:breadcrumb>
  • link: http://www.mediawiki.org/wiki/Extension:YAMBE
  • notes: Main_Page gets a special tag,
    <yambe:breadcrumb />


Example Code

<!-- HOW TO USE NAVIGATION BREADCRUMBS:
     usage:   <yambe:breadcrumb self="page title">Parent_Page</yambe:breadcrumb>
     example: <yambe:breadcrumb self="Natural Language">NXT</yambe:breadcrumb>
     link:    http://www.mediawiki.org/wiki/Extension:YAMBE
     notes:   Main_Page gets a special tag, <yambe:breadcrumb />
-->
<yambe:breadcrumb self="Bence">Main_Page</yambe:breadcrumb>
<br />

Parser Functions

Example Code

{{#template:textlogo|{{#ifeq:{{PAGENAME}}|Main Page|1|0}}}}


Functions and Variables

nxtDisplayBigTextLine

void nxtDisplayBigTextLine(const int nLineNumber, string sFormatString, ...)
(void) Displays a text string on one of the 8 possible text lines. Drawing uses a large font that is 16-pixels high.
Parameter Explanation Data Type
nLineNumber The line to print a string on
([top] 0 to 7 [bottom])
int
sFormatString the string(s) to display
(can be formatted!)
string
int printMe = 1;                                          // create and Initialize 'printMe' = 1
int printMeToo = 2;                                       // create and Initialize 'printMeToo' = 2
nxtDisplayBigTextLine(3, "%d, %d", printMe, PrintMeToo);  // displays on line 3 (large): "1, 2"


Example Code

== nxtDisplayBigTextLine ==
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0"
|-
| class="functionType"| <span class="bigKeywordBI">void </span><span class="bigKeywordB">nxtDisplayBigTextLine</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const int </span><span class="bigCodeBasic">nLineNumber</span><span class="bigCodePunc">, </span><span class="bigKeywordBI">string </span><span class="bigCodeBasic">sFormatString</span><span class="bigCodePunc">, </span><span class="bigCodeBasic">...</span><span class="bigCodePunc">)</span>
|-
| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_void|void]]) Displays a text string on one of the 8 possible text lines. Drawing uses a large font that is 16-pixels high.
|-
|
  {| class="parameterTable" cellpadding="5%" width="100%"
  ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter
  ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation
  ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type
  |-
  | style="border-style: solid; border-width: 1px 0px 1px 0px"|''nLineNumber'' 
  | style="border-style: solid; border-width: 1px 0px 1px 0px"|The line to print a string on<br />([top] 0 to 7 [bottom])
  | style="border-style: solid; border-width: 1px 0px 1px 0px"|[[Data_Types#dataType_int|int]]
  |-
  | style="border-style: solid; border-width: 0px 0px 0px 0px"|''sFormatString'' 
  | style="border-style: solid; border-width: 0px 0px 0px 0px"|the string(s) to display<br />(can be formatted!)
  | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_string|string]]
  |-
  |}
|-
|
  {|
  |-
  |<syntaxhighlight lang="ROBOTC">
int printMe = 1;                                          // create and Initialize 'printMe' = 1
int printMeToo = 2;                                       // create and Initialize 'printMeToo' = 2
nxtDisplayBigTextLine(3, "%d, %d", printMe, PrintMeToo);  // displays on line 3 (large): "1, 2"</syntaxhighlight>
  |-
  |}
|-
|}
<br />


Useful Links (for power users/admin)