On Tuesday 07 November 2006 22:11, tamara.matevc wrote: > How to make a list of actors, sort by zodiak? To get, for example, > everybody who is born in Aries, then in Taurus etc? But I don't want to > make the mark about the zodiak in an article about the actor or I don't > want that this mark can be seen. > > Aries ♈ 21.3 - 19.4. > Taurus ♉ 20. 4 - 20.5. > Gemini ♊ 21. 5 - 20.6. > Cancer ♋ 21.6- 22.7 > Leo ♌ 23.7. - 22.8 > Virgo ♍ 23.8 - 22.9. > Libra ♎ 23.9 - 22.10 > Scorpio ♏ 23.10 - 21.11 > Sagittarius ♐ 22.11 - 21.12. > Capricornus ♑ 22.12 - 19.1. > Aquarius ♒ 20.1.- 18.2 > Pisces ♓ 19.2 - 20.3.
As S already pointed out, you could only order alphabetically if you use an attribute that directly tells the zodiac. However, following the description in my prior mail, you could make auxilliary attributes exclusively for sorting. You could then have a template that inserts the right sort key if given a zodiac (using the #switch feature of the ParserFunction extension), or you just have one template for each zodiac. Since the sort attribute still appears in the Factbox, it should have a readable value, e.g. "1 Aries", "2 Taurus", "3 Gemini", ..., that still sorts correctly when sorted alphabetically. If you (almost) completely want to hide this in the article, you can give it an empty alternative text. E.g. you can write [[sorted zodiac:=2 Taurus| ]] and all that appears in the article is a space. I do not generally recommend this, since it is a possible source of data inconsitency: if someone corrects a birthdate, he might forget to change the (hidden) zodiac accordingly. This specific issue is quite complex, since one usually separates dates into a yearly repeating date and the year. This is hard to tackle, and efforts like FOAF have their problems with annotating birthdays as well. Best regards, Markus > ----- Original Message ----- > From: tamara.matevc > To: [email protected] > Sent: Tuesday, November 07, 2006 9:31 AM > Subject: inline queries > > > ==How to sort by second name== > http://ontoworld.org/wiki/Help_talk:Inline_queries > > Hello, I am quite new in this beautiful field od semantic wiki. Does > anybody know how to sort by second name, not by first name? In our wiki we > are writing like <nowiki>[[Category:Artist|Second name, name]]</nowiki> and > when I am writing an inline queries, I would like to have it also in this > way. > > So insted of: > > <ask>[[Category:Actor]][[born in::*]]</ask> > > I would like to get this: > > ;Andy Anderson > ;Matthijs van de Sande Bakhuyzen > ;Jim Bakkum > ;Benny Benson > ;Amanda Bynes > ;Nicolas Cage > ;Charly Checker > ;Sacha Baron Cohen > ;Melody Klaver > ;Gregory Peck > ;Channing Tatum > > Or should I ask this somewhere else? -- Markus Krötzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe [EMAIL PROTECTED] phone +49 (0)721 608 7362 www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717
pgpm8iMc0J3zD.pgp
Description: PGP signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Semediawiki-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-user
