Hi!
I wrote the code below for a custom tag <xdata>. This tag can appear more than once in the same article.
Suppose the custom tag appears exactly 5 times in an article. It appears that the renderXdata() function below would be invoked 5 times too. My question is: Is this function called (executed) serially or in parallel?
If it's run serially, is there a way to run them in parallel?
function wfXdataExtension()
{
global $wgParser;
$wgParser->setHook( "xdata", "renderXdata" );
}
function renderXdata( $input, $argv, &$parser )
{
// Code that does something, such as retrieving data from a database or flat file
}
Filip
Send instant messages to your online friends http://uk.messenger.yahoo.com
hey,
i've been using mediawiki for about 4months, and i never had a single
problem.
yesterday i tried to resize a picture by using the following command : "
[[image: test.jpg |thumb|right|200px|test]] " but it didnt work....
the picture is on the server, so no problem there...
mediawiki doesn't create a thumb - anyone here who can help me?
Welcome to mediawiki-l. This mailing list exists for discussion and questions
about the MediaWiki software[0]. Important MediaWiki-related announcements
(such as new versions) are also posted to this list.
Other resources.
If you only wish to receive announcements, you should subscribe to
mediawiki-announce[1] instead.
MediaWiki development discussion, and all Wikimedia technical questions, should
be directed to the wikitech-l[2] mailing list.
Several other MediaWiki-related lists exist:
- mediawiki-api[5] for API discussions,
- mediawiki-enterprise[6] for discussion of MediaWiki in the enterprise,
- mediawiki-cvs[7] for notification of commits to the Subverion repository,
- mediawiki-i18n[8] for discussion of MediaWiki internationalisation support,
- wikibugs-l[9] for notification of changes to the bug tracker.
List administrivia (unsubscribing, list archives).
To unsubscribe from this mailing list, visit [12]. Archives of previous postings
can be found at [3].
This list is also gatewayed to the Gmane NNTP server[4], which you can use to
read and post to the list.
Posting to the list.
Before posting to this list, please read the MediaWiki FAQ[10]. Many common
questions are answered here. You may also search the list archives to see if
your question has been asked before.
To post to the list, send mail to <mediawiki-l(a)lists.wikimedia.org>. This is a
public list, so you should not include confidential information in mails you
send.
When replying to an existing thread, use the "Reply" or "Followup" feature of
your mail client, so that clients that understand threading can sort your
message properly. When quoting other messages, please use the "inline" quoting
style[11], for clarity.
When creating a new thread, do not reply to an existing message and change the
subject. This will confuse peoples' mail readers, and will result in fewer
people reading your mail. Instead, compose a new message for your post.
Messages posted to the list have the "Reply-To" header set to the mailing list,
which means that by default, replies will go to the entire list. If you are
posting a reply which is only interesting to the original poster, and not the
list in general, you should change the reply to only go to that person. This
avoids cluttering the list with irrelevant traffic.
About this message.
This message is posted to the list once per week by <river(a)wikimedia.org>.
Please contact me if you have any questions or concerns about this mailing.
References.
[0] http://www.mediawiki.org/
[1] http://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
[2] http://lists.wikimedia.org/mailman/listinfo/wikitech-l
[3] http://lists.wikimedia.org/pipermail/mediawiki-l/
[4] http://dir.gmane.org/gmane.org.wikimedia.mediawiki
[5] http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
[6] http://lists.wikimedia.org/mailman/listinfo/mediawiki-enterprise
[7] http://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
[8] http://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n
[9] http://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[10] http://www.mediawiki.org/wiki/FAQ
[11] http://en.wikipedia.org/wiki/Posting_style#Inline_replying
[12] http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi everyone,
I'm looking about how to hide a page in Wiki, but I didn't find nothing
about.
I'd like to know if Wiki has this kind of resource and how can I use it
? Or if it has anything seemed.
If anybody know, pls help me.
Tks.
Paulo Ramos.
Is there some way to determine if the a user has logged in via MW and
then if they are NOT logged in, make this addition to any page:
__NOEDITSECTION__
I have all the various settings for permissions on who can edit, can
not edit, read, create accounts etc.. Most of these functions are
limited to 5 persons who can actually login into MW. Only myself can
create accounts, and the other 4 could edit if they chose to, but not
likely.
The majority of users are readers and can only get to the site after
authenticating via .htaccess, this applies to the Uber 5 too. No on
gets to the wiki till you login. Then if your an Uber 5 you have to
login in again to edit.
To make it easier for "web and wiki challenged" on the planet I've
been asked to remove the "edit" actions that appear for sections as it
confuses the "wiki challenged" users.
So my thought was that if I could determine if the user was not logged
into MW some how then I could get __NOEDITSECTION__ added to the pages
based on this test.
I am just not finding a solution as to:
1) Determine if a user is logged in or not logged in to MW
2) Where should this go to apply site wide? monobook.php?
My theory goes along this line, this is just theory, non working:
<?php if($_GET['loggedin']==''){ ?>
__NOEDITSECTION__
<?php } ?>
I use:
MW : 1.6.10
Skin: monobook
I will be moving to 1.10 after testing, but production use will stay
with 1.6.10 for awhile till I test things out on 1.10. My host only
recently made PHP5 available to users, thats why I started at 1.6.10
So this needs to work for 1.6.10 as well as current versions.
I wanted some of the Wikipedia functionality, so I copied
Mediawiki:Common.js into my wiki. But I wanted to tweak it. Although
I could edit it in my normal text editor and paste it back, I wanted
to make minor tweaks on the wiki page itself. But it's a long page.
So...
http://ecoliwiki.net/dev/index.php/MediaWiki:Common.js
I put section headings in the commented out parts. Now I have a TOC
and section editing. Trivial, but I thought some might find it useful.
Jim
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
Thanks Rob for pointing to this extension.
But unluckily, that's for 1.10 and I'm using 1.9.3 :(
Can somebody please guide me how to port it for 1.9.3?
In general, what portions of code is making an extension exclusive for
1.10?
Regards,
Jack
----------------------------------------------------------------
"If you can find something everyone agrees on, it's wrong"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Rob Church
Sent: Tuesday, July 24, 2007 6:54 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Only one edit at a time?
On 24/07/07, Platonides <Platonides(a)gmail.com> wrote:
> No. Take into account that there's no way to know if someone is
> currently editing a page (i could press edit and not save, or keep the
> edit window open for hours).
I seem to recall Ashar developed something to do that; an extension,
using some AJAX magic, which I believe is an idea that was developed
from a previous discussion on wikitech-l which Tim Starling started.
I don't know what state the code's in, but I imagine it's functional -
have a look at AjaxShowEditors.
Rob Church
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
This electronic mail (including any attachment thereto) may be confidential and privileged and is intended only for the individual or entity named above. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. Accordingly, if you are not the intended recipient, please notify the sender by replying to this email immediately and delete this email (and any attachment thereto) from your computer system...Thank You
Hello,
I'm using MediaWiki: 1.10.0 with PHP: 5.1.6 (cgi mode) & MySQL: 4.1.20.
I activated the "EasyTimeline" extensions who creates nice timeline but
ANY links created on the timeline legend works. I don't see any errors
anywhere (Apache logs or Web output).
I'm using ploticus 2.33-Jun'06 and perl 5.8.8 on ubuntu edgy.
Any ideas why this extention works but can't give any timeline legend
links works ?
Thanks
Johan
"Les informations contenues dans ce message electronique peuvent etre de nature confidentielles et soumises a une obligation de secret. Elles sont destinees a l'usage exclusif du reel destinataire. Si vous n'etes pas le reel destinataire, ou si vous recevez ce message par erreur, merci de le detruire immediatement et de le notifier a son emetteur."
"The information contained in this e-mail may be privileged and confidential. It is intended for the exclusive use of the designated recipients named above. If you are not the intended recipient or if you receive this e-mail in error, please delete it and immediately notify the sender."
I was thinking of setting up a wiki just for demo'ing extensions
(specifically TableEdit). To be useful as a demo site, I think I
need to allow all to edit, but on my other wikis I only allow
registered users to edit so I can avoid thinking about spam blocking.
So... I was just thinking that if I set up a wiki that allowed
editing but no external linking, that might be something I could put
up and mostly ignore. Does that sound like it would work? If so,
how to do it. Is there a global to set to false?
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054