[uf-discuss] Geo deployed on Wikipedia.

Costello, Roger L. costello at mitre.org
Mon Apr 2 10:29:02 PDT 2007


Hi Folks,

Would you help me understand how the geo Microformat gets automatically
injected into a Wikipedia page?

I took a look at one of the Wikipedia articles that Andy referenced:

        <http://en.wikipedia.org/wiki/Belfast>

The geo Microformat occurs at this point in the article:

... Belfast is situated at 54°34′0″ N 5°56′20″ W (54.5833333333,
-5.93888888889). A consequence of this latitude is ...

Note: The degrees-minutes-seconds lat/lon is a hotlink.

Here's how it appears in edit mode (i.e., here's the Wikipedia markup):

... Belfast is situated at {{coor dms|54|35|0|N|05|56|20|W|}}. A
consequence of this latitude is ...

Here's the HTML (i.e., here's what View Page Source of the article
gives):

... Belfast is situated at 
    <span class="plainlinksneverexpand">
        <a href="http://...?params=54.5833333333_N_5.93888888889_W_" 
             class="external text"   
             title="http://...?params=54.5833333333_N_5.93888888889_W_"

             rel="nofollow">
             <span title="Maps, ... data for 54°34′0″ N 5°56′20″
W">
                 <span style="white-space:nowrap">54°34′0″ N</span> 
                 <span style="white-space:nowrap">5°56′20″ W</span> 
                 <span class="geo" style="display:none">
                     (<span class="latitude">54.583333</span>, 
                      <span class="longitude">5.9388888</span>)   
                 </span>
             </span>
         </a>
    </span>.  A consequence of this latitude is ...

Note the use of two Microformats: rel-nofollow and geo. 

As I look at the above, I guess that: 

- {{coor dms|xx|xx|xx|...|xx|}} is the Wikipedia symbology for "invoke
the coor template, the coordinate is specified using
degees-minutes-seconds as follows: xx xx xx ..." 

- what Andy and Quarl did was to modify the coor template to inject the
geo Microformat

Is this a correct guess of how it works?

Is there an "adr template" in Wikipedia, so that the adr Microformat
can be automatically injected into Wikipedia pages?

Is there a way to create new templates?  Can we create a template for
hcard, vevent, and so forth?

Once again, great job Andy!

/Roger

-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
Andy Mabbett
Sent: Monday, April 02, 2007 9:15 AM
To: Microformats Discuss
Subject: Re: [uf-discuss] Geo deployed on Wikipedia.

In message <DrdaDHpcsODGFwYf at pigsonthewing.org.uk>, Andy Mabbett
<andy at pigsonthewing.org.uk> writes

>I've just added:
>
>
<http://en.wikipedia.org/w/index.php?title=Template%3AGeoTemplate&diff=
119003866&oldid=118216477>
>
>Geo to Wikipedia's GeoTemplate:

>Work to add Geo to the individual articles is ongoing.

The later is now done - every singe Wikipedia article which publishes
coordinates (and that includes, cities, neighbourhoods, transport
stations, hotels, hospitals, mountains, museums, etc. etc.) using a
template (and there are many thousands) now includes Geo ;-)

Templates which use titles in the coordinate template will be attended
to shortly.

I'm indebted to Wikipedia user "Quarl" for working with me on the
implementation.


Examples (showing a variety of formats and uses):

        <http://en.wikipedia.org/wiki/Great_Barr>

        <http://en.wikipedia.org/wiki/Hamstead_railway_station>

        <http://en.wikipedia.org/wiki/Belfast>

In a related project, I and others are working to add coordinates to
all
the articles, about places, which don't yet have them.

-- 
Andy Mabbett
            *  Say "NO!" to compulsory ID Cards:
<http://www.no2id.net/>
            *  Free Our Data:  <http://www.freeourdata.org.uk>
            *  Are you using Microformats, yet:
<http://microformats.org/> ?
_______________________________________________
microformats-discuss mailing list
microformats-discuss at microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss



More information about the microformats-discuss mailing list