1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8function wikiplugin_sup_info() 9{ 10 return [ 11 'name' => tra('Superscript'), 12 'documentation' => 'PluginSup', 13 'description' => tra('Apply superscript font to text'), 14 'prefs' => [ 'wikiplugin_sup' ], 15 'body' => tra('text'), 16 'iconname' => 'superscript', 17 'introduced' => 2, 18 'filter' => 'wikicontent', 19 'tags' => [ 'basic' ], 20 'params' => [ 21 ], 22 ]; 23} 24 25function wikiplugin_sup($data, $params) 26{ 27 return "<sup>$data</sup>"; 28} 29