[uf-discuss] ninentdo mario kart DS microformat

Charles Iliya Krempeaux supercanadian at gmail.com
Sat Dec 3 17:02:18 PST 2005


Hello,

On 12/3/05, Mr Michael Wiechers <whoisstan at yahoo.com> wrote:
> Hey!
>
>  I like microformats. I had a microformat idea and wanted to run that by you
> to see if that this makes sense. I play Mario Kart on my Nintendo DS a lot,
> it allows you to play online with your friends. A friend is added to the
> system by entering a code, every person has a code.
>
>  Right now I just have the code on my personal website:
>  http://www.merkwelt.com/people/stan/   (first thing under
> whoisstan)
>
>  So I was thinking of replacing:
>  <li> <img.../>390901938389</li>
>
>  with
>
>  <li><img .../><span
> class="marioKartDS">390901938389</span></li>
>
>  Does that make sense, so I stumble over a personal website with that code I
> could have a bunch of games with that person. What I'm not clear on is how
> an application/robot could make sense of that?

Well, an application or robot could scan the page for tags/elements
that have the class "marioKartDS".  When it does, it then checks to
see if that element has a "title" attribute... if it does, it uses
that... if not, it uses the innerHTML.  Make sense?!  Here's some
JavaScript pseudo code:

    var elements = document.getElementsByClassName("marioKartDS");

    if ( elements && elements.length  ) {
        // We found some marioKartDS Microformats!

        for (var i=elements.length-1; i>-1; i--) {
            var code = elements[i].getAttribute("title");
            if ( ! code ) {
                code = elements[i].innerHTML;
            }

            // #### TODO #### Do something with the code you found. 
(Let's play :-)  )
        }
    }

Does that help?


> Say I would be using the
> geocode microformat as well and the "cuisine" microformat I would be able to
> find people that like vietnamese cuisine, live in new york and have a mario
> kart DS. Which kind of application do the aggregation and would allow me to
> run a query like that?

There may not be one that exists yet.  You could write your own (if
you are a software engineer).  You could make a webcrawler.  Or you
could make a user script (using greasemonkey).  Etc.

Also, various people on this lists are probably working on stuff like
this.  (So it may be just a matter of waiting a little while.)


See ya

--
    Charles Iliya Krempeaux, B.Sc.

    charles @ reptile.ca
    supercanadian @ gmail.com

    developer weblog: http://ChangeLog.ca/
___________________________________________________________________________
 Never forget where you came from


More information about the microformats-discuss mailing list