Extension:anacode

From Opasnet
Jump to navigation Jump to search

This extension displayes Analytica -code as preformatted text. More features coming at some point (thats why we use anacode-tag instead of default pre-tag)

Installation

  1. Download extension file from File:Anacode.zip
  2. Place file into extension directory of your wiki
  3. Add this into your localsetting.php:
    require_once ( "$IP/extensions/anacode.php" );

Usage

Place your Analytica-code between <anacode> and </anacode> -tags

Example:

<anacode>
Table(Age_group)(((Bw_gender[Gender='Male']*Bernoulli_gender)+((1-Bernoulli_gender)*Bw_gender[Gender='Female'])),
Normal(15.3,2))
</anacode>

Generates: <anacode> Table(Age_group)(((Bw_gender[Gender='Male']*Bernoulli_gender)+((1-Bernoulli_gender)*Bw_gender[Gender='Female'])), Normal(15.3,2)) </anacode>