Max Voelkel wrote:
2.
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}}
The extension can hold a table of default units and labels, in case they
are omitted:
{{attribute|rain|234| | }} uses "unit=days/year" and "label=rains on
VALUE UNIT", because of key "rain".
An extension could also extract the attribute list and display it in the
sidebar, like language links, instead or in addition to displaying them
inline.
Instead of the special link syntax, a similar extension called by
{{linkto|target|type|label}} could be used.
Magnus