SliNKi - Wiki Presentations

<div style="position:fixed; top: 0px; left: 0px; background-color: white; height: 100%;"> <img src="/wink/res/slinkyTemplate/nk2010/roc-banner.png"/> </div> <div style="position:fixed; bottom: 50px; right: 30px; z-index: 100;"> <img src="/wink/res/slinkyTemplate/nk2010/1060Research-xsmall.png"/> </div> <div style="position:fixed; bottom: 50px; left: 10px; z-index: 100; font-size: 50%;"> <a href="http://www.1060research.com">www.1060research.com</a> </div>
To create presentations all you do is write wiki...
Here's an example of the wiki syntax
{slide} ===Instance of Example Page=== *Bullet 1 *Bullet 2 Mary had a little lamb. {/slide}
{slide} is the macro that delimits a slide.
The following slide is the rendering of the wiki shown above...
To tell WiNK that your wiki page is a SliNKi presentation you use the {slinkiBespoke} macro at the top of your wiki page.
{slinkiBespoke} { //Options go here as a JSON array (see reference) } {/slinkiBespoke}
This dynamically transforms the page into a presentation.
If you remove the {slinkiBespoke} macro your page just looks like a regular wiki page (which can be handy as a basic high-level preview mode)
The WiNK application uses NetKernel's Wiki Resource Model. So its simple to extend with your own macro engines.
Some of the built-in engines include:
Use the {java} source code tag
//Actually Javascript but its source code... var data = pv.range(0, 10, .1).map(function(x) { return {x: x, y: Math.sin(x) + Math.random() * .5 + 2}; } );
The following keys may be used for control when in slinki slides mode...
{slinkiBespoke} { "title": "Your title here", "copyright": "Your copyright statement here", "scripts" : [ "/foo/baa.js", "/boo/baz.js" ] } {/slinkiBespoke}
{slide+class@mytitle}
Here's an example...
This slide is declared with the class argument
The mystyle class was defined in the CSS like this..
.mystyle { background-color: #EDEA49; }
Other macros specific to presentations are:
The most important is:
This lets you request other resources to include in your wiki. The included resource is recursively evaluated as wiki too.
A request can be either a simple URI or the full power of a declarative request.
{request}meta:footer{/request}
{request}meta:slinki:logo{/request}
Peter pjr [at] netkernel {dot} org @pjr1060, @netkernel |
Brian brian [dot] sletten [at] gmail {dot} com @bsletten |
NetKernel ROC News is published every Friday.
![]() |
![]() |
WiNK | ![]() |
![]() |