On 11/20/05, Magnus Manske magnus.manske@web.de wrote:
Max Voelkel wrote:
Syntax. We had to extend the syntax slightly to enable annotations of links and data values. Currently we settled down to use
[[link type::link target|optional alternate label]] Sample, on page "London": ... is in [[located in::England]] ... Renders as: ... is in England .... (England = Linked)
for relations, and for attributes.
[[attribute type:=data value with unit|optional alternate label]] Sample, on page "London": ... rains on [[rain:=234 days/year]] .... Renders as .... rains on 234 days/year (nothing linked)
Why not make a nice extension, and wrap it in templates?
<semantic_attribute> key=rain value=234 unit=days/year label=sometext </semantic_attribute>
which can be generated by
{{attribute|rain|234|days/year|sometext}}
In the current parser that would not be possible, you can't pass template arguments to extensions. Also, if it's inline it's likelier to get updated.