Thanks!

 

I've added the line to my LocalSettings.php, but I'm still not getting the result I want.  The semantic annotations are going unprocessed.

 

Here's what I've done.  I've got a page for the property "is setting for" (here), with some notes on usage and Has type::page.  I've got a template callout at the bottom of an article describing the setting (here).  The template page (here) is named with the same name as the inverse property it's meant to create, just to keep things straight.  It uses a semantic search to find articles with the primary property, "takes place in" (here), formatted to put the results into template form.  The template it calls is a subpage of the main template (here), which contains a semantic annotation and empty-piped link:

 

[[is setting for::{{{1}}}| ]]

 

Everything works except that the semantic property isn't added to the setting article's page.  During testing I eliminated the empty pipe format, and the template found the correct articles and placed them into my setting's page.  But there are no properties. :(

 

Can anyone give me some further advice?

 

Thanks again,

 

Wes

 

 

 

From: Mike Cariaso [mailto:cariaso@gmail.com]
Sent: Tuesday, September 23, 2008 8:29 AM
To: Wes Curtis
Subject: Re: [Semediawiki-user] Semantic templates

 

add $smwgEnableTemplateSupport = true; to your LocalSettings.php

On Tue, Sep 23, 2008 at 7:54 AM, Wes Curtis <stormraven@swbell.net> wrote:

I want to use a template to do a semantic search for pages that have the template's page as the object of a certain property, then automatically create the inverse relationship by transcluding semantic annotations.  But according to this help page – http://semantic-mediawiki.org/wiki/Help:Semantic_templates – "Support for using annotations in templates has to be enabled by the site administrator."  I don't see anywhere in the documentation what the site administrator (which I am) has to do to enable annotations in templates.  Yet it appears that my wiki isn't using the ones in my template.  Can someone help me out, please?

 

Thanks,

 

Wes