Handbook · Reference · Blockly · Text
Blockly: Text
Where in the UI. Scripts tab toolbox.
Stock string ops plus ContaindText and rich-text link formatters.
| Block id | Read as | Purpose |
|---|---|---|
text | Stock text (not translated) | Stock string literal. Not translated. Prefer Containd text for user-visible copy. |
containd_text | Containd text (localizable) | Containd text: a localizable string from the template translations matrix. |
text_join | join | Concatenate strings. |
text_length | length | Length of a string. |
text_isEmpty | isEmpty | Whether a string is empty. |
text_indexOf | indexOf | Find a substring (first/last). |
text_charAt | charAt | Character at a position. |
text_getSubstring | getSubstring | Slice of a string. |
text_changeCase | changeCase | Upper, lower, or title case. |
text_trim | trim | Trim spaces. |
text_replace | replace | Replace text in a string. |
text_print | Print to the Blockly console (not a host dialog). | |
containd_format_item_link | format item link | Build [[item:id|label]] rich text markup |
containd_format_url_link | format url link | Build [[url:…|label]] rich text markup |
containd_format_mailto_link | format mailto link | Build [[mailto:…]] rich text markup |
containd_format_tel_link | format tel link | Build [[tel:…|label]] rich text markup |