Ask
Wiki for ITS | ||||||
---|---|---|---|---|---|---|
|
Contents
Explanation of Semantic MediaWiki ask function
see also Test-Ask for invers properties
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}}]] ommit main label: | mainlabel=- | {{#show: Berlin | ?population }}
Tips and Tricks
Recommendation from Neill: I always hide the raw page name as much as possible and use aliases so queries return more user friendly links.
{{#set:Page Link=[[{{FULLPAGENAME}}|{{{Page Title|}}}]]}} where Page Title is usually a field in the form. Sometimes I prepend with a section ID {{#set:Page Link=[[{{FULLPAGENAME}}|{{{Section ID|}}}-{{{Page Title|}}}]]}}
Then in the queries I return Page Link and use mainlabel=- to suppress the raw page name field.
{{#ask: |?Page Link .. .. |mainlabel=- }}
Note:
- <section id="main"> <!-- main page content goes in here --> </section>
- define Page Link as a Special:Property
email list
Example
ongoing projects, based on [[Category:Project]] [[Due_date::> {{#expr:{{#time: Y|now}}}}]]
- CURRENTYEAR is 2024, CURRENTTIME is 21:15, LOCALTIME is 21:15
- date: 25 Februar 2016 or "now": 06 May 2024
- see all time examples in: Help:Extension:ParserFunctions
recent pages
- Solar Energy System for effective learning, teaching and job opportunities (Modification dateThis property is a special property in this wiki. 3 May 2024 14:05:04)
- Dickson.Domician (Modification dateThis property is a special property in this wiki. 3 May 2024 07:06:22)
- TEK5530/List of Questions (Modification dateThis property is a special property in this wiki. 29 April 2024 13:48:08)
- CEAFPD (Modification dateThis property is a special property in this wiki. 24 April 2024 13:07:51)
- Fadhili Kyabira (Modification dateThis property is a special property in this wiki. 24 April 2024 13:07:20)
- Regional Competence Centre (Modification dateThis property is a special property in this wiki. 24 April 2024 12:01:11)
- TEK5530 (Modification dateThis property is a special property in this wiki. 23 April 2024 12:14:08)
- File:TEK5530 Main TakeAway L1-L15.pdf (Modification dateThis property is a special property in this wiki. 22 April 2024 22:55:44)
- File:TEK5530-L14-CloudServices CloudSecurity.pdf (Modification dateThis property is a special property in this wiki. 22 April 2024 21:54:13)
- File:TEK5530-L13-IntrusionDetection.pdf (Modification dateThis property is a special property in this wiki. 15 April 2024 23:18:00)
- ... further results
pages from 2013
- Main page (Modification dateThis property is a special property in this wiki. 21 December 2013 22:17:09)
- Oulu (Modification dateThis property is a special property in this wiki. 21 December 2013 16:34:48)
- UiO (Modification dateThis property is a special property in this wiki. 21 December 2013 16:29:05)
- UNIK (Modification dateThis property is a special property in this wiki. 20 December 2013 14:51:30)
- FreeSecEDU UiO (Modification dateThis property is a special property in this wiki. 20 December 2013 14:49:19)
- FreeSecEDU (Modification dateThis property is a special property in this wiki. 20 December 2013 14:19:11)
- PM (Modification dateThis property is a special property in this wiki. 20 December 2013 14:18:47)
- Output (Modification dateThis property is a special property in this wiki. 20 December 2013 14:18:24)
- Email (Modification dateThis property is a special property in this wiki. 20 December 2013 14:18:21)
- Partner Abbreviation (Modification dateThis property is a special property in this wiki. 20 December 2013 14:17:56)
- ... further results
recent pages in slideshow
Note: format=slideshow is supported in this version, and shown in:
recent pages, random
[[modification date::+]] shows only pages that exist (not deleted ones)
The part "{{{ns}}}" of the query was not understood. Results might not be as expected.
Variables
- ARTICLEPAGENAME, TALKPAGENAME
- see more http://en.wikipedia.org/wiki/Help:Magic_words