Talk:Community Projects:WikiAdventure:Games:Test Game:Location02

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

Haven't been following the WikiAdventure really much, but right now you are storin multiple data things inside one XML tag. Are you sure you want to do that? It's not the way it should be done. Use attributes or a seperate tag instead.

btw, MediaWiki has the ability to make special-special pages... maybe there could be one for amkin XSLT transforms just for the WikiAdventure, transforming the data to a readable format.

Just my €0.02 :)

--Almar Joling 12:00, 15 Jul 2005 (EDT)----

Hey Almar, thanks for your input.
The content data isn't exactly XML data, although it looks very much like it. The tags are just there to contain different parts of data so that I know where the data block starts and ends.

Do you know more about how the special-special pages work? I've asked Ryan about this, but he didn't know how it could be done. Right now I'm reading the raw wiki data, and not the formatted HTML source, so you could just use plain XML or whatever there. It might not look right when displayed though.
But it just has to be easy to read, write and understand (even for non-programmers), so I think I'll just go with the solution I have now. I might need to clean up the syntax a bit, but I'll look into that.
Sion 13:29, 15 Jul 2005 (EDT)



Well, I made like two or three special pages myself for my Weathertoolkit thing. Checkout:

http://meta.wikimedia.org/wiki/Write_your_own_MediaWiki_extension

And also the "Related links".

There was an better explanation somewhere though.

Hm, this is better (completely at bottom)

http://wise-nano.org/w/Talk:Programming_notes

Search for something like: mediawiki "new SpecialPage("

There was a special way t ochange the title of the page, but I forgot how. You had to change the URL to use some different system namespace, which would allow you to edit it. But you do not need that first.


ps: here's a simple one, the type added to "specialpages.php" would be "sitedonatepage" I believe.:


<?php

 function wfspecialsitedonatepage()       
 {        
   global $wgUser, $wgOut, $wgContLang;; 
   $sk = $wgUser->getSkin();		
   $s = "content";
   $wgOut->addHTML( $s );  
 }        

?>

--Almar Joling 13:40, 15 Jul 2005 (EDT)


Wow, that is nothing short of fantastic!
There's endless possibilities for writing neat extensions for WikiAdventure with this feature, but unfortunetly the editing need to be done on the local files which I don't have access to, of course. I'll take a closer look at this, and if I find something that I must absolutely have, then I'll have to come crawling to Ryan and beg him to add it.
Thanks a lot for the information, it's definitely news to me!
Sion 14:30, 15 Jul 2005 (EDT)


You could always install PHP, mySQL and Apache locally. I couldn't live without. Runs flawless on Windows too :). I'm sure Ryan could help you out, though :)

--Almar Joling 17:51, 15 Jul 2005 (EDT)

Uh, yeah I could. It just seem a little bit intimidating. I really have no need to either PHP, mySQL or Apache outside testing out extensions with MediaWiki. Sion 18:20, 15 Jul 2005 (EDT)