IncPanel

^do( IncPanel, notename )^

Type: Macro

Purpose: Embeds a note as a default-class Panel

The IncPanel macro is just a convenience for ^include(notename, bstPanel)^. It packs Glyph, title, links (both $URL and $ReferenceURL), Undertitle (for Research Prototypes), and rich text with HTML extras—all inside a compact Bootstrap panel.

Hover below to reveal BoxPress code

<div class="panel panel-primary"><div class="panel-heading">^if($2)^$2^else^^value($Name($1))^^endIf^<a href="^url($1)^" class="btn-corner"><span class="glyphicon glyphicon-link"></span></a></div><div class="panel-body small">^include(’$1’, bstTextRich)</div></div>

IncPanel sample

This is the markup that is rendered below

An included person_note:
^do(IncPanel, "Sample person_note A")^
An included article_note:
^do(IncPanel, "Sample article_note")^
An included book_note:
^do(IncPanel, "Sample book_note A")^
An included quote_note:
^do(IncPanel, "Sample quote_note")^
An included code_note:
^do(IncPanel, "Sample code_note")^
This is text from the “current” note. Notice the seamless integration.

An included person_note:

Sample person_note A

Sample person_note A (1547 – 1637)

English follower of Paracelsus. People have the qualities of a magnet and that when two people meet, an interactive magnetic field arises.

An included article_note:

Sample article_note

Gollwitzer, Peter M., Sheeran, Paschal, Michalski, Verena & Seifert, Andrea (2009). When Intentions Go Public. Psychological Science, Vol. 20, No. 5, 612-18.

Abstract: Based on Lewinian goal theory in general and self-completion theory in particular, four experiments examined the implications of other people taking notice of one’s identity-related behavioral intentions (e.g., the intention to read law periodicals regularly to reach the identity goal of becoming a lawyer). Identity-related behavioral intentions that had been noticed by other people were translated into action less intensively than those that had been ignored (Studies 1–3).

An included book_note:

Sample book_note A

Paracelsus (1520). Sample book_note A

First mention of the unconscious, psychosomatic disease, and autosuggestion.

An included quote_note:

Sample quote_note

H. P. Lovecraft (1936). The Haunter of the Dark

Before he realised it, he was looking at the stone again, and letting its curious influence call up a nebulous pageantry in his mind. He saw processions of robed, hooded figures whose outlines were not human, and looked on endless leagues of desert lined with carved, sky-reaching monoliths. He saw towers and walls in nighted depths under the sea, and vortices of space where wisps of black mist floated before thin shimmerings of cold purple haze. And beyond all else he glimpsed an infinite gulf of darkness, where solid and semi-solid forms were known only by their windy stirrings, and cloudy patterns of force seemed to superimpose order on chaos and hold forth a key to all the paradoxes and arcana of the worlds we know.

An included code_note:

Sample code_note

Syntax: Arg1, Arg2, [OptionalArg3]

My name is Sample code_note. This is dummy text. The purpose of all this is to show how such a note gets embedded inside your layout. Below is some plausible Tinderbox code. This is dummy text.

Hover below to reveal BoxPress code

Here is some plausible Tinderbox code. ^do(_striptags, "$2")^<figure ^if($3)^class="center-block $3"^endIf^><a target="_blank" href=^if($4)^"$4"^else^"^root^img/$1"^endIf^><img src="^root^img/$1" alt="^value($tmpStr1(_stripnote))^" title="^value($tmpStr1(_stripnote))^" ^if($5)^width="$5"^endIf^ class="img-responsive center-block well well-sm ^if($3)^^value("$3".replace("(img-left|img-right)","))^^endIf^"></a><figcaption>$2</figcaption></figure>"

This is text from the “current” note. Notice the seamless integration.

For a full list, see Explore Prototype export schemes.