Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
wiki:bacasable [12-09-2008 13:39] edmc73 ancienne révision restaurée |
wiki:bacasable [04-04-2013 22:06] (Version actuelle) |
||
---|---|---|---|
Ligne 36: | Ligne 36: | ||
{{playground: | {{playground: | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | The syntax wraps any [[http:// | ||
+ | |||
+ | <code html> | ||
+ | <ditaa [optional parameters]> | ||
+ | |||
+ | ... (some ditaa-code) ... | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Parameters ==== | ||
+ | |||
+ | ^ Parameter | ||
+ | | width=//< | ||
+ | | height=//< | ||
+ | | //< | ||
+ | | < | ||
+ | | (no)round | ||
+ | | (no)shadow | ||
+ | | (no)antialias | ||
+ | | (no)edgesep | ||
+ | | left center right | ||
+ | |||
+ | ===== Possible tags ===== | ||
+ | |||
+ | Not all shape selector tags are documented on the ditaa site. A quick source scan revealed: | ||
+ | |||
+ | ^ tag ^ Description | ||
+ | | {c} | decision(Choice) | ||
+ | | {d} | document | ||
+ | | {io} | input/ | ||
+ | | {mo} | manual operation | ||
+ | | {o} | ellipse, circle | ||
+ | | {s} | storage | ||
+ | | {tr} | trapezoid (looks like an inverted {mo} ) | | ||
+ | |||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | |||
+ | < | ||
+ | <ditaa round noedgesep> | ||
+ | +--------+ | ||
+ | | | --+ ditaa +--> | | | ||
+ | | Text | | ||
+ | |Document| | ||
+ | | | ||
+ | +---+----+ | ||
+ | : ^ | ||
+ | | Lots of work | | ||
+ | +-------------------------+ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <ditaa round noedgesep> | ||
+ | +--------+ | ||
+ | | | --+ ditaa +--> | | | ||
+ | | Text | | ||
+ | |Document| | ||
+ | | | ||
+ | +---+----+ | ||
+ | : ^ | ||
+ | | Lots of work | | ||
+ | +-------------------------+ | ||
+ | </ | ||
+ | |||
+ | |||
+ | <ditaa round noedgesep> | ||
+ | /----\ /----\ | ||
+ | |c33F| |cC02| | ||
+ | | | | | | ||
+ | \----/ \----/ | ||
+ | |||
+ | /----\ /----\ | ||
+ | |c1FF| |c1AB| | ||
+ | | | | | | ||
+ | \----/ \----/ | ||
+ | </ | ||
+ | |||
+ | <ditaa round noedgesep> | ||
+ | / | ||
+ | | Things to do | | ||
+ | | cGRE | | ||
+ | | o Cut the grass | | ||
+ | | o Buy jam | | ||
+ | | o Fix car | | ||
+ | | o Make website | ||
+ | \-----------------/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | <ditaa round> | ||
+ | / | ||
+ | | || || | | ||
+ | | ++ ++ | +----+---+----+----+---+---+---+ | ||
+ | \\ cDB6 // | |{o}| | |{c}|{s}| | ||
+ | | /----\ | |{tr}| | ||
+ | | |c733| | +----+---+----+----+---+---+---+ | ||
+ | | ||
+ | +-------+ | ||
+ | +-------+ | ||
+ | |cFDA | ||
+ | |wake up+--> | ||
+ | | {o} | ||
+ | +-------+ | ||
+ | +---+---+ | ||
+ | |N | ||
+ | +-------> | ||
+ | | planet{mo}| | ||
+ | | ||
+ | |||
+ | / | ||
+ | | | ||
+ | | /- /\ +\/+ +\ | +- | | ||
+ | | \\ ++ |\/| +/ | +- | | ||
+ | | -/ || | | | +- +- | | ||
+ | | cDEF {o} | | ||
+ | \-----------------------/ | ||
+ | </ | ||
+ | |||
+ | ==== Test ==== | ||
+ | <ditaa round> | ||
+ | +--------+ | ||
+ | | Aroun Thasief | | ||
+ | | | | ||
+ | | | | ||
+ | +-------+ | ||
+ | </ |