On 01/11/11 14:11, Jonathan Lang wrote:
> Markus Krötzsch wrote:
>
>> Ok, fair point. The explanation should then include that SMW is conceived as 
>> a data management extension, but tries to keep small on data 
>> formatting/visualisation. So the real reason is the overall project goal.
>
> Fair enough.  That said, it's a data management extension to an application 
> that is centered on human readability, which means that data 
> formatting/visualization carries a higher priority than it would for a 
> strictly data management application.  That said:
>
>> But with the new functions in place, it is easy to make many #subobject-like 
>> parser functions with all kinds of extra features. The file implementing 
>> #subobject is hardly a 100 lines and most of it could be re-used for 
>> building modified versions of it.
>
> This is a very true point.  Then again, creating a spinoff of #subobject 
> strictly to add an optional visualization feature to it feels a little 
> awkward.  Still, it would be a good learning experience.

It does not have to be a spinoff. I am happy to include contributed code 
into SMW as long as there are some maintainers for it.

>
> Could we at least get a positional parameter for #subobject that simply 
> replaces the data?  No "inline template parameters" or anything fancy; just a 
> straight "display this wiki code instead of what you'd normally show":
>
> {{#subobject name
>    | personal=Jonathan
>    | nickname=Jon
>    | family=Lang
>    | title=Mr.
>    | Jon Lang
> }}
>
> It's not as versatile as I'd like; but at least it lets the page author 
> seamlessly integrate the machine-readable data into the human-readable text 
> of the page without having to create a (single-use) template page to format 
> it the way he wants.

I understand, but #subobject calls do not return anything anyway. So you 
can simply write

Jon Lang{{#subobject name|personal=Jonathan|nickname=Jon|family=Lang}}

if you like. I don't see a real advantage of piping this string through 
the parser function.

Markus


------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to