In links, inclusions, and some WQL, there are special terms you can use to refer to the name of the card that the inclusion or link is on, or part of that card's name, or the current user.
Examples
This text is on a card named linking to or including card names by context+example. So,
[[_self+deeper example]]results in a link to:
contextual card names+example+deeper example
(This should read linking to or including card names by context+example+deeper example - this is a known bug.
[[_left+discussion]]links to:
contextual card names+discussion
(This should read linking to or including card names by context+discussion - this is a known bug.)
{{formatting+_right|closed}}includes, in a closed view:Here's the whole Recipe type form:It includes plus cards for information relevant to any recipe: preparation and cook time, number served, ...Preparation time: {{+preparation time|display:inline} } Serves: {{+serves|display:inline} } {{+ingredients|open} } Preparation
{{+preparation} }
Tags: {{+tags} } Comments
{{+discussion|closed} }
In inclusions — but not links — The current user is available in a similar way with _user, so:{{_user|closed}}includes the home card of whatever user is signed in:This is the account credited with edits for anyone not signed in.
How To
In links and inclusions, _self refers to the enclosing card's full name. If the enclosing card is a plus card, _left refers to the left side of the card's name (everything up to the last +), and _right refers to the right side of the card name (everything after the last +).
In inclusions only, _user refers to whatever user is signed in (this does not work in links).
Tips
- _self, _left and _right are particularly useful in forms.
- _user makes it possible to provide a customizable card in the sidebar for each user, by including something like _user+sidebar in *sidebar.
- These terms can be used for some very powerful effects in regular web addresses - see contextual generation of web addresses.
- In the context of virtual cards, _self refers to the left side of the card's name. For example, in the context of wiki+Coopetitors with tag the _self (in Coopetitors with tag+*rform) refers to wiki, not to wiki+Coopetitors with tag.
Add +discussion
This is the account credited with edits for anyone not signed in.
