Difference between revisions of "Ask"
From its-wiki.no
Josef.Noll (Talk | contribs) (→Example) |
Josef.Noll (Talk | contribs) (→Example) |
||
Line 52: | Line 52: | ||
ongoing projects, based on <nowiki> {{now}}::<{{Due_date}} </nowiki> | ongoing projects, based on <nowiki> {{now}}::<{{Due_date}} </nowiki> | ||
* CURRENTYEAR is {{CURRENTYEAR}}, CURRENTTIME is {{CURRENTTIME}}, LOCALTIME is {{LOCALTIME}} | * CURRENTYEAR is {{CURRENTYEAR}}, CURRENTTIME is {{CURRENTTIME}}, LOCALTIME is {{LOCALTIME}} | ||
− | * date: {{#formatdate:25 Februar 2016|dMY}} or "now": {{#time: d | + | * date: {{#formatdate:25 Februar 2016|dMY}} or "now": {{#time: d M Y|now }} |
=== recent pages === | === recent pages === | ||
{{#ask:[[Modification date::+]] | {{#ask:[[Modification date::+]] | ||
Line 65: | Line 65: | ||
''Note: format=slideshow is supported in this version, and shown in:'' | ''Note: format=slideshow is supported in this version, and shown in:'' | ||
− | {{#ask:[[Modification date: | + | {{#ask:[[Modification date:>{{CURRENTYEAR}}]] |
|?=search for modified pages# | |?=search for modified pages# | ||
|?Modification date | |?Modification date |
Revision as of 11:08, 12 March 2015
Wiki for ITS | ||||||
---|---|---|---|---|---|---|
|
Contents
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}}]] ommit main label: | mainlabel=- | {{#show: Berlin | ?population }}
Example
ongoing projects, based on {{now}}::<{{Due_date}}
- CURRENTYEAR is 2024, CURRENTTIME is 05:42, LOCALTIME is 05:42
- date: 25 Februar 2016 or "now": 19 May 2024
recent pages
- Robert Walstad (Modification dateThis property is a special property in this wiki. 13 May 2024 10:20:09)
- IEEE 6G Summit 2024, 13-14 May 2024, Dresden (Modification dateThis property is a special property in this wiki. 13 May 2024 10:19:19)
- (Modification dateThis property is a special property in this wiki. 13 May 2024 10:14:54)
- Uni Dresden (Modification dateThis property is a special property in this wiki. 13 May 2024 10:14:17)
- Gerhard Fettweis (Modification dateThis property is a special property in this wiki. 13 May 2024 10:14:05)
- Messe@Dresden (Modification dateThis property is a special property in this wiki. 13 May 2024 10:13:37)
- Some very long page name that will hopefully never get created ABCDEF123 (Modification dateThis property is a special property in this wiki. 13 May 2024 10:13:37)
- 6G for Connecting the Future of Every Single Human 2024/05/14 (Modification dateThis property is a special property in this wiki. 13 May 2024 10:08:53)
- File:202405 6G Dresden Noll.pdf (Modification dateThis property is a special property in this wiki. 13 May 2024 10:08:50)
- (Modification dateThis property is a special property in this wiki. 13 May 2024 10:07:24)
- ... further results
recent pages in slideshow
Note: format=slideshow is supported in this version, and shown in:
- Some part "<nowiki>...</nowiki>" of the query was not understood.
- Some subquery has no valid condition.
recent pages, random
[[modification date::+]] shows only pages that exist (not deleted ones)
- Zeker online: Strengthening Trust in Cloud Services 2018/04/26
- File:20150508Int of energy.pptx
- ... further results
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