This is a quick&dirty extension for mediawiki to add wavedrom syntax.
To install the plugin :
- In mediawiki directory named
extensions
, create a subdirectory namedwavedrom
- Copy the file
wavedrom.php
under the freshly cleated directoryextensions/wavedrom
- Add the following lines in your file
LocalSettings.php
// mw.v 1.24.x or less
require_once "$IP/extensions/wavedrom/wavedrom.php";
// mw.v 1.25.x or above
wfLoadExtension( '<wavedrom>' );
To use it in mediawiki simply add the tag <wavedrom>
:
<wavedrom>
{ signal: [
{ name: "clk", wave: "p......" },
{ name: "bus", wave: "x.34.5x", data: "head body tail" },
{ name: "wire", wave: "0.1..0." },
]}
</wavedrom>