Help:Inline Queries
From Lexicon Leponticum
Some short examples how to insert automatic results of semantic searches in pages. A detailed instruction can be found on SMW/Semantic Search. To search within Lexicon Leponticum for defined properties, please use the semantic search.
Contents |
#ask
Displays result lists in different formats.
Simple Queries
{{#ask: [[Category:Category_name]] }}
{{#ask: [[Property_name::Property_value]] }}
{{#ask: [[Category:Category_name]][[Property_name::Property_value]] }}
{{#ask: [[Category:Category_name]][[Property_name::Property_value_1]] OR
[[Category:Category_name]][[Property_name::Property_value_2]] }}
{{#ask: [[Namespace:+]] }}
{{#ask: [[Category_name:+]] }}
{{#ask: [[Property_name::+]] }}
{{#ask: [[Property_name::~*Part_of_property_value*]] }}
Additional Printouts of Properties
|?Property_name |?Property_name=Display_name |?Property_name= |?Property_name# |?Property_name#=Display_name |?Property_name#cm |?Property_name#cm=Display_name
Result Formats
|format=ul
|format=ol
|format=list
|format=table
|format=broadtable
|format=template
|template=Printout_template_name
|format=count
Additional Parameters
|limit=20 |limit=0 |searchlabel= ... view full list |default=no result |sort=Sort_property_name1,Sort_property_name2 |order=ascending,descending,asc,desc |mainlabel=Title_of_main_result_column |mainlabel=- |? |?=
Examples
- The code
{{#ask:[[Category:Inscription]] [[language::Latin]] |format=list |limit=4 |sort=sortdate |?sortdate |searchlabel= ... all Latin inscriptions}}will display: PV·5 (sortdate -100), VB·30 (sortdate -75), VB·24 (sortdate -75), PG·1.3 (sortdate -75) ... all Latin inscriptions
- The code
{{#ask:[[Category:Reference]] [[type_reference::palaeographical study]] |?title= |sort=sortdate |order=desc |format=ol |limit=4 |searchlabel= ... all palaeographical studies}}will display:
- Stifter 2010 (Lepontische Studien: Lexicon Leponticum und die Funktion von san im Lepontischen)
- Zavaroni 2008 (La bilingue gallo-camuna di Voltino e CIL V 4883)
- Markey 2006 (Early Celticity in Slovenia and at Rhaetic Magrè (Schio))
- Rubat Borel 2006 (Annexe 2. Nuovi dati per la storia delle lingue celtiche della Cisalpina)
- ... all palaeographical studies
#show
Displays only the value of the very property of the very page.
{{#show: Page_name | ?Property_to_display }}
Examples
- The code
{{#show: BS·3.1 | ?language }}will display "Latin". - The code
{{#show: Zavaroni 2008 | ?type_reference }}will display "palaeographical study".