mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 05:44:39 +00:00
Links and transclusions in railroad diagrams
This commit is contained in:
@@ -2,10 +2,12 @@ created: 20150103184022184
|
||||
modified: 20150103184022184
|
||||
title: $:/plugins/tiddlywiki/railroad/syntax
|
||||
|
||||
The railroad widget constructs a diagram from the components defined below.
|
||||
The railroad widget uses a special ''diagram syntax'' to construct the components defined below.
|
||||
|
||||
`x` and `y` here stand for any component.
|
||||
|
||||
Names (as opposed to quoted strings) are available when a value starts with a letter and contains only letters, digits, underscores, dots and hyphens.
|
||||
|
||||
---
|
||||
|
||||
; sequence
|
||||
@@ -52,7 +54,6 @@ The railroad widget constructs a diagram from the components defined below.
|
||||
; nonterminal
|
||||
: <$railroad text=""" (name | "<" string ">") """/>
|
||||
* A nonterminal component, i.e. the name of another diagram
|
||||
* The simple `name` option is available when the text starts with a letter and contains only letters, digits, underscores, dots and hyphens
|
||||
|
||||
---
|
||||
|
||||
@@ -64,4 +65,16 @@ The railroad widget constructs a diagram from the components defined below.
|
||||
|
||||
; dummy
|
||||
: <$railroad text=""" "-" """/>
|
||||
* The absence of a component
|
||||
* The absence of a component
|
||||
|
||||
---
|
||||
|
||||
; link
|
||||
: <$railroad text=""" "[[" x "|" (name|string) "]]" """/>
|
||||
* A link to the tiddler title or URI given by the string or name
|
||||
|
||||
---
|
||||
|
||||
; transclusion
|
||||
: <$railroad text=""" "{{" (name|string) "}}" """/>
|
||||
* Treats the content of another tiddler as diagram syntax and transcludes it into the current diagram
|
||||
|
||||
Reference in New Issue
Block a user