<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://openeducation.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AShow</id>
	<title>Help:Show - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://openeducation.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AShow"/>
	<link rel="alternate" type="text/html" href="http://openeducation.wiki/w/index.php?title=Help:Show&amp;action=history"/>
	<updated>2026-05-09T07:27:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://openeducation.wiki/w/index.php?title=Help:Show&amp;diff=43026&amp;oldid=prev</id>
		<title>Pbacsich: new entry</title>
		<link rel="alternate" type="text/html" href="http://openeducation.wiki/w/index.php?title=Help:Show&amp;diff=43026&amp;oldid=prev"/>
		<updated>2023-05-17T14:32:27Z</updated>

		<summary type="html">&lt;p&gt;new entry&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Parser function '''&amp;lt;code&amp;gt;#show&amp;lt;/code&amp;gt;''' ==&lt;br /&gt;
&lt;br /&gt;
''This material is extracted from https://www.semantic-mediawiki.org/wiki/Help:Inline_queries''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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: &amp;lt;code&amp;gt;#show&amp;lt;/code&amp;gt;. For example, one can write the following to display the population of Berlin on a page:&lt;br /&gt;
&lt;br /&gt;
; Syntax&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#show: Demo:Berlin |?Population }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Result&lt;br /&gt;
{{#show: Demo:Berlin |?Population }}&lt;br /&gt;
&lt;br /&gt;
The parser function otherwise works like an inline query, and all parameters available for inline queries can also be used on &amp;lt;code&amp;gt;#show&amp;lt;/code&amp;gt; if desired. However note that the &amp;lt;code&amp;gt;#show&amp;lt;/code&amp;gt; parser function only takes one argument (a page) as the query condition, i.e. the name of the page that should be queried.&lt;br /&gt;
&lt;br /&gt;
The above query written with the &amp;lt;code&amp;gt;#ask&amp;lt;/code&amp;gt; parser function looks as follows:&lt;br /&gt;
&lt;br /&gt;
; Syntax&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#ask: [[Demo:Berlin]] |?Population= |mainlabel=- }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Result&lt;br /&gt;
{{#ask: [[Demo:Berlin]] |?Population= |mainlabel=- }}&lt;br /&gt;
&lt;br /&gt;
Here the &amp;quot;&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&amp;quot; added to the queried property &amp;quot;&amp;lt;code&amp;gt;?Population&amp;lt;/code&amp;gt;&amp;quot; removes the display of the property label and parameter &amp;quot;&amp;lt;code&amp;gt;mainlabel=&amp;lt;/code&amp;gt;&amp;quot;  followed by the &amp;quot;&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;&amp;quot; symbol removes the first result column and the label of the column.&lt;br /&gt;
&lt;br /&gt;
Without this, the result would display a table with two columns and rows:&lt;br /&gt;
&lt;br /&gt;
; Syntax&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#ask: [[Berlin]] |?Population }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Result&lt;br /&gt;
{{#ask: [[Berlin]] |?Population }}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;gt; [[Help:Index]]&lt;br /&gt;
&lt;br /&gt;
[[Category:ZWIKI Help]]&lt;/div&gt;</summary>
		<author><name>Pbacsich</name></author>
	</entry>
</feed>