Markup is used in Wagn only for creating links and nesting.
[[cardname]]
[[cardname | text]]
[[http://website.com | text ]]
[[/account/signup | text ]]
(autodetect)
- Leading and trailing whitespace is optional, so [[link|name]] is the same as [[ link | name ]].
- To actually show double brackets (for example in documentation), start with a backslash. So \[[Wagn News]] shows up as [[Wagn News]].
- Card links can use contextual names.
- You can also use nesting inside links to create contextual web addresses or to set contextual form content. However, it can cause problems to put inclusions inside the left side of named links. Inclusions on the right side of the pipe (|) generally don't cause problems. You can even put images there, doing things like [[ Philipp | ]].
- See links for examples.
{{ cardname | view }}
{{ cardname | key: value }}
{{ cardname | key1: value1 ; key2 value2 }}
{{ cardname | key1: value1 ; key2 value2 | itemkey1:itemvalue1; itemkey2:itemvalue2}}
Key | Values | Notes |
---|---|---|
view |
"view" key is optional; if no key is given, value will be treated as view |
|
title |
text |
replaces card name in view |
show |
applicable view names |
e.g. title_link on any view that shows a title. use commas for multiple views |
hide |
applicable view names |
e.g. paging on searches or menu wherever it's shown by default. use commas for multiple views |
structure |
any card name |
overrides content and structure rule. |
item |
any valid view name |
may be deprecated?; set via multiple-pipe syntax above Eg: |
size |
Image cards only |
|
type |
any valid Cardtype name |
may be deprecated?; set type via rules with *default setting |
other |
any valid CSS value |
may be deprecated?; will be treated as CSS |
- whitespace is optional
- inclusions can use contextual names
- see nesting and view cards for examples.