The Tree of Widsdom

智慧の樹

PanelArticle

^do( PanelArticle, notename, description )^

Type: Macro

Purpose: Wraps fresh text in a Panel with citation info and links from notename

The PanelArticle macro lets you embed an article panel with alternative body text. It is similar to using ^include(notename, bstPanel)^ except that it lets you override the default body of the panel (taken from the text of the included article-note) with an alternate upshot relevant to the context of your writing flow.

Note that the panel heading contains up to three links:

  1. The title itself is a link to the original article-note in Tinderbox,
  2. A $URL link in the upper-right (if set in the original), and
  3. A $ReferenceURL link (if set in the original).

This one of the most innovative features of BoxPress and marks the start of a new level of separation between static Research Notes and their variable presentation in export.

Unlike IncPanel, which fills the panel-body with the text of the note you are including, PanelArticle links to the include, includes its APA Undertitle, adds links to the header—but lets you fill its body with your current thought. It lets you posit a central thought wrapped in a clickable reference (like a Mishnah and Gemara).

The 1st arg is the name of the article-note you are referring to. The 2nd arg is the body of the panel.

Hover below to reveal BoxPress code

<div class="panel panel-default"> <div class="panel-heading"> ^if($URL("$1")|$ReferenceURL("$1"))^ <div class="linkcorner-panel"> ^if($ReferenceURL("$1"))^<a target="_blank" href="^value($ReferenceURL("$1"))^"><span class="glyphicon glyphicon-file"></span><span class="glyphicon glyphicon-link"></span></a>^endIf^ ^if($URL("$1"))^<a target="_blank" href="^value($URL("$1"))^"></a>^endIf^ </div> ^endIf^ <table><tr> <td class="panel-left"> <h5>^do(Glyph, "education")^</h5> </td> <td class="panel-right"> <p class="btn-main"><a href="^url($1)^">^value($Name("$1"))^</a></p> </td> </tr></table> </div> <div class="panel-body small"> <div class="well well-sm small well-undertitle"> <p> ^if($Authors("$1"))^ ^do(_getAuthorsArg, ^value("$1")^)^ ^endIf^ ^if($DueDate("$1"))^ (^value($DueDate("$1").format("y"))^) ^endIf^ ^if($myPubTitle("$1"))^ ^value($myPubTitle("$1"))^. ^endIf^ ^if($Journal("$1"))^ <cite>^value($Journal("$1"))^</cite>^if($Issue("$1"))^, ^value($Issue("$1"))^^endIf^^if($Pages("$1"))^, ^value($Pages("$1"))^^endIf^. ^endIf^ </p> </div> <p>^value("$2")^</p> </div> </div>

PanelArticle sample

This is the markup that is rendered below

^do(PanelArticle, "I am a sample article_note", "Here is my alternative text. This overrides the default body of the panel—usually an abstract—allowing you to exploit the article for other purposes.")^

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Antonuccio, David O. & Danton, William G. (1995) Therapy Versus Meds for Depression. Professional Psychology: Research and Practice, Vol. 26, No. 6, 574–585.

The text you are now reading was typed in the note PanelArticle sample. Unlike IncPanel, which fills the panel-body with the text of the note you are including, PanelArticle links to the include, includes its APA Undertitle, adds links to the header—but lets you fill its body with your current thought. Your text is wrapped with a clickable reference.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.