Help:Inline Queries

From Lexicon Leponticum

Jump to: navigation, search

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:Reference]] [[type_reference::palaeographical study]] |?title= |sort=sortdate |order=desc |format=ol |limit=4 |searchlabel= ... all palaeographical studies}} will display:
  1. Stifter 2010 (Lepontische Studien: Lexicon Leponticum und die Funktion von san im Lepontischen)
  2. Zavaroni 2008 (La bilingue gallo-camuna di Voltino e CIL V 4883)
  3. Rubat Borel 2006 (Annexe 2. Nuovi dati per la storia delle lingue celtiche della Cisalpina)
  4. Markey 2006 (Early Celticity in Slovenia and at Rhaetic Magrè (Schio))
  5. ... 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".
Personal tools