you may use {{#arraymap:{{{inventory|}}}|,|x|[[Inventory::x| ]]| |}}

On Thu, Jul 17, 2008 at 6:44 PM, Daniel Werner <DanWeEtz@web.de> wrote:
Hi,

I use Semantic MediaWiki(SMW) 1.2 and already made some semantic templates
for my wiki-page to use them in articles.
Usage example:

{{NPC
|name=Ben
|age=22
|inventory=apple
|trade-inventory=
}}

In the proper template code I allocate inventory to a SMW Property called
"Inventory". The problem is, that in most cases there should be more than
one property-value assign to "inventory" like "apple" AND "banana" AND
"crossbow" and so on...
I know that this is possible with assign each of this values separate to the
property  "Inventory" like this: "[[Inventory::apple]] [[Inventory::banana]]
[[Inventory::crossbow]]" and so on... The problem is, I  cant use this way
in my template because I can`t know how much values I will get in the
template-code. So this must be a very dynamic and complicated template and I
think that's not the signification of SMW.
I found no way to assign all three propertie-values in one step, for example
something like "[[Inventory::apple,banana,crossbow]]".
So, is there any way to handle this?

Thanks a lot!
Daniel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user



--
Respectfully yours, Eugene Mednikov

Contacts:
phone: +972-54-4520187
email: eugene@mednikov.info
icq: 2014511
skype: eugenem79
msn messenger: eugenem79@gmail.com
livejournal: http://eugenem.livejournal.com
linkedin: http://www.linkedin.com/in/eugenem79
odnoklassniki: http://www.odnoklassniki.ru/user/334468507