referencing current card and parts in inclusions

Ticket

+commit
 

Need a way to reference current card and it's parts in inclusions,

also, these bugs are related:

_self|view:name breaks multi-edit. It offers you to edit the named (formatted) card, which of course gives permission denied when you save. Example below.

base:parent (the old syntax for _left) breaks badly if used on a simple card. This should be fixed, and simple cards should be handled at least somewhat elegantly when implementing _left and _right (maybe replace "Add " with some light red text describing the problem, i.e. "_left [or _right] has been used, but is not a plus card."). No example, because it busts Recent Changes too, but if you have a card foo including +bar|base:parent then you get this error:

view (line) not supported for referencing current card and parts in inclusions+error message

 

_self / _whole = the card the inclusion is on (this is implemented - we need to validate for no infinite recursions if view:content or view:open)
_left = the left part of the card the inclusions is on (what happens if it's a solo card?)
_right = the right part of the card the inclusions is on (ditto)

base: is now deprecated.

If _left or _right occur on simple cards, each of those is treated like _self

 

_self|view:name breaking multi-edit (look under "Tickets relevant to"):

 

are there still bugs here?  I know there is a bug that if you specify an invalid view it can break the whole page. maybe should be a separate ticket for that one?