tra('Object Link'), 'description' => tra('Display a link to an object'), 'prefs' => ['wikiplugin_objectlink'], 'iconname' => 'link', 'introduced' => 10, 'tags' => [ 'basic' ], 'format' => 'html', 'inline' => true, 'params' => [ 'type' => [ 'required' => true, 'name' => tr('Type'), 'description' => tr('The object type'), 'since' => '10.0', 'accepted' => 'wiki, user, external, relation_source, relation_target, freetag, trackeritem', 'filter' => 'text', 'type' => 'text', ], 'id' => [ 'required' => true, 'name' => tra('Object ID'), 'description' => tra('The item to display'), 'since' => '10.0', 'filter' => 'text', 'profile_reference' => 'type_in_param', ], ], ]; } function wikiplugin_objectlink($data, $params) { $smarty = TikiLib::lib('smarty'); $smarty->loadPlugin('smarty_function_object_link'); return smarty_function_object_link( [ 'type' => $params['type'], 'id' => $params['id'], ], $smarty->getEmptyInternalTemplate() ); }