User:Alexis Jazz/Factotum/Custom inserts and replacements

How to..

Tell users to read the FAQ in two clicks/taps?
In the settings, open the "Editing" tap. Add the following custom insert:

Save your settings. You will now have a button below (configurable to be above) the reply window labeled "FAQ". If you press it the text "You should read the FAQ, it answers all your questions." will be inserted in the reply window and the form will be submitted.

Just insert it, make changes and submit it myself when I'm ready?
It's the same thing but without the "AUTOPOST":

The "FAQ" button will now be below the reply window. The label is optional, this also works fine as a custom insert:

If you enter this example the button label will read "You should..".

Stop making this typo that my spell checker misses?
Enter the following regular expression in the Editing tab:

When you post or preview your message the replacement will be made.

Make it so that the replacement is tied to a button?
Enter this as a custom insert:

Now press the money button.

Make my entire message small, like, including the signature?


This will add a span tag to the beginning of your message. Factotum will notice there's no closing tag and append it for you.

Answer an edit request on English Wikipedia

 * 1) Enable section editing with Bawl
 * 2) Add one of the following to your custom inserts:
 * Or use the autopost version:
 * 1) Edit a section with an edit request, click the "Answer ER" button. (and submit if you didn't use the autopost version)
 * 1) Edit a section with an edit request, click the "Answer ER" button. (and submit if you didn't use the autopost version)
 * 1) Edit a section with an edit request, click the "Answer ER" button. (and submit if you didn't use the autopost version)

Page blanking
As requested at Wikipedia:User scripts/Requests:

Weird pipe trick
Enable "Run automatic replacements again after processing markup" (or hit preview a few times whenever you want to use this) and add the following two replacements: /(^|\s)(http[s]?:\/\/[^\s\|]+)\|([^\s]+)/$1$2 TAILPIPETRICK$3/g /(^|\s)(\[\]+)(\|[^\*)?\]\] TAILPIPETRICK([^\s]+)/$1$2|$4]]/g When a pipe and some text is appended to a URL that can be rewritten to an internal URL the text after the pipe will become the name of the link.

For example:

becomes:

Bad habit of multiple newlines after a list
Factotum doesn't typically ignore these for comments. (has to do with the multi-to-single line conversion) You should enter this one in the "custom regular expressions that are applied to comments only" field to avoid it getting applied to articles.

Bad source removal
Removes references with "onedio" in their name or body and replaces them with {{subst:cn}}. Also sets the edit summary.