# Wiki CgX

Parce que j'ai un cerveau, mais pas trop.

### Outils du site

wiki:syntaxe:diagram

Ceci est une ancienne révision du document !

# Diagram syntax

## Quelques exemples

### Simple

```| AAA |-| BBB |
| |:| | | | | |
| |L|~|~| CCC |```
 AAA BBB CCC

### Avec textes plus longs

 root 1-st branch 2-nd branch

### Avec liens

 root 1st branch (see Branch) 2nd branch (very important branch)

### Coloré

 Border is blue, background is lightgreen Border is #a9c, background is transparent Border is silver, background is silver Border is green, background is #abcdef

### Identations & Alignements

 Text is aligned to the left By default text is aligned to the center Align text to the right and setup indents

### Etendus (branches plus longues)

 AAA BBB DDD CCC

### Avec flèches

 AAA BBB EEE GGG DDD CCC FFF

To insert an arrow you should put '@' and one or two symbols as direction settings after а control character. The first symbol sets arrows that are pointed out of the center of connection tile. It's a hexadecimal number that has 4 bits for each of 4 directions: Up, Right, Down, Left. Each bit sets the presence of an arrow in the corresponding direction. If you're not familiar with hexadecimal representation then use the following algorithm. Calculate a sum of direction numbers using this table:

```Up 	Right 	Down 	Left
1 	2 	4 	8```

If you got a number that is greater than nine, then replace it by a letter according to the table:

```10 	11 	12 	13 	14 	15
a 	b 	c 	d 	e 	f```

The second symbol is not necessary if you need all arrows to look outside. Otherwise, specify the ones that should look inside using the same direction scheme for the second symbol.

wiki/syntaxe/diagram.1628146850.txt.gz · Dernière modification : 05 Aug 2021 :: 09:00 de CgX