SliNKi v3
3rd Generation HTML5 Slides

These slides are a single wiki page powered by...
Bootstrap is being used for this CSS column layout
Is being used for the Icons
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 boot to SliNKi inside WiNK (or within NetKernel docs) you use the {slinki} macro at the top of your page...
{slinki}
{
//Options go here as a JSON array (see reference)
}
{/slinki}
This dynamically transforms the page into a presentation.
If you remove the {slinki} macro your page just looks like a regular wiki page (which can be handy as a basic high-level preview mode)
SliNKi is just one macro provided as part of NetKernel's Wiki Resource Model. So its simple to extend with your own macro engines.
Some of the built-in macro 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}; } );
Use tags {html}<pre><code>...</code></pre>{/html}
//Javascript source code...
var data = pv.range(0, 10, .1).map(function(x)
{
return {x: x, y: Math.sin(x) + Math.random() * .5 + 2};
}
);
{slinki}
{ "title": "Your title here",
"copyright": "Your copyright statement here",
"scripts" : [ "/foo/baa.js", "/boo/baz.js" ]
}
{/slinki}
For full details see the SliNKi reference docshttp://localhost:1060/book/view/book:org:netkernel:wiki:slinki/
{slide+class@mytitle}
This slide is declared with the class argument (you can add more classes as space separated items)
The mystyle class is defined in your CSS like this..
.mystyle { background-color: #EDEA49; }
Other macros specific to presentations are:
The most powerful is:
This lets you request other resources to include in your wiki.
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.
![]() |
![]() |
![]() |
If you want to see how we set up these slides to use bootstrap and font-awesome. Press the down arrow
{slinki}
{
"title" : "SliNKi 3rd Generation",
"copyright" : "© 2012-2013, 1060 Research Limited",
"favicon" : "/wink/res/slinkyTemplate/nk2010/favicon.png",
"splashDuration": 4000,
"css" : [
{ "href" : "/wink/res/revealImpl/1.1.1/css/print/print.css", "media" : "print" },
{ "href" : "/wink/res/revealImpl/1.1.1/css/reveal.css" },
{ "href" : "/wink/res/revealImpl/1.1.1/css/theme/1060.css" },
{ "href" : "/wink/res/revealImpl/1.1.1/css/print/screen.css", "screen" : true },
{ "href" : "/wink/res/revealImpl/1.1.1/css/print/pdf.css", "pdf" : true },
{ "href" : "/wink/res/revealImpl/1.1.1/lib/css/magula.css" },
{ "href" : "/wink/style/xmlverb.css" },
{ "href" : "/org/netkernel/html5/framework/bootstrap/latest/css/bootstrap.min.css" },
{ "href" : "/org/netkernel/html5/framework/fontawesome/latest/css/font-awesome.min.css" }
]
}
{/slinki}
Here's the full source for these slides
![]() |