Talk:Call extension

From FollowTheScore
Revision as of 11:50, 10 September 2007 by Gero (talk | contribs)
Jump to: navigation, search

When installing the extension the special page comes up with a new template.

What do I have to write into that template?

I don´t understand. Which special page? And please sign messages you leave here . Gero 00:00, 10 September 2007 (CEST)

What I mean is the following:

I copied the extension into the extension directory and added the include statement into the LocalSettings.php.

When done there is a new special page with the name Call. Below that page a (to me) cryptic link to a template page appears. When following that link it brings me to the dedicated template page and that is where I am lost.

Albert Cremer 10 September 2007

Oh, I see. The Call Special Page does not do anything but call another page which is given to it as an argument. So if you call it directly withoutr an argument you will see nothing but a link to itself (which is not a real hyperlink because mediawiki suppresses self references of pages). I will add a text explaining this to the next release. It is not a defect and should not bother you. The value comes when you use the call extension to invoke a normal page. You put the page name (plus its namespace) behind "Call/". And then you can add parameters (comma separated list).

The trick is that thus you can create wiki links to a page and pass parameters atthe same time.

A link to the current page would normally look like this

This is a link to Talk:Call extension

You could make the same link with

This is a link to Special:Call/Talk:Call extension using the Call mechanism.

The only difference you will notice is that you get a special page instead of a normal page when clicking on the link. But the contents is the same.

Now we assume that our page has some code which acts upon a parameter called What. Let us assume it outputs a text line if "What" is not empty.

{

If we use a link to this page where we call it with a value for 'What' the page will behave differently. Try and press the following link:

This is a link to Special:Call/Talk:Call extension,What=Something Wonderful using the Call mechanism.