| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| custom:atcodes [2026/01/09 17:45] – [User Information] Clean-up digital man | custom:atcodes [2026/02/22 22:21] (current) – [Format Parameters] add a space where a space should be nelgin |
|---|
| |
| === Exceptions === | === Exceptions === |
| @-codes that accept an parameter value, preceded by a colon ('':'') character, cannot be used with format modifiers when using the hyphen (-) modifier separator; use the pipe (|) modifier separator instead. | @-codes that accept a parameter value, preceded by a colon ('':'') character, cannot be used with format modifiers when using the hyphen (-) modifier separator; use the pipe (|) modifier separator instead. |
| |
| ==== Format Parameters ==== | ==== Format Parameters ==== |
| === Formatted-Time Parameter === | === Formatted-Time Parameter === |
| |
| Some Time and Date related @-codes support a format parameter string that using [[strftime]] specifiers. | Some Time and Date related @-codes support a format parameter string that can include [[strftime]] specifiers. |
| |
| @-codes that support a Formatted-Time Parameter are specified with a ''//:t//'' suffix, or if it's optional, ''//[:t]//''. | For example, the code ''@DATE:%Y-%m-%d\x20%H:%M:%S@'' would produce output similar to: |
| | 2026-01-09 17:51:11 |
| | |
| | @-codes that support a Formatted-Time Parameter are specified with a ''//:t//'' suffix, and when optional, ''//[:t]//''. |
| |
| ===== System Information ===== | ===== System Information ===== |
| |INETADDR | |System's Internet Address (as configured in SCFG)| | |INETADDR | |System's Internet Address (as configured in SCFG)| |
| |JS_VER | |JavaScript Library Version | | |JS_VER | |JavaScript Library Version | |
| |LASTCALLERNODE |PREVON, LASTCALLERSYSTEM |Name of user last user to use the terminal server | | |LASTCALL//[:t]// | |Date/time of last logout of the terminal server | |
| | |LASTCALLERNODE |PREVON, LASTCALLERSYSTEM |Name of user last user to logout of the terminal server | |
| |LOCAL-IP | |System's IP address | | |LOCAL-IP | |System's IP address | |
| |LOCATION | |System location (e.g. "city, state") | | |LOCATION | |System location (e.g. "city, state") | |
| ^Code ^Aliases ^Description ^ | ^Code ^Aliases ^Description ^ |
| |ADDR1 | |User's street address | | |ADDR1 | |User's street address | |
| | |ADDR2 |FROM |User's location (e.g. city, state) | |
| |AGE | |User's age (in years since birth date) | | |AGE | |User's age (in years since birth date) | |
| |ALERTS | |Node activity alerts enabled status (e.g. "On" or "Off") | | |ALERTS | |Node activity alerts enabled status (e.g. "On" or "Off") | |
| |FIRSTTIMEON | |Time of user's first logon (in "HH:MM am" or "HH:MM:SS" format) | | |FIRSTTIMEON | |Time of user's first logon (in "HH:MM am" or "HH:MM:SS" format) | |
| |FIRSTREAL |REAL |First word of user's real name | | |FIRSTREAL |REAL |First word of user's real name | |
| |FROM | |User's location (e.g. "City, State") | | |FROM |ADDR2 |User's location (e.g. "City, State") | |
| |FREECDT//[:b]// | |User's remaining freely-awarded (unearned) credits for today (see USEDCDT) | | |FREECDT//[:b]// | |User's remaining freely-awarded (unearned) credits for today (see USEDCDT) | |
| |FWD | |User's netmail forward status (e.g. "On" or "Off") (new in v3.18c)| | |FWD | |User's netmail forward status (e.g. "On" or "Off") (new in v3.18c)| |
| |NODE_USER | |User's alias or "UNKNOWN USER" if the current node is in anonymous mode (new in v3.20)| | |NODE_USER | |User's alias or "UNKNOWN USER" if the current node is in anonymous mode (new in v3.20)| |
| |NOTE |MEMO1 |User's note (new in v3.18c) | | |NOTE |MEMO1 |User's note (new in v3.18c) | |
| | |ONOFF://ars//| |The text string for "On" or "Off" based on the comparison of the specified [[access:requirements|Access Requirements String]] (without spaces). | |
| |PAGER | |Chat pager enabled status (e.g. "On" or "Off")| | |PAGER | |Chat pager enabled status (e.g. "On" or "Off")| |
| |PAUSESPIN | |Spinning cursor at pause prompts ('On' or 'Off')| | |PAUSESPIN | |Spinning cursor at pause prompts ('On' or 'Off')| |
| |PCR | |User's post/call ratio, as a percentage (not capped at 100) | | |PCR | |User's post/call ratio, as a percentage (not capped at 100) | |
| |PHONE |HOMEPHONE, DATA, DATAPHONE |User's phone number | | |PHONE |HOMEPHONE, DATA, DATAPHONE |User's phone number | |
| |PROT | |Default file transfer protocol (key/character) | | |PROP:[//section//:]//key// | |The value of a user property from the specified (or //root//) section of the ''[[dir:data]]/user/####.ini'' file | |
| |PROTNAME | |Full name of default file transfer protocol | | |PROT | |User's default file transfer protocol (key/character) | |
| | |PROTNAME |PROTOCOL |Full name of user's default file transfer protocol | |
| |PTODAY | |Number of messages posted by user today | | |PTODAY | |Number of messages posted by user today | |
| |PWAGE | |Age (in days) of the current user's password | | |PWAGE | |Age (in days) of the current user's password | |
| |USEDCDT | |Number of free credits used today by user (see FREECDT and CDTUSED) | | |USEDCDT | |Number of free credits used today by user (see FREECDT and CDTUSED) | |
| |USERNUM |UN |User's number (1-based index into user database) | | |USERNUM |UN |User's number (1-based index into user database) | |
| | |YESNO://ars//| |The text string for "Yes" or "No" based on the comparison of the specified [[access:requirements|Access Requirements String]] (without spaces). | |
| |ZIP | |User's zip/postal code | | |ZIP | |User's zip/postal code | |
| |
| |TRUNCOFF | |Mark the end of a truncated text block (turn off long-line truncation) | | |TRUNCOFF | |Mark the end of a truncated text block (turn off long-line truncation) | |
| |WORDWRAP | |Word-wrap long lines in the following text | | |WORDWRAP | |Word-wrap long lines in the following text | |
| |WRAPOFF | |Mark the end of a word-wrapped text block | | |WRAP | |Ungracefully-wrap long lines in the following text | |
| | |WRAPOFF | |Mark the end of a word-wrapped / ungracefully-wrapped text block | |
| |CENTER | |Middle-align the remaining text on the line | | |CENTER | |Middle-align the remaining text on the line | |
| |SYSONLY | |Toggle off/on visibility for non-sysops | | |SYSONLY | |Toggle off/on visibility for non-sysops | |
| |RAINBOW://index-num// | | Enable rainbow mode output starting at the specified (zero-based) rainbow attribute index | | |RAINBOW://index-num// | | Enable rainbow mode output starting at the specified (zero-based) rainbow attribute index | |
| |RAINBOW://attr-list// | | Set the rainbow attribute pattern with colon-separated attributes, using ''[[config:attr.ini]]'' syntax (e.g. ''RAINBOW:R:RH:B:BH:G:GH:C:CH'') | | |RAINBOW://attr-list// | | Set the rainbow attribute pattern with colon-separated attributes, using ''[[config:attr.ini]]'' syntax (e.g. ''RAINBOW:R:RH:B:BH:G:GH:C:CH'') | |
| | |80COLS | | Specify that the remainder of the message/file should be formatted (e.g. truncated, word-wrapped, centered) based on an 80 column maximum terminal width | |
| ==== C-Text ==== | ==== C-Text ==== |
| |
| |EXEC_XTRN://code// |Execute an external online program (e.g. door) by specifying the internal code| | |EXEC_XTRN://code// |Execute an external online program (e.g. door) by specifying the internal code| |
| |SETSTR://str// |Sets the current Baja/PCMS command string to //str//| | |SETSTR://str// |Sets the current Baja/PCMS command string to //str//| |
| |STR |Display the current Baja/PCMS command string value |\ | |STR |Display the current Baja/PCMS command string value (e.g. settable via ''bbs.command_str'' JavaScript property) | |
| |STRVAR://name// |Display the contents of a Baja/PCMS command shell string variable, specify //name// in ALL-CAPS unless ''baja -c'' was used((this feature only works for variables defined in command shells)) | | |STRVAR://name// |Display the contents of a Baja/PCMS command shell string variable, specify //name// in ALL-CAPS unless ''baja -c'' was used((this feature only works for variables defined in command shells)) | |
| |JS://name// |Display the value of a named JavaScript property | | |OPTEXT |Display the value of the ''bbs.optext'' JavaScript property | |
| | |JS://name// |Display the value of a named JavaScript property in the global namespace or the JavaScript scope object passed to the ''console.printfile()'' or ''bbs.menu()'' JavaScript methods | |
| |TEXT://number// |Display the specified string number from the ''[[dir:ctrl]]/[[custom:text.dat]]'' file.| | |TEXT://number// |Display the specified string number from the ''[[dir:ctrl]]/[[custom:text.dat]]'' file.| |
| |Text-ID |Any text string ID (e.g. from the ''[[dir:ctrl]]/[[custom:text.dat]]'' file) can be specified via an @-code | | |Text-ID |Any text string ID (e.g. from the ''[[dir:ctrl]]/[[custom:text.dat]]'' file) can be specified via an @-code | |