Creating new content (tables) through other tables
From semantic-mediawiki.org
Fragment of a discussion from Semantic MediaWiki Community Portal
> What exactly does [[Actor::{{{Actor|+}}}]]</code> do?
This is the
WHERE
clause of the query.
My example assumes that the
{{{#ask:…}}
statement is used on the template called, say Template:Actor's roles
, which receives Actor
as an argument: {{Actor's roles|Actor=John Smith}}
.
If
Actor
is not given ({{Actor's roles}}
), +
will be used to choose all role subobjects where Actor property is set.
Another possible solution is to use the page title as the default value for
Actor
argument: [[Actor::{{{Actor|{{FULLPAGENAME}}}}}]]
. In this case the template call on a page about an actor will look simply like this: {{Actor's roles}}
.