MediaWin
^do( MediaWin, filename, title, [class, href, width] )^
Type: Macro
Purpose: Embeds a Mac OS window snapshot with caption
The MediaWin macro inserts an image of a window snapshot (the kind produced by using <kbd>⇧⌘4</kbd> followed by <kbd>SPACE</kbd> and then clicking on the window. The title argument supplies the caption, tool-tip text, and alternative text.
Using MediaWin rather than MediaFig for window snapshots provides much better caption placement and margin (the shadow area produced by Mac window captures is huge).
Optional arguments are same as for MediaFig.
Hover below to reveal BoxPress code
^do(_striptags, "$2")^<figure ^if($3)^class="center-block ^if($3.icontains(img-left|img-right))^img-medium ^endIf^ ^value("$3".replace("img-shadow","))^"^endIf^><a target="_blank" href=^if($4)^"$4"^else^"^root^img/$1"^endIf^><img src="^root^img/$1" alt="$2" title="^value($tmpStr1(_stripnote))^" ^if($5)^width="$5"^endIf^ class="img-responsive center-block ^if($3)^^value("$3".replace("(img-left|img-right|img-shadow)","))^^endIf^"></a><figcaption class="win-caption">$2</figcaption></figure>
MediaWin sample
This is the markup that is rendered below
^do(MediaWin, "bp_view_topnote_out.png", "Unlike MediaImg and MediaFig, MediaWin adjusts the margin to absorb the shadow the comes with window screenshot grabs.")^
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.
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.