| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| custom:atcodes [2026/01/12 23:17] – Add PROP, ONOFF, and YESNO codes digital man | custom:atcodes [2026/02/22 22:21] (current) – [Format Parameters] add a space where a space should be nelgin |
|---|
| === Formatted-Time Parameter === | === Formatted-Time Parameter === |
| |
| Some Time and Date related @-codes support a format parameter string that can include[[strftime]] specifiers. | Some Time and Date related @-codes support a format parameter string that can include [[strftime]] specifiers. |
| |
| For example, the code ''@DATE:%Y-%m-%d\x20%H:%M:%S@'' would produce output similar to: | For example, the code ''@DATE:%Y-%m-%d\x20%H:%M:%S@'' would produce output similar to: |
| |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)| |
| |PHONE |HOMEPHONE, DATA, DATAPHONE |User's phone number | | |PHONE |HOMEPHONE, DATA, DATAPHONE |User's phone number | |
| |PROP:[//section//:]//key// | |The value of a user property from the specified (or //root//) section of the ''[[dir:data]]/user/####.ini'' file | | |PROP:[//section//:]//key// | |The value of a user property from the specified (or //root//) section of the ''[[dir:data]]/user/####.ini'' file | |
| |PROT | |Default file transfer protocol (key/character) | | |PROT | |User's default file transfer protocol (key/character) | |
| |PROTNAME | |Full name of default file transfer protocol | | |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 | |
| |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 | |
| |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 | |