How does commons.wikipedia work? Can this be imitated in other
people's own installation of MediaWiki? Is there a technical document
under meta explaining this, I can't find any.
Yongho
Hey, all.
I'm looking to change the way my search results appear. Currently,
they include, as per default, the link to the article, and below that
a snippet of text from it. My problem is that this text contains
iteral wikicode ([[]], '''', etc.). How can I change the results page
so that these marks are removed?
Having stared and stared at searchengine.php and its related files,
I've found the classes, extended classes, and their functions way over
my head. Is there some specific function that parses wikitext? And
which function's return do I have to parse thus?
--
Sincerely,
Alex Edelman
"Alpaca"
http://www.thekolwiki.net/
Hallo!
It seems that the section *Queryable Fields* in
http://bugzilla.wikimedia.org/config.cgi shows the defnition of the fields
in MediaZilla.
What about adding a field
{ name: 'related_cvs_link',
description: 'CVS' }
This field should contain the link to the relevant file at
http://cvs.sourceforge.net/viewcvs.py/wikipedia/
and should help newbees to go directly
a) to the relevant file that needs to be changed
or if the bug report was fixed
b) to the file that *was* changed; if more similar files have been changed
then an example url should be included
Why this request?
a) I was able to idendify some of such files but I was not able to identify
for exmple the file where the change for
http://bugzilla.wikimedia.org/show_bug.cgi?id=3810#c9 and
http://bugzilla.wikimedia.org/show_bug.cgi?id=3810#c10 have been made.
b) Having the CVS link at the top would make life easier then searching for
such links inside the comments.
Thanks for your support in advance!
best regards reinhardt [[user:gangleri]]
Thanks the article id suggestion worked.I wanted to know how i can add content
to every article in the wiki at the end of the article if i am using the
ParserAfterstrip hook event. How can i get the article content and then append
content to it which will be available in the function being called on the hook
event ParserAfterStrip.
Thanks
Hello all,
I'm running Media Wiki 1.4.12 and working on a project where I need to
automate edits to certain pages. I'm using SQL statements to do these
edits (see below for details). When I perform these edits in the
database they are not displayed when I view the article using a web
browser, in spite of the fact that they are in the cur database. If I go
to the "Edit" page I see my edits there and if I edit the Edit, they
will appear in the article view. I'm also able to see my edits in the
recentchanges list. The only place where they don't appear to appear is
in the Article view itself.
I've searched mediawiki and google and haven't found anyone attempting
similar. We are not using memcaching at this site and I've even added
$wgCachePages = false; to the local settings file with no change.
I need to be able to do this process automatically without requiring the
end user to click on Edit to see the edited page. Any and all help is
appreciated!
DETAILS:
Here's the set of sql statements I'm running:
#copy old article data into the "old" table:
insert into test_old (old_namespace, old_title, old_text, old_user,
old_user_text, old_timestamp, inverse_timestamp) select cur_namespace,
cur_title, cur_text, cur_user, cur_user_text, cur_timestamp,
inverse_timestamp from test_cur where cur_title = 'TestPage';
#get the old id to be inserted into the recentchanges table.
select max(old_id) from test_old as rc_last_old_id where old_title =
'TestPage';
(result is 942)
#get the current id to be inserted into the recentchanges table
select cur_id from test_cur where cur_title = 'TestPage';
(result is 980)
#perform the update on the cur table
update test_cur set
cur_text = '3 Modified page THIS WILL WORK REALLY.',
cur_user = '3',
cur_user_text = 'Autopop',
cur_timestamp = DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s'),
cur_is_new = '0',
cur_touched = DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s'),
inverse_timestamp = (99999999999999 - CURRENT_TIMESTAMP)
where cur_title = 'TestPage';
#update recentchanges
insert into test_recentchanges (rc_timestamp, rc_cur_time, rc_user,
rc_user_text, rc_title, rc_cur_id, rc_last_oldid)
values (
DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s'),
DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s'),
'3',
'Autopop',
'TestPage',
'980',
'942'
);
#update searchindex
update test_searchindex set si_text = '3 Modified page THIS WILL WORK
REALLY.[[Category:Published]]' where si_page = 980;
Sounds like a very good idea. To my mind there are three levels of
configuration:
1. Stuff you definitely want to change (like the site icon and anything
that shows up as a blank page or red link).
2. Stuff you probably want to consider changing because the default is
quite possibly inappropriate (like copyright statements).
3. Stuff that you -can- change, if you're finnicky, but that most sites
will be happy to leave as is (like most of the system messages).
Anyone who needs to convert the wiki into another language will probably
need to do consider all three.
Ben
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Steven Dick
Sent: Wednesday, 30 November 2005 4:53 p.m.
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] mediawiki 1.5: so difficult?
On 11/29/05, Rowan Collins <rowan.collins(a)gmail.com> wrote:
>
> On 29/11/05, Steven Dick <kg4ydw(a)gmail.com> wrote:
> > It would also help if there was a page in the documentation listing
> > all
> the
> > meta pages that are user interface pages.
>
> Um, you mean Special:Allmessages ?
> Clearly, the documentation doesn't mention that enough times yet...
Clearly, you didn't read what I said, and you didn't check
Special:Allmessages either.
Yes, I know about that page, yes I find it helpful, but it is not
enough.
It does NOT list [[Protected_page_guidelines]] which is linked from
[[protectedpagewarning]]. This is one example only.
Also, there are a large number of messages in that page, most of which
are OK and do not need much tweaking for me. My complaint is that I'd
like a list of pages that DO need tweaking, mostly because they don't
yet exist.
I guess what I would like is a list of all pages in Special:Allmessages
that do NOT exist, as well as a list of all pages those pages link to
that also do not exist...
As we both have pointed out, there are already two places to go to get a
list of _ALL_ messages.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I've tried Jama's solution, but it doesn't work for me. I ended up
reinstalling MediaWiki from scratch. Anybody knows another way to do
this?
--Gerard
-----Oorspronkelijk bericht-----
Van: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] Namens Jama Poulsen
Verzonden: maandag 28 november 2005 0:57
Aan: MediaWiki announcements and site admin list
Onderwerp: Re: [Mediawiki-l] how to copy Special:Allmessages to another
wiki
On Sun, Nov 27, 2005 at 10:06:32PM +0100, G.Bierens(a)fontys.nl wrote:
> I've been finetuning the systemmessages in one wiki, now I want to use
them in another wiki which is on a different server. I tried using
PHPmyAdmin to copy the table 'text' from one wiki to the other, but that
does not seem to work. The 'text'-table is 4.2 Mb big, to big maybe or
is this not the right way at all?
>
> Anybody knows how to solve this?
[I don't claim this will work, but its a start]
The system messages (in MW 1.5+) are stored in the "xx_page" table, and
cached as one blob in "xx_objectcache" (keyname:
"yourwikiname:messages").
You'll need to extract all the rows for the Mediawiki namespace:
SELECT *
FROM `xx_text`
WHERE `page_namespace` =8
Then you'll need to delete the pages in that namespace from the other
DB,
and insert the exported pages (without having ID clashes).
Now you'll also need to remove the cached object and re-edit your
"Special:Allmessages" page, so the objectcache blob is restored.
And ofcourse before you start, make tested backups.
Jama Poulsen
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
----------------------------------------------------------------
Op deze e-mail zijn de volgende voorwaarden van toepassing:
http://www.fontys.nl/disclaimer
The above disclaimer applies to this e-mail message.
----------------------------------------------------------------
Mediawiki 1.5.2
Suse 9.2
Apache 2.0.49
PHP 4.4.0
MySQL 4.0.18
I installed mediawiki into the document root of my vhost with no apparent
errors (ie its sitting in wiki.mydomain.com, not www.mydomain.com/wiki, and
no errors going through the install process). After dropping
LocalSettings.php into the "parent" directory, I can visit the home page
just fine. In fact, I can "visit" most any pages just fine.
However, what does not work is the following:
(these both give me the same error. In IE I get a "cannot display this
page", in Firefox it wants to download a completely empty index.php file)
Clicking on "create an account or login"
I can get to the "edit" form for the main page, but when I hit save, I get
the above error
I have other apps that use php/mysql just fine (phpBB, wordpress). I turned
on debugging from inside LocalSettings.php ($wgDebugLogFile =
"/tmp/wikilog"), but the log doesn't show me any errors:
>> Start <<
Start request
GET /index.php?title=Special:Userlogin&returnto=Special:Specialpages
Host: wiki.mydomain.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8)
Gecko/20051111 Firefox/1.5
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Referer: http://wiki.mydomain.com/index.php?title=Special:Specialpages
Main cache: fakememcachedclient
Message cache: mediawikibagostuff
Parser cache: mediawikibagostuff
<< End >>
My apache error log shows no errors. I tried turning on error logging with
php.ini:
error_reporting = E_ALL & ~E_NOTICE
log_errors = on
error_log = /tmp/php_errors
But the php error log is empty (and the log is 666 in case it was having
write permission problems).
I have been banging my head on this problem for several days now. Does
anyone have any idea what's going on here? Thanks.
Matt