contextual names+example

A few examples of contextual names:

  • _
  • _self
  • _user
  • +address
  • _left+address
Note: to understand the following examples, you will need a basic understanding of Link Syntax and Nest Syntax.
 

Context: who is signed in

 

Let's consider the contextual name "_user".  The meaning of this name varies depending upon who is using the site.  For example, here is what we see if we link to _user with this link syntax "[[_user]]":

Ethan McCutchen

If you are not logged in, you will see this as a link to Anonymous.  If you're logged in as "Bob Dylan", you'll see a link to Bob Dylan

 

Context: card content

 

Here is the raw content of a card named Earth:

Our planet is named {{_self|link}}. {{_|name}} has seven continents.  See [[+continents]]

And here is what Earth looks like when it is rendered:

Our planet is named Earth. Earth has seven continents.  See continents

Note how in the context of the "Earth" card, both "_self" and its short form "_" refer to "Earth" and in the case of the

 

Context: plus card content

 

compound names support still more contextual names, including _left and _right.  Here is the raw content of a plus card named Earth+continents (the one we linked to in the previous example):

Australia, Asia, Africa, Europe, Antarctica, and North and South America are all [[_right]] on planet [[_left]].

And here is what that card looks like rendered:

Australia, Asia, Africa, Europe, Antarctica, and North and South America are all on planet .