.. _plugin-format: The Format plugin ================= Capitals -------- .. _command-format-upper: format upper ^^^^^^^^^^^^^^^^^^^ Returns ** uppercased. .. _command-format-capitalize: format capitalize ^^^^^^^^^^^^^^^^^^^^^^^^ Returns ** capitalized. .. _command-format-lower: format lower ^^^^^^^^^^^^^^^^^^^ Returns ** lowercased. .. _command-format-title: format title ^^^^^^^^^^^^^^^^^^^ Returns ** titlecased. Text modifications ------------------ .. _command-format-format: format format [ ...] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expands a Python-style format string using the remaining args. Just be sure always to use %s, not %d or %f or whatever, because all the args are strings. .. _command-format-color: format color [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Returns ** with foreground color ** and background color ** (if given) .. _command-format-repr: format repr ^^^^^^^^^^^^^^^^^^ Returns the text surrounded by double quotes. .. _command-format-replace: format replace ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Replaces all non-overlapping occurrences of ** with ** in **. .. _command-format-field: format field ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Returns the *th* space-separated field of **. I.e., if text is "foo bar baz" and ** is 2, "bar" is returned. .. _command-format-concat: format concat ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Concatenates two strings. Do keep in mind that this is *not* the same thing as join "", since if ** contains spaces, they won't be removed by concat. .. _command-format-translate: format translate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Replaces ** with ** in **. The first and second arguments must necessarily be the same length. .. _command-format-cut: format cut ^^^^^^^^^^^^^^^^^^^^^^^^ Cuts ** down to ** by chopping off the rightmost characters in excess of **. If ** is a negative number, it chops that many characters off the end of **. .. _command-format-join: format join [ ...] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Joins all the arguments together with **. .. _command-format-reverse: format reverse ^^^^^^^^^^^^^^^^^^^^^ Returns ** in reverse-video. Text properties --------------- .. _command-format-bold: format bold ^^^^^^^^^^^^^^^^^^ Returns ** bolded. .. _command-format-underline: format underline ^^^^^^^^^^^^^^^^^^^^^^^ Returns ** underlined. .. _plugin-format-config: Configuration ------------- .. _supybot.plugins.Format.public: supybot.plugins.Format.public ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Default value: True Determines whether this plugin is publicly visible.