BlankPage: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
::::: but at some point it's cluttering the page so please use it sparingly
::::: but at some point it's cluttering the page so please use it sparingly


{{TextStart}}
This is a nice piece of paper for quotes and similar things. In case of short code snippets you may use the "Cb" (code blue) template to highlight and link keywords to the Wiki pages.
{{Cb|PRINT}} "Hello World!"
{{TextEnd}}
{{FixedStart}}
{{FixedEnd}}


{{PageNotes}}
{{PageNotes}}
Line 48: Line 55:
'Place your code example here
'Place your code example here
'The "Cl" (code link) template can be used to link keywords to its
'The "Cl" (code link) template can be used to link keywords to its
'respactive Wiki page. Those word will also get highlighted.
'respactive Wiki page. Those words will also get highlighted.
{{Cl|COLOR}} 15,4
{{Cl|COLOR}} 15,4
{{Cl|PRINT}} "Hello World!"
{{Cl|PRINT}} "Hello World!"
{{CodeEnd}}
{{CodeEnd}}
{{Small|This template allows for a small copyright notice.}}
{{Small|This template allows for a small copyright notice.}}


: The output block is available for the SCREEN 0 background colors 0-7
: The output block is available for the SCREEN 0 background colors 0-7

Revision as of 13:30, 24 October 2022

The _BlankPage serves as a skeleton for new Wiki pages.


Syntax

BlankSub arg1[, arg2]
result% = BlankFunc arg1[, arg2]


Parameters

  • arg1 is a mandatory argument
  • the arg2 is optional


Description

To use this skeleton click on the Edit tab above the page, then copy the raw text of this page and paste it into your new page. Change/remove sections as needed. Use this for italic and this for bold text style. To color your writings use the Text template. It takes either a color name or a #RRGGBB 32bit color, if the color part is omitted it will default to gray.

  • an askerisk marks a list point
    • two askerisks will indent the list
      • three askerisks will indent even more
This is a definition list
The first description can follow right after a colon
or in a new line
more descriptions cann follow
  • using list bullets with an askerisk
as already seen in the syntax above, you may use desciptions without a defininition too
you may also nest descriptions
but at some point it's cluttering the page so please use it sparingly
This is a nice piece of paper for quotes and similar things. In case of short code snippets you may use the "Cb" (code blue) template to highlight and link keywords to the Wiki pages.
PRINT "Hello World!"

Template:PageNotes

  • This is a sub-section for further notes like special behavior, required prerequisites etc.
  • It's also a good place to note if a command is maby not available in the Linux or Mac versions
  • If used/required, then this should always be a sub-section under the Description main section

Template:PageErrors

  • If used/required, then this also should be a sub-section under the Description main section
  • This is not intended for the regular errors a SUB/FUNCTION could throw, but rather for subtle things, known mis-behavior, tendency for stack overflows and seg faults etc.


Availability

  • QB64-PE 0.5 and up


Examples

Example 1
Each example should have a short describtion.
'Place your code example here
'The "Cl" (code link) template can be used to link keywords to its
'respactive Wiki page. Those words will also get highlighted.
COLOR 15,4
PRINT "Hello World!"
This template allows for a small copyright notice.


The output block is available for the SCREEN 0 background colors 0-7
Inside the output block use the "Ot" (output text) template for coloring
Hello World!