Hi there,
Two quick questions. I just created a new Wiki special page, setup the group extension files and all. The first issue I'm noticing is that on the extension page the name of the page is displaying as <bibliography> . I can't figure out why, because all the config files have the proper naming...
The second question I have is...I need to write a script that iterates through all articles (or better yet articles attached to a specific category), sort through them, extract specific info and render it on my bibliography page. I can do the last part but I'm having trouble looking through the class list and supported hooks that will allow me to retrieve a list of articles. Does someone have code that does this already or can point me in the correct direction?
Thanks!
Dave
On Sun, Mar 15, 2009 at 2:27 AM, David Di Biase dave.dibiase@gmail.com wrote:
Two quick questions. I just created a new Wiki special page, setup the group extension files and all. The first issue I'm noticing is that on the extension page the name of the page is displaying as <bibliography> .
Try creating the [[MediaWiki:Bibliography]] on your wiki with the name of the page (you'll need to be logged in as an admin).
Angela
Sorry, I'm slightly confused. Could you explain why I would be doing that? Also where the heck in the documentation does it say this? lol.
Thanks for the response.
Dave
On Sat, Mar 14, 2009 at 1:59 PM, Angela beesley@gmail.com wrote:
On Sun, Mar 15, 2009 at 2:27 AM, David Di Biase dave.dibiase@gmail.com wrote:
Two quick questions. I just created a new Wiki special page, setup the
group
extension files and all. The first issue I'm noticing is that on the extension page the name of the page is displaying as <bibliography>
.
Try creating the [[MediaWiki:Bibliography]] on your wiki with the name of the page (you'll need to be logged in as an admin).
Angela
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hi Dave
You should put this line in execute function in the main class of your special page (i.e. class <SpecialPage> extends SpecialPage)
wfLoadExtensionMessages('<Your Special Page>');
Also you should add message with your special page name in lowercase i think ('yourspecialpage' => 'The Desired Name',)
And don't forget to load the messages file with
$wgExtensionMessagesFiles['<SpecialPageName>'] = $dir .'Special<PageName>.i18n.php';
Ahmad On Sat, Mar 14, 2009 at 8:20 PM, David Di Biase dave.dibiase@gmail.comwrote:
Sorry, I'm slightly confused. Could you explain why I would be doing that? Also where the heck in the documentation does it say this? lol.
Thanks for the response.
Dave
On Sat, Mar 14, 2009 at 1:59 PM, Angela beesley@gmail.com wrote:
On Sun, Mar 15, 2009 at 2:27 AM, David Di Biase dave.dibiase@gmail.com wrote:
Two quick questions. I just created a new Wiki special page, setup the
group
extension files and all. The first issue I'm noticing is that on the extension page the name of the page is displaying as
<bibliography>
.
Try creating the [[MediaWiki:Bibliography]] on your wiki with the name of the page (you'll need to be logged in as an admin).
Angela
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hi Ahmad,
I actually copied the four sample files and just replaced a reference they used with my extension name :-) so I believe I've got everything you mentioned. I've attached two for your viewing just in case I AM doing something incorrect.
Thanks,
Dave
On Sat, Mar 14, 2009 at 2:49 PM, Ahmad Sherif ahmad.m.sherif@gmail.comwrote:
Hi Dave
You should put this line in execute function in the main class of your special page (i.e. class <SpecialPage> extends SpecialPage)
wfLoadExtensionMessages('<Your Special Page>');
Also you should add message with your special page name in lowercase i think ('yourspecialpage' => 'The Desired Name',)
And don't forget to load the messages file with
$wgExtensionMessagesFiles['<SpecialPageName>'] = $dir .'Special<PageName>.i18n.php';
Ahmad On Sat, Mar 14, 2009 at 8:20 PM, David Di Biase <dave.dibiase@gmail.com
wrote:
Sorry, I'm slightly confused. Could you explain why I would be doing
that?
Also where the heck in the documentation does it say this? lol.
Thanks for the response.
Dave
On Sat, Mar 14, 2009 at 1:59 PM, Angela beesley@gmail.com wrote:
On Sun, Mar 15, 2009 at 2:27 AM, David Di Biase <
dave.dibiase@gmail.com>
wrote:
Two quick questions. I just created a new Wiki special page, setup
the
group
extension files and all. The first issue I'm noticing is that on the extension page the name of the page is displaying as
<bibliography>
.
Try creating the [[MediaWiki:Bibliography]] on your wiki with the name of the page (you'll need to be logged in as an admin).
Angela
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Ahmad Sherif wrote:
Hi Dave
You should put this line in execute function in the main class of your special page (i.e. class <SpecialPage> extends SpecialPage)
wfLoadExtensionMessages('<Your Special Page>');
Also you should add message with your special page name in lowercase i think ('yourspecialpage' => 'The Desired Name',)
And don't forget to load the messages file with
$wgExtensionMessagesFiles['<SpecialPageName>'] = $dir .'Special<PageName>.i18n.php';
This is going off on a tangent a bit, but this isn't the first time that our system for loading extension messages has struck me as awkward. We already have extensions specify the location of their message files via $wgExtensionMessagesFiles, but currently there's no way for MediaWiki to know what messages are in each file without loading them.
Does anyone see a reason why we shouldn't make (okay, allow and strongly recommend) extensions list the names of the messages they define? That way the message loading code could just automatically pull in the right message files as needed. I'm envisioning something like:
$wgExtensionMessagesFiles['MyExtension'] = "$dir/MyExtension.i18n.php"; $wgExtensionMessages['MyExtension'] = array( 'myextension-desc', 'myextension-something', 'myextension-other', 'myextension-whatever', );
I believe this would also allow us to fix several longstanding bugs, such as the fact that links to the MediaWiki: pages of extension messages currently appear as redlinks unless the message just happens to have been loaded.
wikitech-l@lists.wikimedia.org