|
|
Line 43: |
Line 43: |
| true<br> | | true<br> |
| false | | false |
|
| |
| ===Custom tags===
| |
| AOM still supports custom tags to simplify rules. Custom tags are simply new tags that contains a text or collection of subtags.
| |
|
| |
| With custom tags you could simplify for example the group rule, for example you could write it:
| |
| * Using ?if: "?if(lg<><nowiki>''</nowiki>, '['+lg+']', <nowiki>''</nowiki>)" -> "?G"
| |
| * Simplest form: "[?lg]" -> "?G"
| |
| * More advanced example: "?if(lg<><nowiki>''</nowiki>, '['+lg']', if(sg<><nowiki>''</nowiki>, '['+sg']', '[RAW]'))" -> "?G"
| |
|
| |
| Note that custom tags are essentially translated to ?set commands. Aka, "[?lg]" -> "?G" iq equivalent to adding "?set('G', '['+lg+']')" in front of a pattern.
| |
|
| |
|
| ===Default tags=== | | ===Default tags=== |