From: Yury K. <kat...@gm...> - 2011-11-12 20:59:22
|
Hi, Leonard Wallentin ! I've read the description of an extesnion in MW.org and I think the idea is just awesome! I will install it tomorrow for sure but before that can you tell me where can I see the result of an extension on your page http://säsongsmat.nu/ssm/Plommon ? The only hypothesis I have that the picture below När är purjolök i säsong? is generated by your extesnion, am I right? Sincerely yours, Yury V. Katkov WikiVote! llc On Fri, Nov 11, 2011 at 6:41 PM, Leonard Wallentin <leo...@ho...> wrote: > > Hello, I just wrote a first version of an extension that might be of use to someone else: Semantic SVG Printer (http://www.mediawiki.org/wiki/Extension:SemanticSVGPrinter) attempts to create a SVG image representing the a SMW query result. > I'm not a programmer, so this code could probably be improved a lot. Feel free to modify it, if you want, but please share. Also note that this extension might very well contain examples of very bad or dangerous coding practices, that I'm not aware of. And very likely lots of bugs. Be warned. Also, as this result printer will create new files for each new query, try your queries carefully before using it in a template. > Here is an SVG actually created by the extension: http://xn--ssongsmat-v2a.nu/ssm/Fil:Production,_Plums_and_sloes,_2009.svg > The actual query looked like this:{{#ask:[[ <snip> ]]|?Land=Land|?Produktion=006600|mainlabel=-|format=svg|limit=800|svgtemplate=BlankMap-World6,_compact.svg|svgname=Production, Plums_and_sloes, 2009.svg|svgimagedescription=}} > You can find the extension here: http://www.mediawiki.org/wiki/Extension:SemanticSVGPrinter > Leonard Wallentin > leo...@ho... > +46 (0)735-933 543http://säsongsmat.nu > > http://nairobikoll.se/ > http://twitter.com/leo_wallentin > Skype: leo_wallentin > > -----BEGIN PGP PUBLIC KEY BLOCK----- > Version: GnuPG v1.4.10 (GNU/Linux) > > mQENBE1JuiUBCADsAnoxo1o3G2Apkjs8NHSfbN4g/H8HbS4XXfjruZ6Afu6PBMJI > CoiopKmTzQojjUZEjM2i4QsynU2xX4PmpMloPCOXEWxQg7q6HgHKyBU9NroL+17T > WA/30jGTmi2pkuznX1LpYKz0r8oSUsrg9oIeJmSbPRP6bNjwlgaDzarfYjcfEFXu > Y0s8KdVT1M8Zw2Sq7QuYPa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Id04pE9qgKZCGHvqYYxWuksgDj9BFCm+vMfW+e45bX4nd2bxkZecMCVvAOQrsB > yKnk7g4BFI6YxYluCt5ouaRPcB73ztk+08z9j0GvlCo3IAp06neoC/IH1XhUvkts > bXBzxQt7zO7Gic54U516Qzsr4iD6MQsBkGoaSKtLtk4v8xFMgDWIl1ODy70qabES > 7+5IJn0vnh9DWJqkosofRMcqYoblwvf7orDuSgr76wokaTKCCsNEOt7TTbO8XVyQ > r3wzIiopALjOj/2N9kxaHg9MQOfERV6prfZmkxPP69ptlCnJVZL7vwTO/0E= > =KIpq > -----END PGP PUBLIC KEY BLOCK----- > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |