Hello Wikimedia devlopers:
I was looking for a way to add a new custom tag to wikimedia.
I found a second of code that looked promising:
# Create an HTML-style tag, e.g. <yourtag>special text</yourtag>
# Callback will be called with the text within
# Transform and return the text within
function setHook( $tag, $callback ) {
$oldVal = @$this->mTagHooks[$tag];
$this->mTagHooks[$tag] = $callback;
return $oldVal;
}
Unfortunately setHook isn't used anywhere so I have no example
to work with and I don't know where the best place to insert the
hook from. Anyone have any hints I could use?
Thanks
-John