Code Type:
Code Scope of Action:
Code First Added:
Code Altered:
^title( item )^
The title of the item or note. The value is the same as the Name attribute, using HTML entities where appropriate (see below for plain export). Note the ^title^ code does not work as a proxy for ^title(this)^ as you might assume from ^text^ code usage.
The ^title^ of this page is: ^title( item )^
The ^title^ of note "Conditional Mark-up" (using code ^title(Conditional Mark-up)^
) is: Conditional Mark-up
Though Tinderbox does not require note names that include spaces to be quoted, though they may be. Indeed, this is recommended as it makes for more consistent usage now string literals are always quoted in action code. Compare:
^title("Conditional Mark-up")^
gives: Conditional Mark-up.
^title(Conditional Mark-up)^
gives: Conditional Mark-up.
Export and HTML entities
To avoid the use of HTML entities when exporting a note's title is the ^value()^ code:
^value($Name)^
which for this note renders as: ^^title( item )^^