If the idea is to create an attribute or relation for every element in
a comma-separated list, I actually created some code to do that, for
my extension, Semantic Forms. The solution involves a new string
function, "#map", that's meant to be added on to the current String
Functions extension.

You can see the explanation, and the new code, here; scroll down to
"Multiple values for the same field / The easier way" (it's near the
end):

http://discoursedb.org/SemanticForms/

Actually, you might want to look into using Semantic Forms itself on
your wiki; it's meant to  provide a nice, user-friendly interface for
adding and editing semantic data.

-Yaron


On 7/11/07, Thierry Kennes <[EMAIL PROTECTED]> wrote:
>
> Hello Peter,
> Thanks a lot for that idea, i haven't thought of this yet. It is a good one.
> Sorry for being fussy like that. Do you think there is way to do something
> like that :
>
> {{Blabla|
>    title=Name (ie: Flickr)|
>    mainurl= The main URL (without "http://";)|
>    format= audio, video, image|
>    notes= notes you'd like to write.
>   }}
>
> Just by using a comma to separate all different fields ?
> Thank you.
>
>
> Peter B Clements wrote:
> >
> > Hello Thierry,
> >
> > On Tuesday, July 10, 2007, 11:17:47 PM, you wrote:
> >
> > TK> Hi,
> > TK> Thanks for your reply. I actually made this template (copied from
> > somewhere
> > TK> i don't remember) :
> >
> > Instead of "format=" use "format1=", "format2=" etc:
> >
> > {{Blabla|
> >    title=Name (ie: Flickr)|
> >    mainurl= The main URL (without "http://";)|
> >    format1= audio|
> >    format2= video|
> >    format3= image|
> >    notes= notes you'd like to write.
> >   }}
> >
> > Then in your template you can use:
> >
> > {{#if:{{{format1|}}}|{{Tablerow
> > |Label=* Formats:
> > |value=[[format::{{{format1}}}]]{{#if:{{{format2|}}}|,
> > [[format::{{{format2}}}]]}}{{#if:{{{format3|}}}|,
> > [[format::{{{format3}}}]]}}{{#if:{{{format4|}}}|,
> > [[format::{{{format4}}}]]}}{{#if:{{{format5|}}}|,
> > [[format::{{{format5}}}]]}}
> > }}
> >
> >
> > --
> > Best regards,
> >  Peter
> >
> >
> > -------------------------------------------------------------------------
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/SMW---Template-tf4058576.html#a11544329
> Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to