CINXE.COM
Inline queries - semantic-mediawiki.org
<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.semantic-mediawiki.org/wiki/Inline_queries","20230219232520","https://web.archive.org/","web","/_static/", "1676849120"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="UTF-8"/> <title>Inline queries - semantic-mediawiki.org</title> <script>document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );</script> <script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:Inline_queries","wgTitle":"Inline queries","wgCurRevisionId":74920,"wgRevisionId":74920,"wgArticleId":448,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["I18n reference page","User manual","Document"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Help:Inline_queries","wgRelevantArticleId":448,"wgRequestId":"ef3287e197438b5ba7cfd8a9","wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgRedirectedFrom":"Inline_queries","wgCategoryTreePageCategoryOptions":"{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}","wgHeaderTabsTabIndexes":[],"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPageFormsTargetName":null,"wgPageFormsAutocompleteValues":[],"wgPageFormsAutocompleteOnAllChars":true,"wgPageFormsFieldProperties":[],"wgPageFormsCargoFields":[],"wgPageFormsDependentFields":[],"wgPageFormsCalendarValues":[],"wgPageFormsCalendarParams":[],"wgPageFormsCalendarHTML":null,"wgPageFormsGridValues":[],"wgPageFormsGridParams":[],"wgPageFormsContLangYes":null,"wgPageFormsContLangNo":null,"wgPageFormsContLangMonths":[],"wgPageFormsHeightForMinimizingInstances":800,"wgPageFormsShowOnSelect":[],"wgPageFormsScriptPath":"/w/extensions/PageForms","edgValues":null,"wgPageFormsEDSettings":null,"wgAmericanDates":false,"wgULSAcceptLanguageList":[],"wgULSCurrentAutonym":"English","wgWikiEditorEnabledModules":[],"srfFilteredConfig":null,"egMapsScriptPath":"/w/extensions/Maps/","egMapsDebugJS":false,"egMapsAvailableServices":["leaflet","googlemaps3"],"egMapsLeafletLayersApiKeys":{"MapBox":"","MapQuestOpen":"","Thunderforest":"","GeoportailFrance":""},"wgInternalRedirectTargetUrl":"/wiki/Help:Inline_queries"});mw.loader.state({"site.styles":"ready","noscript":"ready","user.styles":"ready","user":"ready","user.options":"ready","user.tokens":"loading","onoi.dataTables.styles":"ready","smw.tableprinter.datatable.styles":"ready","ext.mermaid.styles":"ready","ext.semanticbreadcrumblinks.styles":"ready","ext.scite.styles":"ready","ext.uls.pt":"ready","ext.srf.styles":"ready","ext.smw.style":"ready","ext.smw.tooltip.styles":"ready","ext.bootstrap.styles":"ready"});mw.loader.implement("user.tokens@1xj4hbv",function($,jQuery,require,module){/*@nomin*/mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); });mw.loader.load(["mediawiki.action.view.redirect","ext.smw.style","ext.smw.tooltips","smw.entityexaminer","site","mediawiki.page.startup","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","jquery.tablesorter","mediawiki.toc","mediawiki.searchSuggest","ext.semanticbreadcrumblinks","ext.scite.styles","ext.scite.tooltip","mmv.head","mmv.bootstrap.autostart","ext.bootstrap.scripts","skin.chameleon.jquery-sticky"]);});</script> <link rel="stylesheet" href="/web/20230219232520cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.bootstrap.styles%7Cext.mermaid.styles%7Cext.uls.pt%7Conoi.dataTables.styles&only=styles&skin=chameleon"/> <link rel="stylesheet" href="/web/20230219232520cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.scite.styles%7Cext.semanticbreadcrumblinks.styles%7Cext.smw.style%7Cext.smw.tooltip.styles%7Csmw.tableprinter.datatable.styles&only=styles&skin=chameleon"/> <link rel="stylesheet" href="/web/20230219232520cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.srf.styles&only=styles&skin=chameleon"/> <script async="" src="/web/20230219232520js_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=chameleon"></script> <style>#mw-indicator-mw-helplink {display:none;}</style> <meta name="ResourceLoaderDynamicStyles" content=""/> <link rel="stylesheet" href="/web/20230219232520cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=site.styles&only=styles&skin=chameleon"/> <meta name="generator" content="MediaWiki 1.31.16"/> <meta name="description" content="Inline queries. From semantic-mediawiki.org"/> <meta name="twitter:description" content="Inline queries. From semantic-mediawiki.org"/> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:site" content="@SemanticMW"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="alternate" type="application/rdf+xml" title="Help:Inline queries" href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Special:ExportRDF/Help:Inline_queries&xmlmime=rdf"/> <link rel="apple-touch-icon" href="/web/20230219232520im_/https://www.semantic-mediawiki.org/w/assets/apple-touch-icon.png"/> <link rel="shortcut icon" href="/web/20230219232520im_/https://www.semantic-mediawiki.org/w/assets/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/web/20230219232520/https://www.semantic-mediawiki.org/w/opensearch_desc.php" title="semantic-mediawiki.org (en)"/> <link rel="EditURI" type="application/rsd+xml" href="https://www.semantic-mediawiki.org/w/api.php?action=rsd"/> <link rel="license" href="/wiki/semantic-mediawiki.org:Copyrights"/> <link rel="canonical" href="https://web.archive.org/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Inline_queries"/> <!-- Semantic MetaTags --> <meta property="og:description" content="Inline queries. From semantic-mediawiki.org"/> <meta property="og:site_name" content="Semantic MediaWiki"/> <meta property="og:image" content="https://web.archive.org/web/20230219232520im_/https://www.semantic-mediawiki.org/w/assets/SMW-logo.png"/> <meta property="og:image:type" content="image/png"/> <meta property="og:image:width" content="142"/> <meta property="og:image:height" content="142"/> <!--[if lt IE 9]><script src="/w/load.php?debug=false&lang=en&modules=html5shiv&only=scripts&skin=chameleon&sync=1"></script><![endif]--> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-12 ns-subject page-Help_Inline_queries rootpage-Help_Inline_queries layout-stragula skin-chameleon action-view"> <!-- navigation bar --> <nav class="navbar navbar-default p-navbar sticky" role="navigation" id="mw-navigation"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mw-navigation-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span> </button> <!-- logo and main page link --> <div id="p-logo" class="p-logo navbar-brand" role="banner"> <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki" title="Visit the main page"><img src="/web/20230219232520im_/https://www.semantic-mediawiki.org/w/assets/SMW-logo.png" alt="semantic-mediawiki.org"/></a> </div> </div> <div class="collapse navbar-collapse" id="mw-navigation-collapse"><ul class="nav navbar-nav"> <!-- smwo-general --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">General <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-general" id="p-smwo-general"> <li id="n-Semantic-MediaWiki"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki">Semantic MediaWiki</a></li> <li id="n-Introduction"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki">Introduction</a></li> <li id="n-Getting-support"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Getting_support">Getting support</a></li> <li id="n-Community-portal"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:Community_portal">Community portal</a></li> <li id="n-Open-Semantic-Data-Association"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Open_Semantic_Data_Association">Open Semantic Data Association</a></li> <li id="n-SMWCon"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/SMWCon">SMWCon</a></li> <li id="n-recentchanges"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li> </ul> </li> <!-- smwo-users --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Users <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-users" id="p-smwo-users"> <li id="n-Manual"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:User_manual">Manual</a></li> <li id="n-Getting-started"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Getting_started">Getting started</a></li> <li id="n-Report-a-bug"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Reporting_bugs">Report a bug</a></li> <li id="n-Sandbox-wiki"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Sandbox">Sandbox wiki</a></li> <li id="n-MediaWiki"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/MediaWiki">MediaWiki</a></li> </ul> </li> <!-- smwo-admins --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Administrators <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-admins" id="p-smwo-admins"> <li id="n-Manual-hb9ll72hdp"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Administrator_manual">Manual</a></li> <li id="n-Store-and-search-environment"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Store_and_search_environment">Store and search environment</a></li> <li id="n-Features-and-supplementary-functions"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Features_and_supplementary_functions">Features and supplementary functions</a></li> <li id="n-Installation"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Installation">Installation</a></li> <li id="n-Configuration"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Configuration">Configuration</a></li> <li id="n-Maintenance"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Maintenance_scripts">Maintenance</a></li> <li id="n-Report-a-bug-hb9ll72hm0"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Reporting_bugs">Report a bug</a></li> <li id="n-Sandbox-wiki-hb9ll72hnf"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Sandbox">Sandbox wiki</a></li> <li id="n-MediaWiki-hb9ll72hoq"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/MediaWiki">MediaWiki</a></li> </ul> </li> <!-- smwo-devels --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Developers <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-devels" id="p-smwo-devels"> <li id="n-Manual-hb9ll72hqv"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Developer_manual">Manual</a></li> <li id="n-Source-code"><a href="https://web.archive.org/web/20230219232520/https://github.com/SemanticMediaWiki/SemanticMediaWiki/" rel="nofollow">Source code</a></li> <li id="n-Code-documentation"><a href="https://web.archive.org/web/20230219232520/https://doc.semantic-mediawiki.org/" rel="nofollow">Code documentation</a></li> <li id="n-Report-a-bug-hb9ll72hv7"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Reporting_bugs">Report a bug</a></li> <li id="n-Sandbox-wiki-hb9ll72hwn"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Sandbox">Sandbox wiki</a></li> <li id="n-MediaWiki-hb9ll72hxw"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/MediaWiki">MediaWiki</a></li> </ul> </li> <!-- ? --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">? <b class="caret"></b></a> <ul class="dropdown-menu p-?" id="p-?"> <li id="n-Getting-support-hb9ll72i01"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Getting_support">Getting support</a></li> <li id="n-Frequent-questions"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/FAQ">Frequent questions</a></li> <li id="n-Missing-content"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Missing_content_and_error_correction#Missing_content">Missing content</a></li> <li id="n-Missing-translation"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Missing_content_and_error_correction#Missing_translation">Missing translation</a></li> <li id="n-Found-an-error"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Missing_content_and_error_correction#Found_an_error">Found an error</a></li> </ul> </li></ul> <div class="navbar-right-aligned"> <!-- page tools --> <ul class="navbar-tools navbar-nav"> <li class="navbar-tools-tools dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="#" title="Page tools"><span>...</span></a> <!-- Content navigation --> <ul class="p-contentnavigation dropdown-menu" id="p-contentnavigation"> <!-- namespaces --> <li id="ca-talk"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help_talk:Inline_queries" rel="discussion" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li> <!-- views --> <li id="ca-viewsource"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit" title="This page is protected. You can view its source [e]" accesskey="e">View source</a></li> <li id="ca-history"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li> </ul> </li> </ul> <!-- search form --> <div id="p-search" class="p-search navbar-form" role="search"> <form id="searchform" class="mw-search form-inline" action="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php"> <input type="hidden" name="title" value="Special:Search"/> <div class="input-group"> <input name="search" placeholder="Search semantic-mediawiki.org" title="Search semantic-mediawiki.org [f]" accesskey="f" id="searchInput" class="form-control"/> <div class="input-group-btn"> <button value="Search" id="mw-searchButton" name="fulltext" type="submit" class="mw-searchButton btn btn-default" title="Search the pages for this text"><span class="glyphicon glyphicon-search"></span></button> </div> </div> </form> </div> <!-- personal tools --> <ul class="navbar-tools navbar-nav"> <li class="dropdown navbar-tools-tools"> <a class="dropdown-toggle navbar-usernotloggedin" href="#" data-toggle="dropdown" title="You are not logged in."><span class="glyphicon glyphicon-user"></span></a> <ul class="p-personal-tools dropdown-menu dropdown-menu-right"> <li id="pt-login"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Special:UserLogin&returnto=Help%3AInline+queries" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li> <li id="pt-createaccount"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:RequestAccount" title="You are encouraged to create an account and log in; however, it is not mandatory">Request account</a></li> </ul> </li> </ul> </div> <!-- navbar-right-aligned --> </div><!-- /.navbar-collapse --> </div> </nav> <div class="smwomaingrid container"> <div class="row"> <div class="col-lg-12"> </div> </div> <div class="row"> <div class="col-lg-12"> <!-- start the content area --> <div id="content" class="mw-body"><a id="top"></a> <div id="mw-indicators" class="mw-indicators"> <div id="mw-indicator-smw-entity-examiner" class="mw-indicator mw-indicator-smw-entity-examiner"><div class="smw-entity-examiner smw-indicator-vertical-bar-loader" data-subject="Inline_queries#12##" data-dir="ltr" data-uselang="" title="Running an examiner in the background"></div></div> <div id="mw-indicator-y-manual" class="mw-indicator mw-indicator-y-manual"><div class="dropdown"><div class="dropbtn"> ☰ User manual </div><div class="dropdown-content user-manual"> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki#User_manual" title="Help:Introduction to Semantic MediaWiki">Introduction to Semantic MediaWiki</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Editing#User_manual" title="Help:Editing">Editing</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Properties_and_types#User_manual" title="Help:Properties and types">Properties and types</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Special_properties#User_manual" title="Help:Special properties">Special properties</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Inverse_properties#User_manual" title="Help:Inverse properties">Inverse properties</a></li></ul></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Custom_units#User_manual" title="Help:Custom units">Custom units</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Semantic_templates#User_manual" title="Help:Semantic templates">Semantic templates</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Service_links#User_manual" title="Help:Service links">Service links</a></li></ul></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Browsing_and_searching#User_manual" title="Help:Browsing and searching">Browsing and searching</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Browsing_interfaces#User_manual" title="Help:Browsing interfaces">Browsing interfaces</a> <ul><li class="mw-empty-elt"></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Sp%C3%A9cial:Ask#User_manual" title="Help:Spécial:Ask">Special page "Ask"</a></li> <li class="mw-empty-elt"></li> <li class="mw-empty-elt"></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Special:Browse#User_manual" title="Help:Special:Browse">Special page "Browse"</a></li> <li class="mw-empty-elt"></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Factbox#User_manual" title="Help:Factbox">Factbox</a></li></ul></li></ul></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Semantic_search#User_manual" title="Help:Semantic search">Semantic search</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#User_manual" title="Help:Selecting pages">Selecting pages</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Search_operators#User_manual" title="Help:Search operators">Search operators</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Strict_comparators#User_manual" title="Help:Strict comparators">Strict comparators</a></li></ul></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Subqueries_and_property_chains#User_manual" title="Help:Subqueries and property chains">Subqueries and property chains</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Unions_of_results#User_manual" title="Help:Unions of results">Unions (OR) of results</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Distance_queries#User_manual" title="Help:Distance queries">Distance queries</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Search_namespace_restrictions#User_manual" title="Help:Search namespace restrictions">Namespace restrictions</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Search_range_of_pages#User_manual" title="Help:Search range of pages">Range of pages</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Single_page_restriction#User_manual" title="Help:Single page restriction">Single page restriction</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Full-text_search#User_manual" title="Help:Full-text search">Full-text search</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Search_value_substitution#User_manual" title="Help:Search value substitution">Search value substitution</a></li></ul></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Displaying_information#User_manual" title="Help:Displaying information">Displaying information</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Sorting#User_manual" title="Help:Sorting">Sorting</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Property_chains_and_paths#User_manual" title="Help:Property chains and paths">Printouts and property chains</a></li></ul></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Result_formats#User_manual" title="Help:Result formats">Result formats</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#User_manual" title="Help:Inline queries"><b>Inline queries</b></a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Querying_for_queries#User_manual" title="Help:Querying for queries">Querying for queries</a></li></ul></li> <li class="mw-empty-elt"></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Concepts#User_manual" title="Help:Concepts">Concepts</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Inferencing#User_manual" title="Help:Inferencing">Inferencing</a></li></ul></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Semantic_Web#User_manual" title="Help:Semantic Web">Semantic Web</a> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:RDF_export#User_manual" title="Help:RDF export">RDF export</a></li> <li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Import_vocabulary#User_manual" title="Help:Import vocabulary">Importing vocabulary</a></li></ul></li></ul> </div></div> </div> <div id="mw-indicator-yz-manual" class="mw-indicator mw-indicator-yz-manual"><div class="dropdown"> <div class="dropbtn document-effective"> v1.7.0+ </div><div class="dropdown-content document-effective"> <table style="min-width: 150px"> <tbody><tr><td> Status:</td><td>effective</td></tr><tr><td> Progress:</td><td>100%</td></tr><tr><td> Version:</td><td>1.7.0+</td></tr> </tbody></table> </div> </div> </div> <div id="mw-indicator-z-language" class="mw-indicator mw-indicator-z-language"><div class="dropdown"><div class="dropbtn"> <span class="icon-language"></span>English </div><div class="dropdown-content"> <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Translate/page-Help:Inline_queries" title="Special:Translate/page-Help:Inline queries">Add a translation</a></div></div> </div> </div> <div id="mw-js-message" style="display:none;"></div> <div class="contentHeader"> <!-- title of the page --> <h1 id="firstHeading" class="firstHeading">Inline queries</h1> <!-- tagline; usually goes something like "From WikiName" primary purpose of this seems to be for printing to identify the source of the content --> <div id="siteSub">From semantic-mediawiki.org</div> <!-- subtitle line; used for various things like the subpage hierarchy --> <div id="contentSub" class="small"><span class="mw-redirectedfrom">(Redirected from <a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Inline_queries&redirect=no" class="mw-redirect" title="Inline queries">Inline queries</a>)</span><div id="sbl-breadcrumbs" class="sbl-breadcrumb-trail-light" dir="ltr"><span class="sbl-breadcrumb-arrow-parent" style=""><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:User_manual" title="Help:User manual">User manual</a></span><span class="sbl-breadcrumb-arrow-right" style=""></span><span class="sbl-breadcrumb-arrow-parent" style=""><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Semantic_search" title="Help:Semantic search">Semantic search</a></span><span class="sbl-breadcrumb-arrow-right" style=""></span><span class="sbl-breadcrumb-arrow-location" style="">Inline queries</span><span class="sbl-breadcrumb-arrow-left" style=""></span><span class="sbl-breadcrumb-arrow-child" style="font-style:italic;"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Examples/Different_link_parameter_options" title="Examples/Different link parameter options">Examples/Different link parameter options</a></span><span class="sbl-breadcrumb-children" data-children="<ul class="sbl-breadcrumb-children-list"><li><a href="/wiki/Help:Querying_for_queries" title="Help:Querying for queries">Querying for queries</a></li></ul>"></span></div></div><div id="jump-to-nav" class="mw-jump">Jump to:<a href="#mw-navigation">navigation</a>, <a href="#p-search">search</a></div> </div> <div id="bodyContent"> <!-- body text --> <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"> <div class="sil-interlanguagelink"></div> <table cellspacing="0" class="smworgtable-v2" style="position: relative; float: right; clear: right; width: 260px"> <tbody><tr> <th colspan="2" style="padding-top: 2px">Table of Contents </th></tr> <tr> <td colspan="2" style="padding-top: 2px"><div id="smworgtable-toc" style="font-size: 90%"><div id="toc" class="toc"><div class="toctitle" lang="en" dir="ltr"><h2>Contents</h2></div> <ul> <li class="toclevel-1 tocsection-1"><a href="#Parser_function_.23ask"><span class="tocnumber">1</span> <span class="toctext">Parser function <b>#ask</b></span></a></li> <li class="toclevel-1 tocsection-2"><a href="#Parser_function_.23show"><span class="tocnumber">2</span> <span class="toctext">Parser function <b>#show</b></span></a></li> <li class="toclevel-1 tocsection-3"><a href="#Standard_parameters_for_inline_queries"><span class="tocnumber">3</span> <span class="toctext">Standard parameters for inline queries</span></a> <ul> <li class="toclevel-2 tocsection-4"><a href="#Result_limits_and_links_to_further_results"><span class="tocnumber">3.1</span> <span class="toctext">Result limits and links to further results</span></a></li> <li class="toclevel-2 tocsection-5"><a href="#Styling_of_further_results_link"><span class="tocnumber">3.2</span> <span class="toctext">Styling of further results link</span></a></li> <li class="toclevel-2 tocsection-6"><a href="#Introduction_and_default_text"><span class="tocnumber">3.3</span> <span class="toctext">Introduction and default text</span></a></li> <li class="toclevel-2 tocsection-7"><a href="#Sorting_results"><span class="tocnumber">3.4</span> <span class="toctext">Sorting results</span></a></li> <li class="toclevel-2 tocsection-8"><a href="#Configuring_labels.2Ftable_headers"><span class="tocnumber">3.5</span> <span class="toctext">Configuring labels/table headers</span></a></li> <li class="toclevel-2 tocsection-9"><a href="#Changing_the_first_result_column"><span class="tocnumber">3.6</span> <span class="toctext">Changing the first result column</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-10"><a href="#Result_formats"><span class="tocnumber">4</span> <span class="toctext">Result formats</span></a> <ul> <li class="toclevel-2 tocsection-11"><a href="#Exporting_query_results"><span class="tocnumber">4.1</span> <span class="toctext">Exporting query results</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-12"><a href="#Updating_of_inline_queries"><span class="tocnumber">5</span> <span class="toctext">Updating of inline queries</span></a></li> <li class="toclevel-1 tocsection-13"><a href="#Avoid_Self-Referencing"><span class="tocnumber">6</span> <span class="toctext">Avoid Self-Referencing</span></a></li> <li class="toclevel-1 tocsection-14"><a href="#Related_tips"><span class="tocnumber">7</span> <span class="toctext">Related tips</span></a></li> </ul> </div> </div> </td></tr></tbody></table> <p><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki" title="Semantic MediaWiki">Semantic MediaWiki</a> includes a simple query language for <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Semantic_search" title="Help:Semantic search">semantic search</a>, so that users can directly request certain information from the wiki. Readers who do not wish to learn the query syntax can still profit from this feature: <b>inline queries</b> dynamically include query results into pages. So queries created by a few editors can be consumed by many readers. </p><p>Inline queries are similar to other semantic search features, and can also be restricted on a site in order to ensure sufficient performance. Since inline queries exploit the existing caching mechanisms of <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/MediaWiki" title="MediaWiki">MediaWiki</a>, most requests for a page with such dynamic contents can be served without any performance impact whatsoever. </p> <h2><span id="Parser_function_#ask"></span><span class="mw-headline" id="Parser_function_.23ask">Parser function <b><tt>#ask</tt></b></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=1" title="Edit section: Parser function #ask">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <p>The basic way of writing an inline query is to use the parser function <tt>#ask</tt>. The query string (See <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">selecting pages</a> for syntax) and any <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Displaying_information" title="Help:Displaying information">printout statements</a> are directly given as parameter, like in the following example: </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |?Population |?Area#km² = Size in km² }} </pre> <p>Here we query for all cities located in Germany, and two additional printout statements are used (a simple one and one with some extra settings). This displays the following result on a page: </p> <table class="sortable wikitable smwtable"><tbody><tr><th> </th><th class="Population"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></th><th class="Size-in-km²"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Has_area" title="Property:Has area">Size in km²</a></th></tr><tr data-row-number="1" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Berlin" title="Demo:Berlin">Berlin</a></td><td class="Population smwtype_num" data-sort-value="3520061">3,520,061</td><td class="Size-in-km² smwtype_qty" data-sort-value="891.85"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="344.34 sqmi"><span class="smwtext">891.85 km²</span><span class="smwttcontent">344.34 sqmi <br /></span></span></td></tr><tr data-row-number="2" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Cologne" title="Demo:Cologne">Cologne</a></td><td class="Population smwtype_num" data-sort-value="1080394">1,080,394</td><td class="Size-in-km² smwtype_qty" data-sort-value="405.02"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="156.38 sqmi"><span class="smwtext">405.02 km²</span><span class="smwttcontent">156.38 sqmi <br /></span></span></td></tr><tr data-row-number="3" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Frankfurt" title="Demo:Frankfurt">Frankfurt</a></td><td class="Population smwtype_num" data-sort-value="679664">679,664</td><td class="Size-in-km² smwtype_qty" data-sort-value="248.31"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="95.87 sqmi"><span class="smwtext">248.31 km²</span><span class="smwttcontent">95.87 sqmi <br /></span></span></td></tr><tr data-row-number="4" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/User:Meredan/Sandbox" title="User:Meredan/Sandbox">Meredan/Sandbox</a></td><td class="Population smwtype_num" data-sort-value="1353186">1,353,186</td><td class="Size-in-km² smwtype_qty" data-sort-value="310.43"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="119.86 sqmi"><span class="smwtext">310.43 km²</span><span class="smwttcontent">119.86 sqmi <br /></span></span></td></tr><tr data-row-number="5" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Munich" title="Demo:Munich">Munich</a></td><td class="Population smwtype_num" data-sort-value="1353186">1,353,186</td><td class="Size-in-km² smwtype_qty" data-sort-value="310.43"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="119.86 sqmi"><span class="smwtext">310.43 km²</span><span class="smwttcontent">119.86 sqmi <br /></span></span></td></tr><tr data-row-number="6" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Stuttgart" title="Demo:Stuttgart">Stuttgart</a></td><td class="Population smwtype_num" data-sort-value="606588">606,588</td><td class="Size-in-km² smwtype_qty" data-sort-value="207.35"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="80.06 sqmi"><span class="smwtext">207.35 km²</span><span class="smwttcontent">80.06 sqmi <br /></span></span></td></tr><tr data-row-number="7" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:W%C3%BCrzburg" title="Demo:Würzburg">Würzburg</a></td><td class="Population smwtype_num" data-sort-value="126635">126,635</td><td class="Size-in-km² smwtype_qty" data-sort-value="87.63"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="33.83 sqmi"><span class="smwtext">87.63 km²</span><span class="smwttcontent">33.83 sqmi <br /></span></span></td></tr></tbody></table> <p>It is common to put the query as the first parameter behind <tt>#ask:</tt>. All other parameters are separated by <tt>|</tt>, just like for other <a href="https://web.archive.org/web/20230219232520/https://www.mediawiki.org/wiki/Help:Parser_function" class="extiw" title="mws:Help:Parser function">parser functions</a>. The exact formatting of the inline query is not essential, but it is good to use line breaks to make it more readable to other editors. As with all templates, one line per parameter, starting with the <tt>|</tt> is most accepted in practice. </p><p>Note that all the arguments to the <tt>#ask:</tt> function are ignored by the page parsing, hence the above example does not add a category or a «located in» property annotation to this page. A few more things to note are: </p> <ul><li>The pipe '<tt>|</tt>' symbol is used to separate the conditions from the property to display.</li> <li>The conditions for display are a single argument to the <tt>#ask</tt> function, so there are no '<tt>|</tt>' symbols between them.</li> <li>White space and line breaks can be used within the <tt>#ask</tt> function, SMW is fairly flexible there.</li> <li>The format of the results display changes when you request display of additional properties. SMW picks an appropriate default format for query results, but you also have detailed control of the appearance of query results.</li></ul> <p>Knowing the basics of <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">query string</a> and <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Displaying_information" title="Help:Displaying information">printout statements</a> therefore is enough to write many kinds of queries. But there are many cases where the standard table output of a query may not be the best choice, or where further settings are desired (like the maximum number of results that should be displayed). For this purpose, inline queries have a number of other possible parameters that one can use to control their appearance in detail. The general syntax for <tt>#ask</tt> therefore is the following: </p> <pre>{{#ask: <i>argument 1</i> | <i>argument 2</i> | … }} </pre> <p>Most of this page explains the various arguments one may use in inline queries. </p> <h2><span id="Parser_function_#show"></span><span class="mw-headline" id="Parser_function_.23show">Parser function <b><code>#show</code></b></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=2" title="Edit section: Parser function #show">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <p>A common usage of queries is to display only a single property value for a single page. For example, one could insert the population of Berlin into some page, and use a query instead of manual copying to achieve this. SMW provides a special shortcut parser function to make such queries simpler: <code>#show</code>. For example, one can write the following to display the population of Berlin on a page: </p> <dl><dt>Syntax</dt></dl> <pre>{{#show: Demo:Berlin |?Population }} </pre> <dl><dt>Result</dt></dl> <p>3,520,061 </p><p>The parser function otherwise works like an inline query, and all parameters available for inline queries can also be used on <code>#show</code> if desired. However note that the <code>#show</code> parser function only takes one argument (a page) as the query condition, i.e. the name of the page that should be queried. </p><p>The above query written with the <code>#ask</code> parser function looks as follows: </p> <dl><dt>Syntax</dt></dl> <pre>{{#ask: [[Demo:Berlin]] |?Population= |mainlabel=- }} </pre> <dl><dt>Result</dt></dl> <p>3,520,061 </p><p>Here the "<code>=</code>" added to the queried property "<code>?Population</code>" removes the display of the property label and parameter "<code>mainlabel=</code>" followed by the "<code>-</code>" symbol removes the first result column and the label of the column. </p><p>Without this, the result would display a table with two columns and rows: </p> <dl><dt>Syntax</dt></dl> <pre>{{#ask: [[Berlin]] |?Population }} </pre> <dl><dt>Result</dt></dl> <table class="sortable wikitable smwtable"><tbody><tr><th> </th><th class="Population"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></th></tr><tr data-row-number="1" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Berlin" title="Demo:Berlin">Berlin</a></td><td class="Population smwtype_num" data-sort-value="3520061">3,520,061</td></tr></tbody></table> <h2><span class="mw-headline" id="Standard_parameters_for_inline_queries">Standard parameters for inline queries</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=3" title="Edit section: Standard parameters for inline queries">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <p>In general, an inline query is a request to find a number of <b>pages</b> that satisfy certain requirements. The query must answer three questions: </p> <ol><li>Which pages are requested? (See <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">Selecting pages</a>)</li> <li>What information should be displayed about those pages? (See <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Displaying_information" title="Help:Displaying information">Printout statements</a>)</li> <li>How should the results be formatted within the page? (See <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Result_formats" title="Help:Result formats">Results formats</a>)</li></ol> <p>The first two points are explained in their respective manual pages. The third point is important to smoothly include query results in pages, yet is largely independent of the first two. Without further settings, queries often produce tables like above or simple lists (if no additional printouts are used). An example of another possible format are bulleted lists, which one can create with the parameter <code>format=ul</code>: </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |?Population |format=ul }} </pre> <p>This will produce the following output: </p> <ul class="smw-format ul-format"><li class="smw-row"><span class="smw-field"><span class="smw-value"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Berlin" title="Demo:Berlin">Berlin</a></span></span> (<span class="smw-field"><span class="smw-field-label"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></span>: <span class="smw-value">3,520,061</span></span>)</li><li class="smw-row"><span class="smw-field"><span class="smw-value"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Cologne" title="Demo:Cologne">Cologne</a></span></span> (<span class="smw-field"><span class="smw-field-label"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></span>: <span class="smw-value">1,080,394</span></span>)</li><li class="smw-row"><span class="smw-field"><span class="smw-value"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Frankfurt" title="Demo:Frankfurt">Frankfurt</a></span></span> (<span class="smw-field"><span class="smw-field-label"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></span>: <span class="smw-value">679,664</span></span>)</li><li class="smw-row"><span class="smw-field"><span class="smw-value"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/User:Meredan/Sandbox" title="User:Meredan/Sandbox">Meredan/Sandbox</a></span></span> (<span class="smw-field"><span class="smw-field-label"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></span>: <span class="smw-value">1,353,186</span></span>)</li><li class="smw-row"><span class="smw-field"><span class="smw-value"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Munich" title="Demo:Munich">Munich</a></span></span> (<span class="smw-field"><span class="smw-field-label"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></span>: <span class="smw-value">1,353,186</span></span>)</li><li class="smw-row"><span class="smw-field"><span class="smw-value"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Stuttgart" title="Demo:Stuttgart">Stuttgart</a></span></span> (<span class="smw-field"><span class="smw-field-label"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></span>: <span class="smw-value">606,588</span></span>)</li><li class="smw-row"><span class="smw-field"><span class="smw-value"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:W%C3%BCrzburg" title="Demo:Würzburg">Würzburg</a></span></span> (<span class="smw-field"><span class="smw-field-label"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Population</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></span>: <span class="smw-value">126,635</span></span>)</li></ul> <p>SMW implements a wide variety of output formats for inline queries, and allows you to further control results display using a MediaWiki template. The parameter <code>format</code> is one of the most important parameters for selecting the appearance of query results. See <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Result_formats" title="Help:Result formats">Results formats</a>. </p><p><br/> The following table gives an overview of common parameters that can be used in basically all queries: </p> <table class="wikitable smw"> <tbody><tr> <th>Parameter </th> <th>Possible values </th> <th>Description </th></tr> <tr> <td><code>format</code> </td> <td>a format name </td> <td>selected output format; some formats allow further parameters (see <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Result_formats" title="Help:Result formats">Result formats</a>) </td></tr> <tr> <td><code>limit</code> </td> <td>non-negative number </td> <td>maximal number of pages selected (in the case of a table: rows) <ul><li>see <span class="smw-highlighter smwttinline config-tooltip" data-state="inline"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:$smwgQMaxInlineLimit" title="Help:$smwgQMaxInlineLimit">configuration parameter <code>$smwgQMaxInlineLimit</code></a><span class="smwttcontent">Sets the maximal number of rows <i>ever</i> printed by queries</span></span> and <span class="smw-highlighter smwttinline config-tooltip" data-state="inline"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:$smwgQMaxLimit" title="Help:$smwgQMaxLimit">configuration parameter <code>$smwgQMaxLimit</code></a><span class="smwttcontent">Sets the maximal number of results <i>ever</i> retrieved by queries</span></span> if not all results show</li> <li>see <span class="smw-highlighter smwttinline config-tooltip" data-state="inline"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:$smwgQDefaultLimit" title="Help:$smwgQDefaultLimit">configuration parameter <code>$smwgQDefaultLimit</code></a><span class="smwttcontent">Default number of rows returned in a query. Can be increased with limit=... in <code>#ask</code>.</span></span> to set the default if not specified, or to set the number of pages displayed in the new page if limit = 0</li></ul> </td></tr> <tr> <td><code>offset</code> </td> <td>number </td> <td>where to start selecting pages <p><img alt="Note" src="https://web.archive.org/web/20230219232520im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/20px-OOjs_UI_icon_lightbulb-yellow.svg.png" title="Note" width="20" height="20" srcset="https://web.archive.org/web/20230219232520im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/30px-OOjs_UI_icon_lightbulb-yellow.svg.png 1.5x, https://web.archive.org/web/20230219232520im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/40px-OOjs_UI_icon_lightbulb-yellow.svg.png 2x" data-file-width="20" data-file-height="20"/> <b>Note:</b>  If the limit specified with this parameter exceeds the limit set with <span class="smw-highlighter smwttinline config-tooltip" data-state="inline"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:$smwgQUpperbound" title="Help:$smwgQUpperbound">configuration parameter <code>$smwgQUpperbound</code></a><span class="smwttcontent">Sets the upper bound of the offset used for the maximal number of rows ever printed in an embedded query</span></span>, the offset will fallback to the limit of "<code>0</code>".<span id="scite-ref-00430e5b8523682ceeae0def6dc9e2e9-1-a" class="scite-citeref-number" data-reference="gh:smw:4263"><a href="#scite-00430e5b8523682ceeae0def6dc9e2e9">1</a></span> </p> </td></tr> <tr> <td><code>sort</code> </td> <td>property name or a list of property names separated by , </td> <td>name of properties to use for sorting queries, a blank as a value stands for the main result column (see <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">Selecting pages</a>) </td></tr> <tr> <td><code>order</code> </td> <td><code>ascending</code>/<code>asc</code>, <code>descending</code>/<code>desc</code>/<code>reverse</code>, <code>random</code>/<code>rand</code><br/>or a list of those if more than one property is used for sorting </td> <td>defines how results should be ordered, <code>ascending</code> is the default, without using parameter "sort" the sort order of the main result column is set (see <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">Selecting pages</a>) </td></tr> <tr> <td><code>headers</code> </td> <td><code>show</code>, <code>plain</code>, <code>hide</code> </td> <td>Show headers (with links), plain headers (just text) or hide them. <code>show</code> is default </td></tr> <tr> <td><code>mainlabel</code> </td> <td>plain text </td> <td>title of the first column (the one with the page titles in it), default is no title; set to <code>-</code> to suppress printing the page titles </td></tr> <tr> <td><code>index</code> </td> <td>number </td> <td>defines which value within a record should be displayed, only applicable for properties of type <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Type_Record" title="Help:Type Record">Record</a> </td></tr> <tr> <td><code>link</code> </td> <td><code>none</code>, <code>subject</code>, <code>all</code> </td> <td>defines which article names in the result are hyperlinked, <code>all</code> normally is the default. See also the <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Examples/Different_link_parameter_options" title="Examples/Different link parameter options">examples page</a>. <p><img alt="Note" src="https://web.archive.org/web/20230219232520im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/20px-OOjs_UI_icon_lightbulb-yellow.svg.png" title="Note" width="20" height="20" srcset="https://web.archive.org/web/20230219232520im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/30px-OOjs_UI_icon_lightbulb-yellow.svg.png 1.5x, https://web.archive.org/web/20230219232520im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/OOjs_UI_icon_lightbulb-yellow.svg/40px-OOjs_UI_icon_lightbulb-yellow.svg.png 2x" data-file-width="20" data-file-height="20"/> <b>Note:</b>  linking can also be controlled for individual printouts using the <i>plain output format</i> as described in <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Displaying_information#Display_format" title="Help:Displaying information">Displaying information</a>. </p> </td></tr> <tr> <td><code>default</code> </td> <td>plain text </td> <td>if, for any reason, the query returns no results, this will be printed instead </td></tr> <tr> <td><code>intro</code> </td> <td>plain text </td> <td>initial text that prepends the output, if at least some results exist </td></tr> <tr> <td><code>outro</code> </td> <td>plain text </td> <td>text that is appended to the output, if at least some results exist </td></tr> <tr> <td><code>searchlabel</code> </td> <td>plain text </td> <td>text for continuing the search (default is «… further results») </td></tr></tbody></table> <p>In addition to the above, some formats have their own parameters that control special aspects of the format. These special settings are described in the documentation of each format. See also the overview page on <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Ask_syntax" title="Help:Ask syntax">ask syntax elements</a>. </p> <h3><span class="mw-headline" id="Result_limits_and_links_to_further_results">Result limits and links to further results</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=4" title="Edit section: Result limits and links to further results">edit</a><span class="mw-editsection-bracket">]</span></span></h3> <p>You can set the parameter <code>limit</code> to restrict the maximum number of results that are returned. For example, the query </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |limit=3 }} </pre> <p>displays at most 3 cities in Germany. Even if you do not specify a value for <code>limit</code>, SMW always applies some limit to the results a query returns. Depending on a site's settings, it might be possible to increase the number of displayed results by specifying a higher value for <code>limit</code>. However, there is usually a maximum limit that cannot be exceeded, set by the wiki administrator based on performance considerations. For details, see the overview page on <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Configuration" title="Help:Configuration">configuration parameters</a>. </p><p>Running the above query produces: <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Berlin" title="Demo:Berlin">Berlin</a>, <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Cologne" title="Demo:Cologne">Cologne</a>, <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Frankfurt" title="Demo:Frankfurt">Frankfurt</a><span class="smw-plainlist-furtherresults"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Ask/-5B-5BCategory:City-5D-5D-20-5B-5BLocated-20in::Germany-5D-5D/mainlabel%3D/limit%3D3/offset%3D3/format%3Dplainlist" title="Special:Ask/-5B-5BCategory:City-5D-5D-20-5B-5BLocated-20in::Germany-5D-5D/mainlabel=/limit=3/offset=3/format=plainlist">... further results</a></span> </p><p>This shows that whenever a query does not display all results due to a limit, it will normally show a link to «further results». The text of this link can be modified by setting the parameter <code>searchlabel</code>. If the value of <code>searchlabel</code> is empty, then no link to further results appears. Some output formats (see below) never display the search link, or display it only if a <code>searchlabel</code> was specified. </p><p>An interesting application of <code>limit</code> and <code>searchlabel</code> is to display <i>only</i> a link to the results of a search, without showing any result inline. You achieve this by specifying a limit of «0» or «-1». For instance, the query </p> <pre>{{#ask: [[Category:City]] | limit=0 | searchlabel=Click to browse a list of cities }} </pre> <p>displays: <span class="smw-plainlist-furtherresults"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Ask/-5B-5BCategory:City-5D-5D/mainlabel%3D/offset%3D0/format%3Dplainlist/searchlabel%3DClick-20to-20browse-20a-20list-20of-20cities" title="Special:Ask/-5B-5BCategory:City-5D-5D/mainlabel=/offset=0/format=plainlist/searchlabel=Click-20to-20browse-20a-20list-20of-20cities">Click to browse a list of cities</a></span>. this link will only appear if there are any results at all. In other words, SMW will still compute the query to check if there are any results. If this is not needed, or if a link should be shown in any case, one can use the limit «-1». SMW will then only print a link to further results, even if no results exist at all. This also saves some computation time on the server. </p><p>The query </p> <pre>{{#ask: [[Category:City]] | limit=10 | searchlabel= }} </pre> <p>in contrast will show a list of up to ten cities, but no link to further results, even if there are any. </p> <h3><span class="mw-headline" id="Styling_of_further_results_link">Styling of further results link</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=5" title="Edit section: Styling of further results link">edit</a><span class="mw-editsection-bracket">]</span></span></h3> <p>Since <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki_1.9.0" title="Semantic MediaWiki 1.9.0">SMW 1.9.0</a> it is possible to assign individual CSS styling to each <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Result_formats" title="Help:Result formats">result format's</a> pending "further results" link. See the help page on <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Further_results" title="Help:Further results">styling further results</a> for further information on this. </p> <h3><span class="mw-headline" id="Introduction_and_default_text">Introduction and default text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=6" title="Edit section: Introduction and default text">edit</a><span class="mw-editsection-bracket">]</span></span></h3> <p>If no articles satisfy the conditions of a query, <i>nothing is shown</i>. This is sometimes a useful behavior, but often certain texts should be shown or not shown depending on whether the query has results or not. For example, one may want the query to show an output of the following form: </p> <pre>Upcoming conferences: <a href="https://web.archive.org/web/20230219232520/http://semanticweb.org/wiki/SMWCon_Spring_2013" class="extiw" title="semanticweb:SMWCon Spring 2013">SMWCon Spring 2013</a>, <a href="https://web.archive.org/web/20230219232520/http://semanticweb.org/wiki/SMWCon_Fall_2013" class="extiw" title="semanticweb:SMWCon Fall 2013">SMWCon Fall 2013</a>, … </pre> <p>where the list of conferences is generated by a suitable query. If the query (for whatever reason) would not return any results, the page would look as follows </p> <pre>Upcoming conferences: </pre> <p>which is not desirable. Two parameters exist to prevent this. </p> <ul><li><code>default</code>: this parameter can be set to a default text that should be returned when no results are obtained. In the above example, one would probably write something like</li></ul> <pre>Upcoming conferences: {{#ask: ... | default=none}} </pre> <dl><dd>so that, if no result is obtained, the article will display</dd></dl> <pre>Upcoming conferences: none </pre> <ul><li><code>intro</code>: this parameter specifies a text that should be prepended to the output of a query, but only if one or more results exist. In the above example, one could write</li></ul> <pre>{{#ask: ... | intro=Upcoming conferences:&nbsp;}} </pre> <dl><dd>so that, if no result is obtained, nothing will be printed at all. Note that we use "&nbsp;" to encode the final space ("&#32;" would have worked as well), because regular whitespace is trimmed off the beginning and end of parser-function parameters.</dd></dl> <p>Both of the above solutions will show the intended output if results are found. It is also possible to combine both parameters if desired. The parameters can also include MediaWiki markup, such as links or templates, as long as this does not confuse MediaWiki in recognizing the <code>#ask</code> function. </p><p>Also note that if the set of pages selected in a query is empty, no header row or blank line, not even any blank space, is produced. This can also be useful to «hide» queries that are not applicable. <b>However, it is not recommended to insert great amounts of queries into every page, based on the assumption that this can do no harm since no output is generated.</b> Indeed, answering queries requires much computational resources and should not be done without a purpose. </p><p>Using default texts for queries is also a good habit in general, since it may happen that a query will no longer have any results in some future, e.g. due to changes in the way the wiki organizes its data. Such queries that once worked properly may be forgotten so that nobody notices the query on a page laboring to display nothing. </p><p>Note that in cases you want to display only a single property value for a single page (see <a href="#Parser_function_.23show">#show</a>), the parameter <code>default</code> does not work since you are actually not querying for pages. </p> <h3><span class="mw-headline" id="Sorting_results">Sorting results</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=7" title="Edit section: Sorting results">edit</a><span class="mw-editsection-bracket">]</span></span></h3> <p>It has been explained in <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">Selecting pages</a> that query results can be ordered by one or more properties. As explained there, <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Ask" title="Special:Ask">Special:Ask</a> has additional input fields to specify sort properties and ordering. In inline queries, sort properties are defined with the parameter <code>sort</code>, and the order can be set with the parameter <code>order</code>. The value of <code>order</code> should be <code>«ascending»</code>, <code>«descending»</code> or <code>«reverse»</code>, or one of the short forms <code>«asc»</code> and <code>«desc»</code>. You can also set the value to <code>«random»</code> (or <code>«rand»</code>) for ordering results in an essentially random way (this feature can be disabled by the site administrator, see <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Configuration" title="Help:Configuration">Configuration</a>). An example is the following query for the three largest cities in Germany: </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |?Population |sort=Population |order=descending |limit=3 }} </pre> <p>As explained in <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">Selecting pages</a>, sorting conditions may impose restrictions on the set of query results. In the above case, only German cities that have a value for population are considered. If more than one property is used for sorting, the parameters <code>sort</code> and <code>order</code> can be set to lists of property names and orders, respectively, separated by commas. The following is an example: </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |?State |?Population |sort=State,Population |order=ascending,descending }} </pre> <p>This query would return all German cities for which a state and population was specified. These results will be ordered by the name of the state they are located in (ordered alphabetically). Cities that are located in the same state will be ordered by their population, largest first («<code>descending</code>»). </p><p>It is also possible to explicitly define the main result column to be used for the sorting when more than one sorting condition should be used. This is done by either prepending or appending a comma to an empty statement. Example: </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |?State |?Population |sort=State, |order=ascending,descending }} </pre> <p>This query would return all German cities for which a state was specified. These results will be ordered by the name of the state they are located in (ordered alphabetically). Cities that are located in the same state will be ordered alphabetically (descending) by their name. </p> <h3><span id="Configuring_labels/table_headers"></span><span class="mw-headline" id="Configuring_labels.2Ftable_headers">Configuring labels/table headers</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=8" title="Edit section: Configuring labels/table headers">edit</a><span class="mw-editsection-bracket">]</span></span></h3> <p>Queries that return more than just the selected articles (e.g. the population in the above example) will display labels that describe the various output fields. By default, the label just displays the name of the requested property, or the text «Category» if categories are displayed. Labels for properties normally display as a link to the respective pages in the Property: namespace. </p><p>In the table format, the labels appear as column headers. In other formats, the labels might appear right before the output fields. The texts used for these labels can be controlled as explained in <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Displaying_information" title="Help:Displaying information">Displaying information</a>, using the equality symbol after printouts. Example: </p> <pre>{{#ask: [[Category:City]] [[Population::+]] [[Area::+]] |?Population= |?Area#km²=Size in km² |?Category=Category memberships |format=table |default=nothing found in Category:City }} </pre> <p>This query will produce: </p> <table class="sortable wikitable smwtable"><tbody><tr><th> </th><th> </th><th class="Size-in-km²"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Has_area" title="Property:Has area">Size in km²</a></th><th class="Category-memberships"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Categories" title="Special:Categories">Category memberships</a></th></tr><tr data-row-number="1" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Amsterdam" title="Demo:Amsterdam">Amsterdam</a></td><td class="smwtype_num" data-sort-value="783364">783,364</td><td class="Size-in-km² smwtype_qty" data-sort-value="219"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="84.56 sqmi"><span class="smwtext">219.00 km²</span><span class="smwttcontent">84.56 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Category:Europe&action=edit&redlink=1" class="new" title="Category:Europe (page does not exist)">Europe</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="2" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Berlin" title="Demo:Berlin">Berlin</a></td><td class="smwtype_num" data-sort-value="3520061">3,520,061</td><td class="Size-in-km² smwtype_qty" data-sort-value="891.85"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="344.34 sqmi"><span class="smwtext">891.85 km²</span><span class="smwttcontent">344.34 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="3" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Cologne" title="Demo:Cologne">Cologne</a></td><td class="smwtype_num" data-sort-value="1080394">1,080,394</td><td class="Size-in-km² smwtype_qty" data-sort-value="405.02"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="156.38 sqmi"><span class="smwtext">405.02 km²</span><span class="smwttcontent">156.38 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="4" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Frankfurt" title="Demo:Frankfurt">Frankfurt</a></td><td class="smwtype_num" data-sort-value="679664">679,664</td><td class="Size-in-km² smwtype_qty" data-sort-value="248.31"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="95.87 sqmi"><span class="smwtext">248.31 km²</span><span class="smwttcontent">95.87 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="5" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Karlsruhe" title="Karlsruhe">Karlsruhe</a></td><td class="smwtype_num" data-sort-value="294761">294,761</td><td class="Size-in-km² smwtype_qty" data-sort-value="173.46"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="66.97 sqmi"><span class="smwtext">173.46 km²</span><span class="smwttcontent">66.97 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="6" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:London" title="Demo:London">London</a></td><td class="smwtype_num" data-sort-value="7825200">7,825,200</td><td class="Size-in-km² smwtype_qty" data-sort-value="1706.8"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="659.00 sqmi"><span class="smwtext">1,706.80 km²</span><span class="smwttcontent">659.00 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="7" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/User:Meredan/Sandbox" title="User:Meredan/Sandbox">Meredan/Sandbox</a></td><td class="smwtype_num" data-sort-value="1353186">1,353,186</td><td class="Size-in-km² smwtype_qty" data-sort-value="310.43"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="119.86 sqmi"><span class="smwtext">310.43 km²</span><span class="smwttcontent">119.86 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Category:Megapolis&action=edit&redlink=1" class="new" title="Category:Megapolis (page does not exist)">Megapolis</a></td></tr><tr data-row-number="8" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Munich" title="Demo:Munich">Munich</a></td><td class="smwtype_num" data-sort-value="1353186">1,353,186</td><td class="Size-in-km² smwtype_qty" data-sort-value="310.43"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="119.86 sqmi"><span class="smwtext">310.43 km²</span><span class="smwttcontent">119.86 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="9" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Paris" title="Demo:Paris">Paris</a></td><td class="smwtype_num" data-sort-value="2234105">2,234,105</td><td class="Size-in-km² smwtype_qty" data-sort-value="105.4"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="40.69 sqmi"><span class="smwtext">105.40 km²</span><span class="smwttcontent">40.69 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Category:Popular_City&action=edit&redlink=1" class="new" title="Category:Popular City (page does not exist)">Popular City</a></td></tr><tr data-row-number="10" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Porto" title="Porto">Porto</a></td><td class="smwtype_num" data-sort-value="237.584">237.584</td><td class="Size-in-km² smwtype_qty" data-sort-value="41.66"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="16.08 sqmi"><span class="smwtext">41.66 km²</span><span class="smwttcontent">16.08 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="11" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Rome" title="Rome">Rome</a></td><td class="smwtype_num" data-sort-value="2761477">2,761,477</td><td class="Size-in-km² smwtype_qty" data-sort-value="1285.31"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="496.26 sqmi"><span class="smwtext">1,285.31 km²</span><span class="smwttcontent">496.26 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="12" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:San_Diego" title="Demo:San Diego">San Diego</a></td><td class="smwtype_num" data-sort-value="1307402">1,307,402</td><td class="Size-in-km² smwtype_qty" data-sort-value="963.6"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="372.05 sqmi"><span class="smwtext">963.60 km²</span><span class="smwttcontent">372.05 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="13" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Stuttgart" title="Demo:Stuttgart">Stuttgart</a></td><td class="smwtype_num" data-sort-value="606588">606,588</td><td class="Size-in-km² smwtype_qty" data-sort-value="207.35"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="80.06 sqmi"><span class="smwtext">207.35 km²</span><span class="smwttcontent">80.06 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="14" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Sydney" title="Demo:Sydney">Sydney</a></td><td class="smwtype_num" data-sort-value="4575532">4,575,532</td><td class="Size-in-km² smwtype_qty" data-sort-value="2058"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="794.59 sqmi"><span class="smwtext">2,058.00 km²</span><span class="smwttcontent">794.59 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="15" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Vienna" title="Vienna">Vienna</a></td><td class="smwtype_num" data-sort-value="1897">1,897<br/>1,888,776</td><td class="Size-in-km² smwtype_qty" data-sort-value="414.87"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="160.18 sqmi"><span class="smwtext">414.87 km²</span><span class="smwttcontent">160.18 sqmi <br /></span></span><br/><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="414,600,000.00 sqmi"><span class="smwtext">1,073,815,073.82 km²</span><span class="smwttcontent">414,600,000.00 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Category:Capital&action=edit&redlink=1" class="new" title="Category:Capital (page does not exist)">Capital</a></td></tr><tr data-row-number="16" class="row-even"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Warsaw" title="Warsaw">Warsaw</a></td><td class="smwtype_num" data-sort-value="1720398">1,720,398</td><td class="Size-in-km² smwtype_qty" data-sort-value="516.9"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="199.58 sqmi"><span class="smwtext">516.90 km²</span><span class="smwttcontent">199.58 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Sample_pages" title="Category:Sample pages">Sample pages</a><br/><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr><tr data-row-number="17" class="row-odd"><td class="smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:W%C3%BCrzburg" title="Demo:Würzburg">Würzburg</a></td><td class="smwtype_num" data-sort-value="126635">126,635</td><td class="Size-in-km² smwtype_qty" data-sort-value="87.63"><span class="smw-highlighter" data-type="3" data-state="inline" data-title="Unit conversion" title="33.83 sqmi"><span class="smwtext">87.63 km²</span><span class="smwttcontent">33.83 sqmi <br /></span></span></td><td class="Category-memberships smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:City" title="Category:City">City</a></td></tr></tbody></table> <p>It is possible to use empty printout labels or to have no label for a result column at all. In tables, however, the table header will still be shown even if all printouts use empty labels. To remove the header of a table completely, the parameter <code>headers</code> can be used. Three values are possible: </p> <ul><li><code>show</code>: display labels (default)</li> <li><code>plain</code>: show labels and headers, but a plain text without links (available since SMW 1.4.3)</li> <li><code>hide</code>: hide all labels and table headers</li></ul> <p>This setting works for tables as well as for other outputs. In the latter case, the value <code>hide</code> will hide all printout labels, even if they have a non-empty label set in the query. </p> <h3><span class="mw-headline" id="Changing_the_first_result_column">Changing the first result column</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=9" title="Edit section: Changing the first result column">edit</a><span class="mw-editsection-bracket">]</span></span></h3> <p>Most queries by default display the actual result pages in the first result position, e.g. as the first column in a table. The header of this column is usually blank. To change the label, or to hide the whole first column, the parameter <code>mainlabel</code> can be used. Normally, the text given to that parameter will simply be used as a header for the first column, for example in the query </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |mainlabel=City |?Population=Number of inhabitants |limit=3 }} </pre> <p>This will produce the table: </p> <table class="sortable wikitable smwtable"><tbody><tr><th class="City">City</th><th class="Number-of-inhabitants"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Number of inhabitants</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></th></tr><tr data-row-number="1" class="row-odd"><td class="City smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Berlin" title="Demo:Berlin">Berlin</a></td><td class="Number-of-inhabitants smwtype_num" data-sort-value="3520061">3,520,061</td></tr><tr data-row-number="2" class="row-even"><td class="City smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Cologne" title="Demo:Cologne">Cologne</a></td><td class="Number-of-inhabitants smwtype_num" data-sort-value="1080394">1,080,394</td></tr><tr data-row-number="3" class="row-odd"><td class="City smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Frankfurt" title="Demo:Frankfurt">Frankfurt</a></td><td class="Number-of-inhabitants smwtype_num" data-sort-value="679664">679,664</td></tr><tr class="smwfooter row-even"><td class="sortbottom" colspan="2"><span class="smw-table-furtherresults"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Ask/-5B-5BCategory:City-5D-5D-20-5B-5BLocated-20in::Germany-5D-5D/-3FPopulation%3DNumber-20of-20inhabitants/mainlabel%3DCity/limit%3D3/offset%3D3/format%3Dtable" title="Special:Ask/-5B-5BCategory:City-5D-5D-20-5B-5BLocated-20in::Germany-5D-5D/-3FPopulation=Number-20of-20inhabitants/mainlabel=City/limit=3/offset=3/format=table">... further results</a></span></td></tr></tbody></table> <p>The parameter <code>mainlabel</code> can also be used to completely hide the first column. This happens if the value of this parameter is set to «-» (minus symbol). To insert the list of main results at another position, the printout statement «?», i.e. the question mark without any additions, can be used. For example, modifying the example above to display the city name after Population, </p> <pre>{{#ask: [[Category:City]] [[Located in::Germany]] |?Population=Number of inhabitants |?=City |mainlabel=- |limit=3 }} </pre> <p>This results in the table: </p> <table class="sortable wikitable smwtable"><tbody><tr><th class="Number-of-inhabitants"><span class="smw-highlighter" data-type="1" data-state="inline" data-title="Property" title="The number of inhabitants of some geographical place."><span class="smwtext"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Property:Population" title="Property:Population">Number of inhabitants</a></span><span class="smwttcontent">The number of inhabitants of some geographical place.</span></span></th><th class="City">City</th></tr><tr data-row-number="1" class="row-odd"><td class="Number-of-inhabitants smwtype_num" data-sort-value="3520061">3,520,061</td><td class="City smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Berlin" title="Demo:Berlin">Berlin</a></td></tr><tr data-row-number="2" class="row-even"><td class="Number-of-inhabitants smwtype_num" data-sort-value="1080394">1,080,394</td><td class="City smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Cologne" title="Demo:Cologne">Cologne</a></td></tr><tr data-row-number="3" class="row-odd"><td class="Number-of-inhabitants smwtype_num" data-sort-value="679664">679,664</td><td class="City smwtype_wpg"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Demo:Frankfurt" title="Demo:Frankfurt">Frankfurt</a></td></tr><tr class="smwfooter row-even"><td class="sortbottom" colspan="2"><span class="smw-table-furtherresults"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Ask/-5B-5BCategory:City-5D-5D-20-5B-5BLocated-20in::Germany-5D-5D/-3FPopulation%3DNumber-20of-20inhabitants/-3F%3DCity/mainlabel%3D-2D/limit%3D3/offset%3D3/format%3Dtable" title="Special:Ask/-5B-5BCategory:City-5D-5D-20-5B-5BLocated-20in::Germany-5D-5D/-3FPopulation=Number-20of-20inhabitants/-3F=City/mainlabel=-2D/limit=3/offset=3/format=table">... further results</a></span></td></tr></tbody></table> <h2><span class="mw-headline" id="Result_formats">Result formats</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=10" title="Edit section: Result formats">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <p>The parameter format determines how the results of a query are displayed in the article. For more info, see the <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Result_formats" class="mw-redirect" title="Result formats">Result formats</a> page. </p> <h3><span class="mw-headline" id="Exporting_query_results">Exporting query results</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=11" title="Edit section: Exporting query results">edit</a><span class="mw-editsection-bracket">]</span></span></h3> <p>Some SMW's result formats (<span class="smw-format list-format"><span class="smw-row"><span class="smw-field"><span class="smw-value">csv</span></span></span>, <span class="smw-row"><span class="smw-field"><span class="smw-value">dsv</span></span></span>, <span class="smw-row"><span class="smw-field"><span class="smw-value">json</span></span></span>, <span class="smw-row"><span class="smw-field"><span class="smw-value">rdf</span></span></span></span>) enable data export from the wiki. In addition, other formats defined by the <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats" title="Extension:Semantic Result Formats">Extension "Semantic Result Formats"</a> extension () also enable data export. These formats differ from other formats in two ways: </p> <ol><li>Instead of displaying data on the page, they produce only a link to <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Ask" title="Special:Ask">Special:Ask</a>, which in turn outputs the data in a downloadable form. (This link is similar to the normal «further results» link, though it uses different default text, like «RSS»; it is possible to change the link text with the parameter <tt>searchlabel</tt>.)</li> <li>They use fixed standard formats for exporting (non-fixed, free-form) wiki content. Hence, for formats other than CSV and DSV, it must be explained which wiki properties belong to which part of the data export format.</li></ol> <p>The second point makes it necessary to relate printout statements (properties) to the data fields available in the export format. For example, <i>vCard</i> is a data format that can encode many kinds of contact data about a person, but it cannot represent arbitrary properties. To specify which wiki properties belong to which of the available data fields, the label of the property printout is used. For example, vCard supports (among many others) the data fields «firstname», «lastname» and «homepage». A query could thus be </p> <pre>{{#ask: [[Category:Person]] |?Firstname |?Lastname |?Url = homepage |format=vcard }} </pre> <p>Here the wiki would have properties called «firstname» and «lastname», but the homepage of a person is stored in a property called «url». The label «homepage» is given to the latter so that vCard recognizes the special meaning of this property. With this method, wikis can use arbitrary property names (in any language) and still export to standard formats. See the pages of the above formats for details on the data fields they support. </p> <h2><span class="mw-headline" id="Updating_of_inline_queries">Updating of inline queries</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=12" title="Edit section: Updating of inline queries">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/FAQ#Why_doesn.27t_data_I_have_just_added_show_up_in_queries.3F" title="FAQ">Why doesn't data I have just added show up in queries?</a></li></ul> <h2><span class="mw-headline" id="Avoid_Self-Referencing">Avoid Self-Referencing</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=13" title="Edit section: Avoid Self-Referencing">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <p>See <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Self-Referencing" title="Help:Self-Referencing">Help:Self-Referencing</a> for information about how using an <a class="mw-selflink selflink">inline query</a> for a property set on the same page can cause unexpected behavior. </p> <h2><span class="mw-headline" id="Related_tips">Related tips</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=edit&section=14" title="Edit section: Related tips">edit</a><span class="mw-editsection-bracket">]</span></span></h2> <ul><li>Tip on <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Excluding_a_page_from_an_inline_query" title="Help:Excluding a page from an inline query">excluding a page from an inline query</a></li> <li>Tip on <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Adding_specific_pages_to_an_inline_query" title="Help:Adding specific pages to an inline query">adding specific pages to an inline query</a></li> <li>Tip on <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Help:Image_tips" title="Help:Image tips">adding/displaying images in an inline query</a></li></ul> <p><br/> </p> <!-- NewPP limit report Cached time: 20230219190322 Cache expiry: 86400 Dynamic content: false [SMW] In‐text annotation parser time: 0.002 seconds CPU time usage: 0.208 seconds Real time usage: 0.220 seconds Preprocessor visited node count: 1817/1000000 Preprocessor generated node count: 6494/1000000 Post‐expand include size: 35671/2097152 bytes Template argument size: 4878/2097152 bytes Highest expansion depth: 8/40 Expensive parser function count: 0/100 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 1646/5000000 bytes ExtLoops count: 0 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 151.789 1 -total 31.98% 48.537 1 Template:User_manual 29.63% 44.976 1 Template:User_manual/List 11.24% 17.058 1 Template:Doc.info 7.85% 11.917 4 Template:Config 7.41% 11.249 1 Template:Interlanguage 7.34% 11.149 41 Template:User_manual/Tree_item 6.60% 10.015 1 Template:Doc.info.list 2.93% 4.450 2 Template:Note 2.32% 3.525 1 Template:TOC --> </div> <!-- Saved in parser cache with key DB9907220070920:pcache:idhash:448-0!canonical and timestamp 20230219190322 and revision id 74920 --> <div class="scite-content"><h2 id="References">References</h2> <div class="scite-referencelist responsive-list-mono" dir="ltr"><div class="scite-referencelist-columns-responsive-mono" style="width:100%;" dir="ltr"><ol start="1"><li id="scite-00430e5b8523682ceeae0def6dc9e2e9"><span class="scite-referencelinks"><a href="#scite-ref-00430e5b8523682ceeae0def6dc9e2e9-1-a" class="scite-backlink" data-citeref-format="number">^</a></span> <span class="scite-citation"><span class="scite-citation-resourcelink"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Browse/:Help:-24smwgQUpperbound-23-5FSCITE00430e5b8523682ceeae0def6dc9e2e9" title="Special:Browse/:Help:-24smwgQUpperbound-23-5FSCITE00430e5b8523682ceeae0def6dc9e2e9"></a></span> <span class="scite-citation-text">Semantic MediaWiki: GitHub issue <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230219232520/https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4263">gh:smw:4263</a></span></span></li></ol></div> <!-- end column --> <br style="clear: both;"/></div> </div></div><div class="printfooter"> Retrieved from "<a dir="ltr" href="https://web.archive.org/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&oldid=74920">https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&oldid=74920</a>"</div> <!-- end body text --> </div> <!-- category links --> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:User_manual" title="Category:User manual">User manual</a></li><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:Document" title="Category:Document">Document</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden category: <ul><li><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Category:I18n_reference_page" title="Category:I18n reference page">I18n reference page</a></li></ul></div></div> </div> </div> </div> </div> <div class="smwofootergrid container"> <div class="smwofooterrowtb row"> <div class="col-lg-1"> <div class="footer"> </div> </div> <div class="smwofootercomptb col-lg-10"> <!-- Tools--> <nav class="navbar navbar-default p-tb " id="p-tb"> <ul class="nav navbar-nav small"> <li id="t-whatlinkshere"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:WhatLinksHere/Help:Inline_queries" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li> <li id="t-recentchangeslinked"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:RecentChangesLinked/Help:Inline_queries" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li> <li id="t-specialpages"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li> <li id="t-print"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li> <li id="t-permalink"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&oldid=74920" title="Permanent link to this revision of the page">Permanent link</a></li> <li id="t-info"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Help:Inline_queries&action=info" title="More information about this page">Page information</a></li> <li id="t-cite"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/w/index.php?title=Special:CiteThisPage&page=Help%3AInline_queries&id=74920" title="Information on how to cite this page">Cite this page</a></li> <li id="t-smwbrowselink"><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Special:Browse/:Help:Inline-5Fqueries" rel="search">Browse properties</a></li> </ul> </nav> </div> <div class="col-lg-1"> <div class="footer"> </div> </div> </div> <div class="smwofooterrow row"> <div class="col-lg-1"> <div class="footer"> </div> </div> <div class="col-lg-10"> <!-- footer links --> <ul class="footer-info list-unstyled small" id="footer-info"> <!-- info --> <li> This page was last edited on 12 March 2020, at 14:38.</li> <li>Content is available under <a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:Copyrights" title="semantic-mediawiki.org:Copyrights">"Attribution 3.0 Germany" (CC BY 3.0 DE)</a> unless otherwise noted.</li> </ul> </div> <div class="col-lg-1"> <div class="footer"> </div> </div> </div> <div class="smwofooterrowb row"> <div class="col-lg-1"> <div class="footerb"> </div> </div> <div class="col-lg-6"> <!-- places --> <ul class="list-inline footer-places " id="footer-places"> <li><small><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:Privacy_policy" title="semantic-mediawiki.org:Privacy policy">Privacy policy</a></small></li> <li><small><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:About" title="semantic-mediawiki.org:About">About <semantic-mediawiki.org> (Imprint)</a></small></li> <li><small><a href="/web/20230219232520/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:General_disclaimer" title="semantic-mediawiki.org:General disclaimer">Disclaimers</a></small></li> </ul> </div> <div class="col-lg-4"> <!-- footer icons --> <ul class="list-inline pull-right footer-icons " id="footer-icons"> <!-- copyright --> <li><a href="https://web.archive.org/web/20230219232520/https://creativecommons.org/licenses/by/3.0/de/deed.en"><img src="/web/20230219232520im_/https://www.semantic-mediawiki.org/w/resources/assets/licenses/cc-by.png" alt=""Attribution 3.0 Germany" (CC BY 3.0 DE)" width="88" height="31"/></a></li> <!-- poweredby --> <li><a href="//web.archive.org/web/20230219232520/https://www.mediawiki.org/"><img src="/web/20230219232520im_/https://www.semantic-mediawiki.org/w/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/web/20230219232520im_/https://www.semantic-mediawiki.org/w/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /web/20230219232520im_/https://www.semantic-mediawiki.org/w/resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"/></a></li> <li><a href="https://web.archive.org/web/20230219232520/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAACJVBMVEXe3t62trbLy8vGxsbAwMDX19e6urqsrKxHcEzQ0NC2tratra2oqKixsbHd3eDFxcXe3t7U1NTa2trX19fQ0NDV1dWNjY2dnZ2UlJSUlJTS0tKUlJSWlpbR0dGenp79/f38/Pz+/v7t7e3v7+/u7u7s7Oz19fX29vb6+vr7+/vz8/Pz8/P4+fnw8PD39/gWTq/09PX6+vktX7b/sg8XT7F6mc/f5OwhVrNvkMthhsfT2+j7rQ/M1eZqjcmFotPs7e9Cb722xuFResK/zOObstnu7/Grvd3M1+mNqNY6aLoaUbEaUbZWfsTk6fE2Zrnp7O8bTq0kWLQuYcpcg8Xh5/Byk83a4eukud1/nM+6yeQkWcGwwuDxnRQyYrigttvI0+gpW7XGyttLdsBni8geVLo0Z9XlkCPb4u+QqtcfVLLo7PNHcr73phFGX6HsmBnpkxg6bNwnXcbX3er19vnr7/SVrdhuhLl+j70vVqY6Xqv0oxJVcbQhV76DjKTz9ffQ2evE0OZAbbzu7/PS1uFufrDnrGgpSZjy8/SQnMFddrKuekXSiCsgTKRaaZHejy9yang3VptNaqspWbnmliy3j2/m6OzT3e7x8fL4+v3p6uwaN2re0cifqLiLiZWYhYGYb0xXYn+5g0xwiMKYpc2BcHZmW2srRXpGWIhecKfilz4+WID2+PyosMywqbGqss1aVnLZq33p1sGklZqrp7dkfr7CpY9yg59Ud6QZAAAAH3RSTlPfBN/f39/f2wDf39vV3/7N2rrEz5D5c8ONuHaPuXXDImoxqwAABO1JREFUSMe1kQdz01gQgBXaBS4w9OtHwMFSdPKTUNxkW+61xN2Je4tLHJNOGukkAUINJTzaUIbO9fr7TpLtS44DZiC5b6Sn3dW+TysJaWz4cv9eZFPZu/+bhkakYR88WqP59u3vjxzdDCT7GpCD4qNH3sEGzOhB5MCR/4PmA8j25uZ33t0A23lxff5hZTIzOrz2Ph8qK936l7i1tT7hk8DAoHNsbeLWKjPdQcZ+qvX9tHMNXca1XBDXHtL6x2Bh0HWtuXUo8oTgC1gVpcdsdpew92PUYtjwzFq+E9mJYfXxx1x5l2/l5Vhy0DW6TuyQCZcR2hnswXJM0h+203471u5WKMIE5mDpspIIO8sZTMZiIbczY6+JCaI+/sJZ38qjP28+nQjkx/mcqGJ26rW3iKg/fYphCL1jNk5WbqXI0nBnu00RJ2j9bNRp6MmFS0SYIXLuUlQ5w22qizHr5MTyy2u/3XxVvHHlwtWVa/xTCQIIlEaMzrgswzA5P9BrAciYASqNoiNdjL8b0GYAHN3AGAEgzPSQc9UtYCeyBQAMO2G9PhhzXfp9qdifSCT6Lj788QQnrvWEuNPI2um0LW0D+m4A6E4AnIZOeq7ksQuJvi6eUXRW+8EWXsxNPhkYGJiSXr7Rd1qtVp9MXHkgIurzAkdFxjrj7cmKbN4K5v8RGxT2sJMTpwBflNHhUJgBdoUylzy3TuwIDBRi0hf9p9VtbW3qk30X7q2Je1IybZq7mLVWFKTSADXPoqi9AzVorda0kKTS6KkRbSgaR1GT1h5CObYiW1GU27yc5z6F9Fn/yTYedeLi9AIA6AbgxGIxAMPZcZeUHH9cFavVfY97FaNA/DbazRZVV89/61at2BTlg1JXiFtrYoBmRyd7p6/UP0XxaSDmy4pt0jmuh8qx6wQ2MmRz18TaJCUWO9xisUVhMMsoZZDiGHLLuXUbso2iatP/1HvhYu3n3bh6Pe/LUjZSj1NUJ8lSlNwahRRlMRjmyFDICikVn8+SacomdbZTVj+0mQSxweS1WqpiHK/Ncubs858f9idOJ/qKS1cv+RbFuIbMmHEvTbO4QeF25CxyD62nSbmJ1MUzRrpiwR0RPBJMpnCGxWVGXBn8TkarNGQHjuPrxOeWY4GY9FmxWHy19Gvv+ayYF6f8oYi7i8U93bjFkYokvbhWEFu8Og2ZxrUe3NMpc3vLhqqYpVV4XbwDQkpgoVwYKOR9N5d+eXB5vJevQA0pD7oVqi4WOj16vX6EYSA08WKvyeOZJw1cQ6rsnXOa/RYoM0Kls0zLuVoHhHAHL8YFXkwVCoE8uXhvMVCY8mW5Ci8eKkcgJ9azOl0UajNDFiUpj5JeloEqTgwd/iCUJP0sFMSejkpO96b4zl1fPuYiyd6Vs4GBmHSsJoYmLy/WeBTlis5rlJYrgjhe1s+XOXGEtHJOMl4VB2EHLauKdyG7JBLIc//uslRKkhOrcGJqyiU9z5UkOpVOwiGXSyQizRAfqlRc7Y5KJFnV6FReiWSV7xAWeQd/SOSq6qY18eVHq4vjlyazEJ73ScmJPVxJVKdF9MFwYpFIEL+ehvDOcSH8YXRsAa4XfwS7kd0tLfw7Sp7fl7xJywbYjTTVotfTb+849lEcb0K+2lMN/5o+tons+Rxp+PrQ8U3n0BcNSGPj4W+bPuX5ZLNo+uxwY+PfoLJHX1KXgyMAAAAASUVORK5CYII=" alt="Powered by Semantic MediaWiki" class="smw-footer" width="88" height="31"/></a></li> </ul> </div> <div class="col-lg-1"> <div class="footerb"> </div> </div> </div> </div><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"smw":{"limitreport-intext-parsertime":0.002},"limitreport":{"cputime":"0.208","walltime":"0.220","ppvisitednodes":{"value":1817,"limit":1000000},"ppgeneratednodes":{"value":6494,"limit":1000000},"postexpandincludesize":{"value":35671,"limit":2097152},"templateargumentsize":{"value":4878,"limit":2097152},"expansiondepth":{"value":8,"limit":40},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":1646,"limit":5000000},"timingprofile":["100.00% 151.789 1 -total"," 31.98% 48.537 1 Template:User_manual"," 29.63% 44.976 1 Template:User_manual/List"," 11.24% 17.058 1 Template:Doc.info"," 7.85% 11.917 4 Template:Config"," 7.41% 11.249 1 Template:Interlanguage"," 7.34% 11.149 41 Template:User_manual/Tree_item"," 6.60% 10.015 1 Template:Doc.info.list"," 2.93% 4.450 2 Template:Note"," 2.32% 3.525 1 Template:TOC"]},"loops":{"limitreport-count-unlimited":[0]},"cachereport":{"timestamp":"20230219190322","ttl":86400,"transientcontent":false}}});});</script><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":258});});</script></body> </html><!-- FILE ARCHIVED ON 23:25:20 Feb 19, 2023 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 09:28:45 Dec 11, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.542 exclusion.robots: 0.027 exclusion.robots.policy: 0.016 esindex: 0.012 cdx.remote: 10.905 LoadShardBlock: 97.688 (3) PetaboxLoader3.datanode: 79.498 (4) load_resource: 203.861 PetaboxLoader3.resolve: 121.456 -->