*/ if (!defined('DOKU_INC')) die(); class syntax_plugin_traumacalc extends DokuWiki_Syntax_Plugin { function getType() { return 'substition'; } function getPType() { return 'block'; } function getSort() { return 157; } function connectTo($mode) { $this->Lexer->addSpecialPattern('', $mode, 'plugin_traumacalc'); } function handle($match, $state, $pos, Doku_Handler $handler) { return array(); } function render($mode, Doku_Renderer $renderer, $data) { if ($mode !== 'xhtml') return false; // $renderer->doc .= ''; // HTML for the calculator with prefixed IDs and coefficient selection $html = '

Trauma Score Calculator

Injury Severity Score (ISS)







Revised Trauma Score (RTS)




TRISS




'; $renderer->doc .= $html; return true; } }