Hmm.. Unluckily I'm not a programmer. I thought my requirement is
simple.
In my extension I want to display the output of a function only while
editing existing pages.
Something like
If ($articleId !=" ") {
Myfunction
}
I suppose if the currently editing page is a new one, it still don't hv
an ID
Regards,
Jack
----------------------------------------------------------------
"People forget how fast you did a job - but they remember how well you
did it"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Platonides
Sent: Friday, November 02, 2007 2:45 AM
To: mediawiki-l(a)lists.wikimedia.org
Subject: Re: [Mediawiki-l] Checking whether a page existing or not
Jack Eapen C wrote:
>
> Thanks. When I added $articleID= Parser::getArticleID(); to my
> extension code, I got a blank page.
> I guess I need to declare some other global variable or so... Wht
> should be that?
>
>
> Regards,
>
> Jack
getArticleID() is not a static member function. It must be called from
an object.
You can call it from $wgParser->getArticleID() but *it's not guaranteed
to work*. You should use the parser object which is being passed to your
extension.
_______________________________________________
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
Could anyone give me a link to a working example of a wiki with
DublinCore enabled
I just wanna see how it'll look like :( though I couldn't get mine to
work
Regards,
Jack
----------------------------------------------------------------
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jack Eapen
C
Sent: Monday, October 29, 2007 6:18 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] what does wgEnableDublinCoreRdf do?
Yes, and I got a 404 error
Regards,
Jack
----------------------------------------------------------------
"People forget how fast you did a job - but they remember how well you
did it"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Dan Thomas
Sent: Monday, October 29, 2007 6:14 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] what does wgEnableDublinCoreRdf do?
did you try:
http://sbsws469//wiki/index.php?title=Main_Page&action=dublincore
On 10/29/07, Jack Eapen C <jackec(a)suntecgroup.com> wrote:
>
>
>
> Yes, that's the problem. It should have worked; but it is NOT :(
>
> Sunwiki shuld not be a problem as that is the folder where I've MW
> files
>
>
> Regards,
>
> Jack
> ----------------------------------------------------------------
>
> "People forget how fast you did a job - but they remember how well you
> did it"
>
>
> -----Original Message-----
> From: mediawiki-l-bounces(a)lists.wikimedia.org
> [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Dan
> Thomas
> Sent: Monday, October 29, 2007 5:56 PM
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] what does wgEnableDublinCoreRdf do?
>
> The reference in your site's page source indicates that DCES is
> accessible.
> Appending this string to the base URL should show the page:
>
> /sunwiki/index.php?title=Main_Page&action=dublincore
>
> The only other thing I can think of is the pretty URL (sunwiki). An
> alternative append string to try is:
>
> /wiki/index.php?title=Main_Page&action=dublincore
>
>
>
> On 10/29/07, Jack Eapen C <jackec(a)suntecgroup.com> wrote:
> >
> >
> >
> > I tried the url given by you; but the same error repeated. Page
> > source of my Main_Page says
> >
> > "<link title="Dublin Core" type="application/rdf+xml"
> > href="/sunwiki/index.php?title=Main_Page&action=dublincore"
> > rel="meta" />"
> >
> >
> > Regards,
> >
> > Jack
> > ----------------------------------------------------------------
> >
> > "People forget how fast you did a job - but they remember how well
> > you
>
> > did it"
> >
> >
> > -----Original Message-----
> > From: mediawiki-l-bounces(a)lists.wikimedia.org
> > [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Dan
> > Thomas
> > Sent: Friday, October 26, 2007 7:02 PM
> > To: MediaWiki announcements and site admin list
> > Subject: Re: [Mediawiki-l] what does wgEnableDublinCoreRdf do?
> >
> > Jack -- looks like typo in your url. Try:
> >
> > http://sbsws469/sunwiki/index.php?title=Main_Page&action=dublincore
> >
> > If you still have trouble, view page source and look for line that
> > starts
> > with:
> >
> > <link title="Dublin Core" type="application/rdf+xml"
> >
> >
> >
> > On 10/26/07, Jack Eapen C <jackec(a)suntecgroup.com> wrote:
> > >
> > >
> > > Thanks. How can I see the DC metadata of an article?
> > > When I tried the URL
> > > http://sbsws469/sunwiki/index.php?title=Mani_Page&action=editant&a
> > > ct
> > > io
> > > n=
> > > dublincore
> > >
> > > I got the error:
> > >
> > > "Not Acceptable
> > >
> > > The wiki server can't provide data in a format your client can
> read."
> > >
> > > Regards,
> > >
> > > Jack
> > > ----------------------------------------------------------------
> > >
> > > "People forget how fast you did a job - but they remember how well
> > > you
> >
> > > did it"
> > >
> > >
> > > -----Original Message-----
> > > From: mediawiki-l-bounces(a)lists.wikimedia.org
> > > [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Dan
> > > Thomas
> > > Sent: Monday, October 15, 2007 6:22 PM
> > > To: MediaWiki announcements and site admin list
> > > Subject: Re: [Mediawiki-l] what does wgEnableDublinCoreRdf do?
> > >
> > > Jack -- it generates web page metadata on the wiki page using
> > > Dublin
>
> > > Core elements. See:
> > >
> > > http://www.mediawiki.org/wiki/Manual:LocalSettings.php
> > > http://meta.wikimedia.org/wiki/RDF_metadata
> > >
> > >
> > >
> > > On 10/15/07, Jack Eapen C <jackec(a)suntecgroup.com> wrote:
> > > >
> > > >
> > > >
> > > > what is the use of settign the parameter
> wgEnableDublinCoreRdf=true?
> > > >
> > > > Regards,
> > > >
> > > > Jack Eapen C
> > > > SunTec Knowledge Centre
> > > > ----------------------------------------------------------------
> > > > --
> > > > --
> > > > --
> > > > --
> > > > ------------
> > > > "When your work speaks for itself, don't interrupt"
> > > >
> > > >
> > > >
> > > > 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
> > > >
> > > > _______________________________________________
> > > > MediaWiki-l mailing list
> > > > MediaWiki-l(a)lists.wikimedia.org
> > > > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> > > >
> > >
> > >
> > >
> > > --
> > > --
> > > Dan Thomas
> > > _______________________________________________
> > > 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
> > >
> > > _______________________________________________
> > > MediaWiki-l mailing list
> > > MediaWiki-l(a)lists.wikimedia.org
> > > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> > >
> >
> >
> >
> > --
> > --
> > Dan Thomas
> > _______________________________________________
> > 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
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l(a)lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
>
>
>
> --
> --
> Dan Thomas
> _______________________________________________
> 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
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
--
--
Dan Thomas
_______________________________________________
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
_______________________________________________
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
Hi
Any help plz?
Regards,
Jack
----------------------------------------------------------------
"People forget how fast you did a job - but they remember how well you
did it"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jack Eapen
C
Sent: Wednesday, October 31, 2007 7:28 PM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] what is the use of $wgUseMetadataEdit?
Hi,
i could find a reference to the variable $wgUseMetadataEdit. when i
enabled,i got an additional field in the edit form to enter metada.
wht's the format for that? how it can be used?
Regards,
Jack Eapen C
SunTec Knowledge Centre
------------------------------------------------------------------------
------------
"When your work speaks for itself, don't interrupt"
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
_______________________________________________
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
Hi,
I think the wikipedias are using Lucene Search engine extension.
http://www.mediawiki.org/wiki/Extension:LuceneSearch
Regards,
Jack
----------------------------------------------------------------
"People forget how fast you did a job - but they remember how well you
did it"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of
huazh(a)ctrip.com
Sent: Friday, November 02, 2007 10:55 AM
To: MediaWiki-l(a)lists.wikimedia.org
Subject: [Mediawiki-l] about searching in mediawiki
zh.wikipedia.org and other wikipedias provide a powerful searching
tool,which give results in relevance rank.And I have looked for the tool
for days,but nothing found.Is it still not public?
And the second question is also about searching, while keywords contain
asia characters ,my mediawiki return some not matched results.I guess an
asia word is splitted into several.Is there any configuration about
this,or solution?I found other mediawikis used in china got the same
problem.
Maybe I can't express myself in English, so any help will be
appreciated.
_______________________________________________
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
I read these, and as mentioned applied the suggested Firefox Add On
found at the link on
"http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don't
_Work".
My point is that I don't think it is this. As I mentioned in my follow
up post, I did cut out the link from the Wiki source and embed it in a
test HTM page and Firefox worked fine opening the local resource. It
seems that local links only fail to work in Wiki pages now. Why/how is
the Wiki limiting this functionality?
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Platonides
Sent: 01 November 2007 21:19
To: mediawiki-l(a)lists.wikimedia.org
Subject: Re: [Mediawiki-l] Links to files
It's explained on the extension page:
http://www.mediawiki.org/wiki/Extension:FileProtocolLinks#Limitations
It's a security feature of Firefox. Web pages have nothing to do eith
your local files:
http://kb.mozillazine.org/Links_to_local_pages_do_not_work
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
zh.wikipedia.org and other wikipedias provide a powerful searching tool,which give results in relevance rank.And I have looked for the tool for days,but nothing found.Is it still not public?
And the second question is also about searching, while keywords contain asia characters ,my mediawiki return some not matched results.I guess an asia word is splitted into several.Is there any configuration about this,or solution?I found other mediawikis used in china got the same problem.
Maybe I can't express myself in English, so any help will be appreciated.
Hi everybody,
a SysAdmin in my company has attempted to migrate our Mediawiki
installation from a Windows server to a Linux one, but discrepancies
are arising between the contents of the two.
Specifically, while many pages work just fine, hinting to a mostly working
installation, but many other pages result into blank browsers, no matter
if they should have been carried over as normal by the MySQL-dump that
has been used to transfer the DB.
The only difference I can think of between the failing pages and those
that work is that the former had been originally generated via XML imports
and transclude subpages. (*)
Is this something that could represent a problem? And is there a page
on mediawiki.org that I could recommend to our SysAdmin to go through?
Thank you in advance.
Manu
(*) The rationale behind this was to use the XML import function
to procedurally generate the subpages while the users retain the
capability to edit the bits of the actual page that do not rely on
transclusion of the subpages.
Thanks. When I added $articleID= Parser::getArticleID(); to my extension
code, I got a blank page.
I guess I need to declare some other global variable or so... Wht should
be that?
Regards,
Jack
----------------------------------------------------------------
"People forget how fast you did a job - but they remember how well you
did it"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Thomas
Dalton
Sent: Wednesday, October 31, 2007 7:29 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Checking whether a page existing or not
> In an extension function, i want to check whether the current page is
> new or already existing. which function i can call to get that info?
Parser::getArticleID(), or something like that. A new page will have an
ID of 0, existing pages will have positive IDs. (I think.)
_______________________________________________
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
Yes, I got it to work. Thank you all for the suggestions
Regards,
Jack
----------------------------------------------------------------
"People forget how fast you did a job - but they remember how well you
did it"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Dave
Sigafoos
Sent: Tuesday, October 30, 2007 8:03 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Creating a hierarchical tree view
I believe that CategoryTree, which we use, will show articles as well as
categories. It is all in the 'mode' switch
<!-- Right Cell Contents -->
<categorytree mode="all" depth="3" style="float:left; clear:left;
margin-left:1ex; border:1px solid gray; padding:0.7ex;
background-color:white;">ACTIVE</categorytree>
|}
<!-- End Right Cell -->
DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos(a)sanmar.com
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jack Eapen
C
Sent: Tuesday, October 30, 2007 0:17
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Creating a hierarchical tree view
Hi,
I think my further experiments with Treeview got some success in
manually creating the hierarchy with page links.
But with the CatTree template, it seems only 2-levels are possible-that
also will list only categories, not articles.
Anyone has some better idea on this?
Regards,
Jack
----------------------------------------------------------------
"People forget how fast you did a job - but they remember how well you
did it"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jack Eapen
C
Sent: Tuesday, October 30, 2007 11:05 AM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] Creating a hierarchical tree view
Hi,
I want to create a page with clickable tree, like
-Operating systems (category)
-Proprietary (category)
-Windows (article)
-Open Source (category
-Linux (article)
I tried treeview extension, but that fails if I give wiki links to the
article/category in the tree. There is CatTree template also in the DPL
site (http://semeb.com/dpldemo/index.php?title=Treeview_extension) but
that also lists categories as trees, not articles in that.
How can I achieve this with MW 1.11
Regards,
Jack Eapen C
SunTec Knowledge Centre
------------------------------------------------------------------------
------------
"When your work speaks for itself, don't interrupt"
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
_______________________________________________
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
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
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
I would like the option to "open" a downloaded file (for example a .doc
file) instead of download then open. For example syntax [[media.trash.doc]]
I'm using img_auth which eventually uses mimemagic.php. While the type of
the image file is properly displayed on the Image:trash.doc page, wiki
(application/msword), when the download starts, I get a "type: Unknown File
Type" in the download panel. Suspect this occurs in mimemagic.php and may
be correctable through the appropriate modification of mime.types and/or
mime.info, but frankly I'm baffled.
Any ideas (other than "MediaWiki is not a Content Management System . . .")
Jack
"Stress is just another word for knowledge" -- Scott Adams