Extension:Semantic Result Formats/outline format
From MediaWiki.org
The result format outline, part of the Semantic Result Formats extension, is used to display pages in tabbed outline form, using one or more of the pages' properties as outline headers.
[edit] Example
{{#ask: [[Category:Cites]]
| ?State
| ?Country
| ?Mayor
| format=outline
| outlineproperties=Country, State
}}
This call will print out a bulleted list of the cities in the wiki, divided by the country they belong to and subdivided by their state. It will also list the mayor of each city next to its name, in the same manner as with the 'ol', 'ul' and 'list' formats (the state and country will only be displayed as headers, not next to each city name).
You can see a working example of this format here.
[edit] Parameters
The Outline format introduces the following additional parameters:
- outlineproperties: the list of properties to be used as outline headers, separated by commas
This parameter is optional; if it is absent, the set of result pages will be displayed as a simple bulleted list. Any property included in this parameter must also be included among the "display properties" in the query.