OpenWetWare:Dewikify

From OpenWetWare
Revision as of 19:52, 15 December 2005 by Austin J. Che (talk | contribs)
Jump to navigationJump to search

The dewikify perl script written by Austin Che makes a wiki page look like a static page.

OWW dewikifying

To take advantage of the dewikify script on OpenWetWare, all your pages should be under one namespace. For the following, let's suppose you're using the Foo namespace. Then you can access the dewikified version at http://foo.openwetware.org/. The top page will be the page just named Foo on this wiki. All links from this page to other pages that begin with Foo: will automatically be dewikified. Other pages will not be dewikified.

The conversion is done simply by capitalizing the first letter, e.g. foo to Foo on the wiki. However, if your namespace has a different capitalization, spaces, punctuation, or you just wish to have an alias, then you will need to contact us to do a mapping for you, e.g. syntheticbiology is mapped to Synthetic_Biology.

The pages are dewikified by grabbing the page content and inserting it inside a template. The default template is Dewikify:Default. If you want your pages to have another format, for example, if you want to center your pages, create a page Dewikify:Foo. In the page, insert !BODY! and it will be replaced by the page. For example, look at Dewikify:Synthetic Biology (try to edit the page to see the content).

You can also use another virtual host to hide the openwetware connection, for example http://syntheticbiology.org/ is the equivalent of http://syntheticbiology.openwetware.org. You will need to update your DNS to point the server name to the OWW server and let us know so we can setup a virtual host for you on the machine.

Running on your own machine

To adapt the script to your own wiki or server, download the script and follow the instructions in the comments at the top.

Misc

Any comments or feature requests should go to Austin Che.