plugin:netlogo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:netlogo [2013-11-16 21:46] – allow {{applet.nlogo|}} with blank title rikblok | plugin:netlogo [2018-07-28 07:30] (current) – all links https rikblok | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : rik.blok@ubc.ca | email : rik.blok@ubc.ca | ||
type : syntax | type : syntax | ||
- | lastupdate : 2013-11-16 | + | lastupdate : 2018-07-27 |
- | compatible : Angua, Adora Belle, Weatherwax | + | compatible : Angua, Adora Belle, Weatherwax, 2016-06-26a |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : applet, programming | tags : applet, programming | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
---- | ---- | ||
- | [[http:// | + | [[https:// |
+ | |||
+ | The NetLogo plugin for DokuWiki allows wiki editors to embed NetLogo models directly in their pages. | ||
- | The NetLogo plugin for DokuWiki allows wiki editors to embed NetLogo applets in their pages. | ||
===== Installation ===== | ===== Installation ===== | ||
- | This plugin will embed '' | + | Search and install |
- | nlogo !application/ | + | |
- | + | ||
- | :!: **External requirements: | + | |
- | Install the plugin using the [[plugin: | ||
===== Examples/ | ===== Examples/ | ||
- | See an implementation of [[http:// | + | See an implementation of [[https:// |
===== Syntax ===== | ===== Syntax ===== | ||
+ | |||
==== Basic syntax ==== | ==== Basic syntax ==== | ||
- | You can include | + | You can include |
- | Real size: {{applet.nlogo}} | + | Real size: {{https:// |
- | Resize to given width: | + | Resize to given width: |
- | Resize to given width and height: {{applet.nlogo? | + | Resize to given width and height: {{https:// |
| | ||
- | Note that NetLogo | + | Note that NetLogo |
By using left or right whitespaces you can choose the alignment. | By using left or right whitespaces you can choose the alignment. | ||
- | Right: | + | Right: |
- | Left: {{applet.png }} | + | Left: {{https:// |
- | Center: {{ applet.png }} | + | Center: {{ https:// |
- | + | ||
- | Only files on the current server, uploaded to the DokuWiki media folder are permitted. The NetLogo plugin respects [[: | + | |
Unlike images and other media files, titles are not allowed. | Unlike images and other media files, titles are not allowed. | ||
- | {{applet.nlogo|Click to download | + | {{https:// |
An empty title is allowed, however, for compatibility with the default format of the "Add Images and other files" toolbar button. | An empty title is allowed, however, for compatibility with the default format of the "Add Images and other files" toolbar button. | ||
- | {{applet.nlogo|}} | + | {{https:// |
- | will execute the applet. | + | will execute the model. |
==== Advanced syntax ==== | ==== Advanced syntax ==== | ||
Instead of adding a title to create a download link, you may add a ''? | Instead of adding a title to create a download link, you may add a ''? | ||
- | {{applet.nlogo? | + | {{https:// |
| | ||
- | By default the '' | ||
- | |||
- | Centered without version: | ||
- | Centered with version: | ||
- | Centered with size and version: {{ applet.nlogo? | ||
- | |||
You may want to present the source code to the file directly in the wiki page. To do so add ''? | You may want to present the source code to the file directly in the wiki page. To do so add ''? | ||
- | {{applet.nlogo? | + | {{https:// |
| | ||
Currently, the raw code is simply wrapped in a [[: | Currently, the raw code is simply wrapped in a [[: | ||
Line 82: | Line 74: | ||
NetLogo allows extra information to be added in a " | NetLogo allows extra information to be added in a " | ||
- | {{applet.nlogo? | + | {{https:// |
| | ||
The text is presented without any formatting. | The text is presented without any formatting. | ||
- | {{applet.nlogo? | + | {{https:// |
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
None at this time. | None at this time. | ||
+ | |||
===== Development ===== | ===== Development ===== | ||
+ | |||
=== How it works === | === How it works === | ||
- | == ACL == | ||
- | The first challenge I had in developing this plugin was figuring out how to handle security. | + | == Direct linking == |
- | - It wouldn' | + | |
- | - It wouldn' | + | |
- | A user should only be able to run the file if he/she has permission to read it. How to let the Java applet know if DokuWiki grants permission? | + | |
- | - The plugin creates a token containing the .nlogo filename and an expiration time. The token is encrypted with a secret hash. | + | |
- | - The page is constructed containing a link to '' | + | |
- | - When the page is loaded the Java applet tries to load the .nlogo file from the '' | + | |
- | I think this gives good security (respecting | + | This plugin requires direct linking to the raw '' |
- | == Applet version == | ||
- | |||
- | In order to work this plugin requires the '' | ||
- | |||
- | Instead, the plugin reads the '' | ||
== Applet size == | == Applet size == | ||
- | How big should the applet | + | How big should the model be on the page? The user can specify with parameters but if not specified it reads the '' |
=== Change Log === | === Change Log === | ||
- | {{rss>http:// | + | {{rss>https:// |
=== Known Bugs and Issues === | === Known Bugs and Issues === | ||
See [[https:// | See [[https:// | ||
+ | |||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
Line 132: | Line 118: | ||
Here are some improvements the author hopes to see implemented: | Here are some improvements the author hopes to see implemented: | ||
* The ''? | * The ''? | ||
- | * Options (such as the applet download url) are hard-coded. | ||
- | * Is it possible (and a good idea?) to automatically modify '' | ||
plugin/netlogo.1384634777.txt.gz · Last modified: 2013-11-16 21:46 by rikblok