Markus Krötzsch wrote:
SystemSettings:
------------------------------------
* [[Company_name::<name>]]
* [[Founded_in::<year>]]
* etc.
[[Category:SystemSettings]]
------------------------------------
Now, from another page I'd like to retrieve and display the
value of the property SystemSettings->Company_name, using a
template for formatting, like so (somehow asking for the
value, I don't know how though...):
------------------------------------
{{get property value|companyname=
{{#ask: ...<single settings page> and its
property <company name?>...
}}
}}
{{#ask: [[Some page name]] | ?Company name }}
will do the trick. This should be documented at
semantic-mediawiki.org, but I
am happy about hints on improving the docu.
(
http://semantic-mediawiki.org/wiki/Help:User_manual is down again...)
Well, this does not really do the trick. For some reason this query
returns both the value AND a link to the property Type (!). The
following example:
{{#ask: [[SystemSettings]] | ?Quality standard }}
... returns this parsed HTML:
<a href="/wiki/Property:Quality_standard" title="Property:Quality
standard">Quality standard</a> BRC
But, what I want is only the value, which in this case is simply the
text "BRC" and nothing more.
Since the server
http://semantic-mediawiki.org with the page
Help:User_manual is down again, I can't read the documentation for
further details about any parameters or whatever which possibly could
make the answer less verbose. However, I think that "default results"
should return only the miminum of the result you'ld expect.
Regards,
// Rolf Lampa