Re: [Mediawiki-l] How best to set up hooks in an extension function ?

2009-06-30 Thread Tim Starling
Richard Alan wrote: > I thought I had read somewhere that it was not a good idea to set > function hooks inside of a class in this way. > what follows is just one of many examples out there: > > $wgExtensionFunctions[]= 'wfSetupCSS' > > function wfSetupCSS() { > global $wgCSS; > $

Re: [Mediawiki-l] How best to set up hooks in an extension function ?

2009-06-30 Thread sebastien bracq
> Date: Wed, 1 Jul 2009 02:25:09 +0800 > From: richard.philippi...@gmail.com > To: mediawiki-l@lists.wikimedia.org > Subject: [Mediawiki-l] How best to set up hooks in an extension function ? > > I thought I had read somewhere that it was not a good idea to set > function hooks inside of a clas

[Mediawiki-l] link to bad article

2009-06-30 Thread Enrique
When i make clic on some many link this go to an article thats no correspond to the link. how i fix this after imported .xml dump with mwdumper.jar? ___ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listi

[Mediawiki-l] How best to set up hooks in an extension function ?

2009-06-30 Thread Richard Alan
I thought I had read somewhere that it was not a good idea to set function hooks inside of a class in this way. what follows is just one of many examples out there: $wgExtensionFunctions[]= 'wfSetupCSS' function wfSetupCSS() { global $wgCSS; $wgCSS = new CSS(); } class CSS {

[Mediawiki-l] articles and templates

2009-06-30 Thread Enrique
I'm downloaded eswiki-20090615-pages-articles and imported with mwdumper.jar. when i go to see an article in the place of an templates are articles them I see these articles in many other pages. the last year i make same procedure and i see the main page know not. in the place of my templates i h

Re: [Mediawiki-l] Template - Solved

2009-06-30 Thread Sarel Wessels (Agri Wiki)
Thanks! Thats very easy! Michael Rosenthal het geskryf: > Simply go to "Template:Cattle breeds", create it and fill it with your > content. You can now include that content with {{Cattle breeds}}. > http://mediawiki.org/wiki/Help:Templates > > On Tue, Jun 30, 2009 at 9:59 AM, Sarel Wessels (Agri >

Re: [Mediawiki-l] Extend linking syntax to include versions

2009-06-30 Thread Gregor Hagedorn
>> We need to assign digital object identifiers to specific versions >> (stable, flagged revisions) of an article page. To assign doi:10/xyz >> we want to create that object in a custom doi namespace and then >> redirect to a specific version of a page in the article namespace. >> However, we could

Re: [Mediawiki-l] Template

2009-06-30 Thread Michael Rosenthal
Simply go to "Template:Cattle breeds", create it and fill it with your content. You can now include that content with {{Cattle breeds}}. http://mediawiki.org/wiki/Help:Templates On Tue, Jun 30, 2009 at 9:59 AM, Sarel Wessels (Agri Wiki) wrote: > Hey, > > We created pages/articles for all the cattl

[Mediawiki-l] Template

2009-06-30 Thread Sarel Wessels (Agri Wiki)
Hey, We created pages/articles for all the cattle breeds available. Now we want to add a block on the right-hand side in the articles, at the top, with links to all the other cattle breeds. Its easy to create a block that floats and is displayed there. But the problem is that if you make a cha