Extension over extension

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Extension over extension

Iliya Kuznetsov

My own simple extension wants to produce wiki-formatting, for example:

$wgExtensionFunctions[] = "wfABAPEDIA";
function wfABAPEDIA() {
    global $wgParser;
    $wgParser->setHook( "fmsg", "renderFMSG" );
}

function renderFMSG( $input, $argv ) {
    $output = "[[CODE]] Text passed into example extension: <abap>write </abap><br/>$input";
    $output .= " <br/> and the value for the arg 'argument' is " . $argv["argument"];
    $output .= " <br/> and the value for the arg 'argument2' is: " . $argv["argument2"];
    return $output;
}

Using of:

<fmsg argument="1111">123</fmsg>

I've got only

[[CODE]] Text passed into example extension: write
123
and the value for the arg 'argument' is 1111
and the value for the arg 'argument2' is

not a wiki-format (because renderFMSG produces plain HTML, not a more)

How can I make wiki tags in my own extension?

--
Cybernetic Humanoid Used for Mathematics and Potential Assassination
[hidden email]                                       icq 122393064

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Extension over extension

Brion Vibber
Iliya Kuznetsov wrote:
> not a wiki-format (because renderFMSG produces plain HTML, not a more)
>
> How can I make wiki tags in my own extension?

http://meta.wikimedia.org/wiki/MediaWiki_extensions_FAQ#How_do_I_render_wikitext_in_my_extension.3F

-- brion vibber (brion @ pobox.com)


_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

signature.asc (257 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Extension over extension

Iliya Kuznetsov
Thank you very much! Now all is rigtht.

>Iliya Kuznetsov wrote:
>> not a wiki-format (because renderFMSG produces plain HTML, not a more)
>>
>> How can I make wiki tags in my own extension?
>
>http://meta.wikimedia.org/wiki/MediaWiki_extensions_FAQ#How_do_I_render_wikitext_in_my_extension.3F
>
>-- brion vibber (brion @ pobox.com)
>


--
Cybernetic Humanoid Used for Mathematics and Potential Assassination
[hidden email]                                       icq 122393064

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l