#microformats 2014-08-15

2014-08-15 UTC
tantek, robmorrissey and gRegor` joined the channel
KevinMarks, KartikPrabhu, tantek, KevinMarks3, Soopaman, netweb, eschnou, pfefferle, KevinMarks_, krendil, barnabywalters, pfefferle_ and Garbee joined the channel
#
jonnybarnes
im trying to write an implementation of the authorship algorithm
#
jonnybarnes
and it fails on this
#
tantek
jonnybarnes: authorship is an #indiewebcamp algorithm
pfefferle, adactio, krendil, netweb, benward__, eschnou, TallTed, philipashlock, robmorrissey, Soopaman, robmorri_, gRegor`, trendynick_, tantek, encolpe, KartikPrabhu and barnabywalters joined the channel
robmorrissey, KartikPrabhu and Erkan_Yilmaz joined the channel
#
Erkan_Yilmaz
my experience:
#
Erkan_Yilmaz
adding mf worked, at least pin13 showed it
#
Erkan_Yilmaz
then I read about the backward compatibility:
#
Erkan_Yilmaz
http://waterpigs.co.uk/php-mf2/ shows it correct as json
#
Erkan_Yilmaz
but now pin13 shows only:
#
Erkan_Yilmaz
(no values)
#
Erkan_Yilmaz
"items": [ { "type": [ "h-card" ], "properties": { "name": [ "" ] } } ],
#
Erkan_Yilmaz
is adding it in a mediawiki page
#
Erkan_Yilmaz
interesting, when I add the mf-only-code and the mf2-code also there, pin13 shows the mf2-JSON
#
Erkan_Yilmaz
(so: separate, not mixed as in the backwards-compatible example)
#
aaronpk
pin13 parses using the backwards compatible method
#
aaronpk
and sorry, no option to toggle that yet
#
Erkan_Yilmaz
ok,
#
Erkan_Yilmaz
the hcard generator was nice for the mf
#
KartikPrabhu
Erkan_Yilmaz: aaronpk pin13 should work with both mf and mf2 markup existing simultaneously right?
#
aaronpk
pin13 parses both yes. it's basically got the checkbox on waterpigs permanently checked
elux joined the channel
#
KartikPrabhu
Erkan_Yilmaz: I am confused by your page: http://skilledtests.com/wiki/User:Erkan_Yilmaz why is the microformats section showing the HTML markup as content?
elux joined the channel
#
Erkan_Yilmaz
perhaps I did it wrong?
#
Erkan_Yilmaz
it's new territory for me
#
Erkan_Yilmaz
I was happy pin13 showed the JSON correct
#
Erkan_Yilmaz
let me see how I can make it invisible
#
aaronpk
oh yeah that's bad, it's cause mediawiki is escaping it, so it's not actually showing up to the parser
#
KartikPrabhu
Erkan_Yilmaz: you have to put the microformats stuff in the HTML not as wiki content
#
KartikPrabhu
aaronpk: exactly
tantek joined the channel
#
Erkan_Yilmaz
hm :-(
#
KartikPrabhu
Erkan_Yilmaz: also putting all microformats in an invisible section is not good anyway. You should use microformats to markup existing visible content
#
KartikPrabhu
not sure mediawiki syntax supports adding HTML markup directly unless you mess with their templates
#
Erkan_Yilmaz
perhaps I am just doing it wrong? reading (1) sounds like it should be possible somehow
tantek joined the channel
#
Erkan_Yilmaz
looks into his old history, I had some <div>-tags used there once
#
Erkan_Yilmaz
there <- in my signature
#
KartikPrabhu
Erkan_Yilmaz: yes. but all those things should go in the HTML (possibly through your template) and should not be escaped
#
Erkan_Yilmaz
I see, let me see if there's a html extenstion or so
tantek-ipod joined the channel
#
Erkan_Yilmaz
"Another potential usage of HTML Tags is to embed microdata (especially the kind that can't be embedded already using $wgAllowMicrodataAttributes)."
robmorrissey, gRegor` and Soopaman joined the channel
#
Erkan_Yilmaz
yay, I got it now working via templates
#
Erkan_Yilmaz
no plugin needed to be installed
#
Erkan_Yilmaz
let's see if I can turn them also into mf2
#
Erkan_Yilmaz
thx again KartikPrabhu aaronpk
#
KartikPrabhu
sure thing
#
Erkan_Yilmaz
but it's not really full microformats, now I just have: url fn (which is enough for me now)
philipashlock joined the channel
#
KartikPrabhu
Erkan_Yilmaz: the good thing about microformats is that you can add them bit by bit and it still works
#
Erkan_Yilmaz
:-)
#
Erkan_Yilmaz
I saw via pin13 that mediawiki seems to enable some other tag attributes in the JSON output by default also
#
KartikPrabhu
yeah it probably adds some rel stuff autmatically
#
Erkan_Yilmaz
yes, you're right. it's in the "rels"
#
Erkan_Yilmaz
I actually came from the webmention, pingback notifications to mf
#
Erkan_Yilmaz
I first got in contact with mf via MMN-o when he added it to GNU social (aka statusnet)
#
Erkan_Yilmaz
so, the mf2 format is definitely smaller than mf
#
Erkan_Yilmaz
but I wonder how I do now the <a> tag ;-)
#
Erkan_Yilmaz
so, changing the template to mf2 also seems to work: in this backward compatible style
#
KartikPrabhu
lol what! KevinMarks_ !
#
Erkan_Yilmaz
hm, not exactly, MW leaves out the u-url (it should be "u-url url")
#
Erkan_Yilmaz
but pin13 and php-mf2 show it correct
#
KartikPrabhu
they show it correctly because of the backwards compatible parsing. you don't need to put both the old syntax and new
#
Erkan_Yilmaz
ok, I was thinking of apps not yet supporting mf2
#
KartikPrabhu
what kind of apps are you thinking of that use microformats?
#
Erkan_Yilmaz
not updated ones :-)
#
KartikPrabhu
or even older syntax?
#
Erkan_Yilmaz
well, I was just thinking to be on the safe side, not that I know any parsers yet besides pin13 and php-mf2
tantek-ipod joined the channel
#
KartikPrabhu
Erkan_Yilmaz: No i mean, I don't think "apps" use microformat data at all yet
#
Erkan_Yilmaz
well, then they better should now that I enabled it
#
KartikPrabhu
Erkan_Yilmaz: which apps?
#
Erkan_Yilmaz
well, serach engines could use it
#
KartikPrabhu
yeah I guess search eingines are still parsing older syntax. I don't know if they do anything terribly useful with it other than some snippets
tantek-ipod, tantek_, robmorrissey and KartikPrabhu joined the channel