User:松/Drafts/Extension:AbuseFilter/Rules format: Difference between revisions
User:松/Drafts/Extension:AbuseFilter/Rules format (view source)
Revision as of 06:47, 1 August 2020
, 3 years agoTranslation code removal
(Translation code removal) |
(Translation code removal) |
||
Line 6:
You can get linebreaks with <code>\n</code>, tab characters with <code>\t</code>, and you can also escape the quote character with a backslash.
Use the <code>+</code> (plus) symbol to [[w:concatenation|concatenate]] two [[w:string literal|literal strings]] or the values of two [[w:Variable (computer science)|vars]] with a string value.
; Examples:
Line 110 ⟶ 108:
* <code>!x</code> — NOT – returns true if the condition is not true.
'''
<!--Note: these examples are also used in https://phabricator.wikimedia.org/diffusion/EABF/browse/master/tests/parserTests/mwexamples-bools.t -->
{| class="wikitable"
|-
!Code
!Result
|-
| <code>1 <nowiki>|</nowiki> 1</code>
|