Silencium Sixty-Eight wrote:

> 1) I've defined an attribute 'Social Security Number' as  
> 'Integer' (has type::Type:Integer)

* Is the title of the page [[Attribute:Social Security Number]] ?
You can create a regular page and give it the special property Has Type 
and SMW will *NOT* warn you
        Hey, usually only pages in the Attribute namespace
        should have the "has type" special property!?!!
However, if this is your problem it doesn't explain #7.

* You're in Germany, if your Wiki is in German then you need to use the 
German translations, I think
        [[Hat Datentyp::Datentyp:Ganze Zahl]]
The FAQ section of latest INSTALL mentions this.

* Maybe your PHP installation can't handle an integer as big as 
4,711,081,516.  But you should get an error if it overflows.  Compare 
with the tests in http://ontoworld.org/wiki/Type:Integer

* Perhaps somehow you have a special character or extra whitespace 
somewhere?

> 2) then I'm using this attribute in one of my templates (Social  
> Security Number:={{{Social Security Number|}}})

Simplify the test case.  Just put [[Social Security Number:=4711081516]] 
on a page.

> 
> 3) but when using this template ({{Template Name | Social Security  
> Number=4711081516}})
> 
> 4) I get an '[Oops! No type defined for attribute]' error.

To the left of this error should be "Social Security Number" , and when 
you click it you should go to the [[Attribute:Social Security Number]] 
page with the special property.

> 5) When viewing the attribute page for 'Social Security Number', it  
> says it's of type integer, and the facts box reports 'Has type' -  
> 'Type:Integer'

Is the page title "Attribute:Social Security Number" ?

> 6) On 'Special Pages' - 'Attributes' my previously defined 'Social  
> Security Number'-attribute doesn't appear

Special:Attributes queries the smw_attributes table which records each 
*successful use* of an attribute in subject-attribute-value.  If no page 
uses your attribute or the pages trying to use it have "Oops" in the 
factbox, then nothing is stored in this table and so your attribute 
won't be listed.  Try Special:UnusedAttributes instead.

> 7) On 'Special Pages' - 'All Pages' - 'Namespace = Attribute' it can  
> be found
> 
> 8) Deleting the attribute page and re-creating it didn't change anything
> 
> 9) Other attributes with an even longer name and even more blanks  
> within are working fine
> 
> Any ideas what I've done wrong and how to fix this?

Putting everything together... no :-)

--
=S Page

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to