From: S P. <ski...@ea...> - 2007-03-07 09:09:15
|
Mben wrote: > I am sorry to disturb you again, "Aucun s'inquiète, compagnon" > but I have a problem with SW whom I do > not manage to resolve. > The Attributes do not work: for example, if I bring in > [[population:=45]], I have: [Oops! No. type defined for attribute] > (http://mben.fr/wiki/index.php?Title=Test). As Yaron Koren said in an earlier reply, unlike relations, you have to give attributes a type before you can use them. In the case of your test page it is currently using a template that assigns a value to the Courriel attribute. I guessed "Courriel" is some kind of e-mail address for which we have a built-in type, so I created the page [[Attribut:Courriel]] and put [[A le type::Adresse électronique]] in it. As you can see it all needs localization. For Attribut:Population it would be [[A le type::Nombre entier]] The pages Special:Types, Special:Attributes, and Special:Relations are your friends in keeping track of this stuff. BTW, Type:Email/Adresse électronique currently has some bugs in how it displays in search results. à bientôt, -- =S Page |