Yury Katkov wrote:
> Hi!
>
> Are you sure about the syntax here? Those {{{Parameters}}} surrounded by
> curly braces will conflict with template parameters, won't they?
>
Yes, they will: if you have a template parameter with the same name as a
subobject field, you will lose access to the template parameter within the
subobject's display field. It's a problem; but IMHO it's a minor problem,
in that the primary purpose of the subobject's display field is to display
the subobject's contents.
You *could* avoid the problem by using some other delimiter for the
subobject fields; but the reason why I suggested triple-curlies is precisely
*because* that's what template parameters use: anyone familiar with wiki
syntax will have no problem intuiting their meaning.
How about this: use {{{# ... }}} as the delimiters for "inline template
parameters". So:
{{#subobject:name
| given=Ranma
| family=Saotome
| {{{#family}}} {{{#given}}}
}}
The triple curlies indicate that you'll be substituting a value here, and
the hash marks indicate that the value will come from within the subobject.
Mind you, the "default format" supplied by the property page would still use
regular template parameter syntax; the {{{# ... }}} syntax would be for the
concept of the "inline template" only.
I could also see this concept of inline templates being used with #ask to
provide on-the-fly formatting for search results.
--
Jonathan "Dataweaver" Lang
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel