Hi
Sorry if this is not the right place for this.
I'm a sort of a black sheep here running an html static clone of Wikipedia. Right now I'm tying to improve the program to include {{msg}}. Half a year ago this was the URL to get the content, http://no.wikipedia.org/w/wiki.phtml?title=Template:Akershus&action=raw&....
Is there a new way or url to get the content?
Regards
Stefan Vesterlund
On 30/09/05, Stefan Vesterlund s.vesterlund@telia.com wrote:
Half a year ago this was the URL to get the content, http://no.wikipedia.org/w/wiki.phtml?title=Template:Akershus&action=raw&....
You want "/w/index.php" instead of "/w/wiki.phtml", and you it's not CSS, so lose the "&ctype=text/css" [Basically, find the edit page, and substitute "raw" for "edit"] So:
http://no.wikipedia.org/w/index.php?title=Template:Akershus&action=raw or http://no.wikipedia.org/w/index.php?title=Mal:Akershus&action=raw ["Mal" being Norwegian for "Template", it seems]
But, far far better than scraping content off the overloaded Wikimedia servers would be to download a dump of the content from http://download.wikimedia.org and process that locally.
-- Rowan Collins BSc [IMSoP]
Thanks
The data in {{msg}} is not in the dumps (I'm using those to not put any unnecessary lode on Wikipedia servers). It is grate if a separate dump could be made with this data (xml, sql or what ever format).
Regards
Stefan Vesterlund
----- Original Message ----- From: "Rowan Collins" rowan.collins@gmail.com To: "Wikimedia developers" wikitech-l@wikimedia.org Sent: Saturday, October 01, 2005 2:23 PM Subject: Re: [Wikitech-l] {{msg}} URL
On 30/09/05, Stefan Vesterlund s.vesterlund@telia.com wrote:
Half a year ago this was the URL to get the content, http://no.wikipedia.org/w/wiki.phtml?title=Template:Akershus&action=raw&....
You want "/w/index.php" instead of "/w/wiki.phtml", and you it's not CSS, so lose the "&ctype=text/css" [Basically, find the edit page, and substitute "raw" for "edit"] So:
http://no.wikipedia.org/w/index.php?title=Template:Akershus&action=raw or http://no.wikipedia.org/w/index.php?title=Mal:Akershus&action=raw ["Mal" being Norwegian for "Template", it seems]
But, far far better than scraping content off the overloaded Wikimedia servers would be to download a dump of the content from http://download.wikimedia.org and process that locally.
-- Rowan Collins BSc [IMSoP] _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 01/10/05, Stefan Vesterlund s.vesterlund@telia.com wrote:
The data in {{msg}} is not in the dumps (I'm using those to not put any unnecessary lode on Wikipedia servers). It is grate if a separate dump could be made with this data (xml, sql or what ever format).
Er... it should be, as long as you're not using the "ns0 only" dump. It's just page content that's in the "Template" namespace (ns=10). You've probably not spotted it because namespaces are stored *numerically* in the database, not as strings, and not as part of the title. [See also http://meta.wikimedia.org/wiki/Help:Namespace]
So, the page referenced by "{{msg:foo}}" (or "{{foo}}") is called "Template:Foo", but in the database it will have a "title" of "Foo" and a "namespace" of 10. That's why it can be called "Template:Foo" and "Mal:Foo" at the same time, because the first bit isn't really part of the name.
BTW, "{{msg:foo}}" was deprecated in favour of "{{foo}}" long ago.
I hope this makes at least some sense - feel free to ask if anything still isn't clear. -- Rowan Collins BSc [IMSoP]
wikitech-l@lists.wikimedia.org