This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

^siblings( start, list-item-prefix, list-item-suffix, end )^


Code Type: 

Code Scope of Action: 

Code First Added: 

Code Altered: 

 Creation of Links   [other codes of this type]

 item   [codes with similar scope]

 Already in v5.0.0

 format"


^siblings( "start", "list-item-prefix", "list-item-suffix", "end" )^

returns links to all the siblings of this note, i.e. the other children of the note's parent. Output is formatted in a single line, with colons between the elements.

This allows you to format the group of links as an HTML list or table in the exact format you want, where "start" is text that will be inserted before all of the links, "end" is text that will be inserted after all of the links, "list-item-prefix" is text that will be inserted before each link, and "list-item-suffix" is text that will be inserted after each link.

The HTMLDontExport settings of siblings are respected.

Mark-up elements embedded in ^siblings^ are evaluated.

Exported inks use the CSS class and target based on their underlying Tinderbox link values, if one is specified; the link type value is not picked up as a class name.

Item objects source and destination may be used in expressions to indicate from where data used within the expression's arguments is drawn.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Export Codes : Export Code Scope : Item-based : ^siblings( start, list-item-prefix, list-item-suffix, end )^