Content added Content deleted
imported>mutante mNo edit summary |
imported>mutante mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 29: | Line 29: | ||
</HighlightSyntax> |
</HighlightSyntax> |
||
You need to copy the above to ./extensions/ |
You need to copy the above to ./extensions/ReverseExtension.php and add include("extensions/ReverseExtension.php"); to your LocalSettings.php |
||
[http://de.wiktionary.org/wiki/Wiktionary:Teestube#Ruecklaeufiges_W.C3.B6rterbuch.2C_Reimw.C3.B6rterbuch Discussion] |
Latest revision as of 22:24, 2 October 2007
reverse extension for geimfyglid[edit]
geimfyglid> how is that done?
<reverse>geimfyglid> how is that done?</reverse>
<reverse>geimfyglid> how is that done?</reverse>
<HighlightSyntax>
<?php
- <reverse> Mediawiki extension example by mutante
$wgExtensionFunctions[] = "wfReverseExtension";
function wfReverseExtension() { global $wgParser; $wgParser->setHook( "reverse", "renderReverse" ); }
function renderReverse( $input ) {
$output=strrev($input);
return $output;
} ?> </HighlightSyntax>
You need to copy the above to ./extensions/ReverseExtension.php and add include("extensions/ReverseExtension.php"); to your LocalSettings.php