Welcome to TextBase

WataYingix OS logo

TextBase is a simple but powerful "fake" markup language inspired by HTML and CSS used for making websites within WataYingix OS. Let's get started!

I ain't reading all that, just take me to the OS I ain't reading all that, take me back to the main page

Setting Up Content

Headings

To make a heading, use the Heading1 tag. Example TextBase code line:

Heading1: Welcome to my site!

Subheadings

To make subheadings, use the Heading2 tag. Example TextBase code line:

Heading2: Ready to Get Started?

Small Labels

To make small labels similar to HTML's h3, use the Heading3 tag. Example TextBase code line:

Heading3: Below is a link to the very first website made in TextBase.

Paragraphs

To make a paragraph or a small piece of text, use the Paragraph tag. Example TextBase code line:

Paragraph: This is a website where I blog about my life and experiment with TextBase.

Scrolling Text

To make scrolling text that scrolls based on the camera's position, use the ScrollText tag. Example TextBase code line:

ScrollText: Riding through the wind!

Site Links

To add links to other TextBase sites, use the LinkRel tag. Example TextBase code line:

LinkRel: www.new-fonts-in-textbase.com

Buttons

Use the "Button: " tag, and then your ID, which you may use to check if it is pressed. This will display a button that says "Click me!". Example TextBase code line:

Button: ButtonID

Site Styles and Personality

Text fonts

To set the text font, use the TextFont tag. This can be set to Serif, Sans Serif, Handwriting, Pixel, and more. Example TextBase code line:

TextFont: Technological

Link fonts

Although I do recommend you keep the Marker font for these, you can change link fonts using the LinkFont tag. This can be set to every font the TextFont attribute can. Example TextBase code line:

LinkFont: Marker

Background Color

You can set the background color to White, Black, Red, Yellow, or Blue using the BG-Color tag. Example TextBase code line:

BG-Color: Red

Customizing Background Colors

If these background colors are not enough for you, you can use the BG-Color-Modifier tag. Example TextBase code line:

BG-Color-Modifier: 25

Also, in v1.1 and after, you will be able to use BG-Brightness. This also supports only numbers. Example TextBase code line:

BG-Brightness: 25

Background Music

Set the background music using the BG-Music tag. This only supports small integers. Example TextBase code line:

BG-Music: 13

Making the Desktop Buddies React

Making Timmy React

You can make Timmy react by using the TimmyAction tag. This supports Expression[number], Hop, and Flip. Example TextBase code line:

TimmyAction: Expression8

Making Sophie React

You can make Sophie react by using the SophieAction tag. This does the same thing as TimmyAction. Example TextBase code line:

SophieAction: Flip

Site Scripting and Personalization

Using Display Names

To use a display name in your heading, label, paragraph, or scrolling text, simply use DisplayName(). This can be used anywhere in your site. Example TextBase code line:

Heading2: Ready to Get Started, DisplayName()?

Creating Variables

To do this, type "CreateVariable: " and then your variable name, which you may use later to update the variable or check if it is equal to a certain value. Keep in mind that TextBase is NOT case sensitive, so variableName, VariableName, and variablename are considered the same thing. Example TextBase code line:

CreateVariable: VariableName

Setting Variables

Type the variable name, " = ", and then your value. Example:

HelloString = F*ck you

Displaying Variables

Use "DisplayVariable: " to display a variable's value even when changed, and use "DisplayVariableStatic: " to display the variable's value when this line is run. After your tag of choice, use the variable name. Example:

DisplayVariable: Clicks

Incrementing and Decrementing Variables

To increment or decrement your variable, type your variable's name, an apostrophe, and "Increment" or "Decrement". Example:

AddVariable'Increment

SubtractVariable"Decrement

Adding and Subtracting From Variables

Type your variable's name, "+=" or "-=", and the value you want to add or subtract to it. Example:

AddVar += 5

SubVar -= 2

Button Press Conditions

If statements trigger TextBase code when a condition is met. To trigger TextBase code when a button is pressed, use "IF ButtonPress'ButtonID => insert code here". Replace "ButtonID" with your button's ID and "insert code here" with your own TextBase code. Example TextBase code line:

IF ButtonPress'RandButton => BSOD1

Variable == Value Conditions

To check if any value (including a variable) is equal to any other value (including a variable), type "IF value here = value here => code here". Replace "value here" with your own values, and "code here" with your own TextBase code. Example:

IF Clicks == 50 => SFX: 7

I understand now, take me to the OS I understand now, take me back to the main page