Which language to be used inside of the wiki?!?

Check out the Atari Forum Wiki

Moderators: Mug UK, Moderator Team

Postby rb » Wed Apr 25, 2007 8:09 pm

BASEPAGENAME occurs in two files:

MagicWord.php
Parser.php -> getBaseText should be present in Title.php

I don't think it has anything to do with config settings
User avatar
rb
Netatari Developer
Netatari Developer
 
Posts: 399
Joined: Tue Apr 15, 2003 1:06 pm
Location: London UK

Postby Silver Surfer » Wed Apr 25, 2007 8:18 pm

Yeah, I have given up on the config file now.

I also patched the Language.php file.

The French article now displays a link to the english article and in the english article, the english option isn't a link anymore. Atleast some progress. :)
User avatar
Silver Surfer
Forum Administrator
Forum Administrator
 
Posts: 1799
Joined: Mon Apr 22, 2002 6:50 pm
Location: Umeå, Sweden

Postby rb » Wed Apr 25, 2007 8:44 pm

The only other magic word used in these two templates is NAMESPACE.
Are you sure you have this already available?

"English" is hardcoded as it is, and does not use the transcluded template, so that's why you see it.

BASEPAGENAME seems to be working now...

The only other thing I can think of is that there is an issue with transclions of templates in templates.
User avatar
rb
Netatari Developer
Netatari Developer
 
Posts: 399
Joined: Tue Apr 15, 2003 1:06 pm
Location: London UK

Postby Silver Surfer » Thu Apr 26, 2007 2:46 pm

Yes, NAMESPACE was introduced in in MW 1.6.x, I did however find out after pouring through MW SVN commits that #language was introduced in 1.7. So I got that into the code.

However that also broke some parser functions such #if and so on but if you look at http://www.atari-forum.com/wiki/index.p ... ter_manual I think you will see that the #language is now working. :)
User avatar
Silver Surfer
Forum Administrator
Forum Administrator
 
Posts: 1799
Joined: Mon Apr 22, 2002 6:50 pm
Location: Umeå, Sweden

Postby Desty » Thu Apr 26, 2007 2:56 pm

Nice! Just needs that #ifexist to be handled properly then. Good stuff :)
tá'n poc ar buile!
User avatar
Desty
Atari God
Atari God
 
Posts: 1935
Joined: Thu Apr 01, 2004 2:36 pm
Location: 53 21N 6 18W

Postby Silver Surfer » Fri Apr 27, 2007 2:32 pm

Alright, feels like I've tried just about everything and still I am not getting it to work.

When I have the parserfunctions #if & #ifexist disabled it looks like the other magicwords are parsed correctly though it is hard for me to be sure as I am not really familiar enough with the wiki syntax and how they should work.

When I enable the above mentioned parserfunction we only see the English option. So that leaves me wondering if #if & #ifexist is really evaluated correctly.

Another thing that strikes me is, if this is really even working on a 1.7 wiki. It would seem that MediaWiki.org started their template in december 2006 so it is possible I guess that this is actually something for 1.8 & above.

I am pretty much out ideas, if anyone has any idea I am interested to know about it.

Hopefully php 5 isn't that far away and thus Wiki 1.10.
User avatar
Silver Surfer
Forum Administrator
Forum Administrator
 
Posts: 1799
Joined: Mon Apr 22, 2002 6:50 pm
Location: Umeå, Sweden

Previous

Return to Wiki Discussions

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests