Manual talk:Hooks/ParserGetVariableValueSwitch

From MediaWiki.org

Jump to: navigation, search

[edit] Hook execution question

I am using Mediawiki 1.11.1 and I have a problem with the following sentences in the text:

Otherwise it does nothing and returns false. Returning false tells MediaWiki to go onto the remaining hooks assigned to ParserGetVariableValueSwitch in hopes of finding a value for the magic word id.

From the tests that I have performed it seems instead that if there are several hooks the execution of the hooks is interrupted as soon as one of them returns false. It is when a hook returns true that the execution continues to the next hook. Is it an error in the text or have I misunderstood something? — Tommy Ekola 12:06, 26 February 2008 (UTC)

[edit] return Links

Hi, when I do something like $ret='<div style="border:1px solid black">txt</div>'; a box is rendered. When I return $ret='<a href="http://mysite/index.htm">Index</a>'; no link is rendered, but the HTML code is shown. Is it possible to generate a link with this technique? -- Bardnet 11:58, 28 May 2008 (UTC)

Personal tools