Difference between revisions of "Ask"

From its-wiki.no
Jump to: navigation, search
m
 
(recent pages in slideshow)
Line 65: Line 65:
 
|sort=Modification date
 
|sort=Modification date
 
|order=descending
 
|order=descending
|limit=3
+
|limit=5
 
}}
 
}}
  

Revision as of 08:16, 8 April 2014

Explanation of Semantic MediaWiki ask function

help page

http://semantic-mediawiki.org/wiki/Help:Selecting_pages, including " ::>, ::! "

output to vcard

Warning: exports all users on this wiki ... further results

for errors, see Josef_Noll

Example

 {{#ask:[[Category::User]]
 |?=search for users#
 |?User
 |?Date
 |?Title
 |format=broadtable
 |limit=5
 |offset=1
 |link=all
 |sort=User count
 |order=descending
 |headers=plain
 |mainlabel=search for users
 |intro=results
 |outro=done
 |searchlabel=… further results
 |default=no results found
 |class=sortable wikitable smwtable
 }}

<!--- ask with OR connection, as used in Template:User --->
{{#ask: [[Supervisor::{{SUBJECTPAGENAME}}]] OR [[Lecturer::{{SUBJECTPAGENAME}}]] OR 
[[User::{{SUBJECTPAGENAME}}]] OR [[{{SUBJECTPAGENAME}}]]

Example

recent pages


recent pages in slideshow

Note: format=slideshow not supported in this version, needs upgrade to SMW v1.18

use Special:Nude to delete pages

recent pages, random

The date "+" was not understood.The date "+" was not understood. shows only pages that exist (not deleted ones)

  1. Manoj Arora
  2. Semantic Modelling and Measuring of Privacy for IoT in Smart Home
  3. Maghsoud Morshedi
  4. Router
  5. Sabrina Sartori.jpg
  6. ... further results

The part "{{{ns}}}" of the query was not understood. Results might not be as expected.

Variables