On Fri, 18 Mar 2005, Delirium wrote:
Neil Harris wrote:
At the risk of repeating myself, it would be
really neat if we could
write something like
[[attribute = value]]
in articles, since we could then use it to generate all sorts of good
stuff, including automatic rendering of navigation tables in the UI,
structured search, and autogeneration of RDF for semantic search engines.
Not to mention that this data can be reused. For example, there are all
sorts of attributes on the Wikiproject Mountains pages. If I could
specify "height=1377 meters" somewhere, then it could *both* be used to
generate the infobox, *and* used to sort mountains by height and
whatnot.
Maybe we can leverage the existing templates for this? Say we have a
[[Template:Mountain]] with parameters such as height and geographical
position and others. The wikicode would look like:
{{Mountain|name=Foo|height=1337|lat=+13� 33'|lon=233� 21'}}
I would assume such a template already exists. Then each page that uses
the template has automatic attributes of the form "Mountain_height=1377",
"Mountain_name=Foo", etc. When one searches for "mountain", look up if
a
suitable template exists. Now you can offer a list of mountain by height,
position and so on.
Alfio