Difference between revisions of "Ask"

From its-wiki.no
Jump to: navigation, search
(email list)
(email list)
Line 73: Line 73:
  
 
=== email list ===
 
=== email list ===
{{#ask: [[Category:User]] [[Project::IoTSec]] |mainlabel=- |?Prename= |?Name= |?email= |sep =  &nbsp;< >&nbsp; }}
+
{{#ask: [[-User.Project::IoTSec]] [[Partner::+]]|mainlabel=- |?Prename= |?Name= |?email= |sep =  &nbsp;< >&nbsp; }}
  
 
== Example ==
 
== Example ==

Revision as of 07:33, 9 September 2015

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

   
AdamSzekeresadam.szekeres@ntnu.no
AliKhalighiali.khalighi@fresnel.fr
AndersFøyenanders.foyen@microsoft.com
AneSolesvik Oppedalane.solesvik.oppedal@oslomedtech.no
AtleÅrnes
AudunAndersenaudun.andersen@e2u.no
BeateDuebeate.due@hio.no
Bernt A.Bremdalbernt@xalience.com
Bjarne TarjeiHaugenbjarne.tarjei.haugen@movation.no
BozoKrstajicbozok@ac.me
BriceMorinbrice.morin@sintef.no
ChristianJohansencristi@ifi.uio.no
ChristianResellchrifres@ifi.uio.no
Dang HaThe Hiendang.hien@esmartsystems.com
DanicaRadovanovićdanica@basicinternet.org
DavidAleksandersendavid.aleksandersen@smartsimulation.no
DavideRoversodavide.roverso@esmartsystems.com
DieterHirdesdieter.hirdes@ncesmart.com
EinarSnekkeneseinar.snekkenes@ntnu.no
ElaheFazeldehkordielahe.fazeldehkordi@its.uio.no
ElinSundby Boysene.s.boysen@gmail.com
ErikÅsbergerik.asberg@esmartsystems.com
GardJenssengard@smartebyernorge.no
GardStøe Valla
Geir ArneRimalagar@eyenetworks.no
GerbenKuijpersgku@kamstrup.com
GETINETESHETEgetina15@student.uia.no
Grete H.ColdevinGrete.Coldevin@smartgrids.no
GyörgyKálmángyorgy.kalman@its.uio.no
HabtamuAbiehabtamu.abie@nr.no
HamedArshadhamedar@ifi.uio.no
Hanne CecilieGeirbohannege@ifi.uio.no
Hans JørgenFurre Nygårdshaughans.nyg@gmail.com
HeidiTuiskulaheidi.tuiskula@smartinnovationnorway.com
HeidiVildskogheidi.vildskog@spydeberg.kommune.no
HenningMaagerudhm@forskningsradet.no
HåkonDuushakondu@ncesmart.com
IdunLyngstadily@rcn.no
IgorRadusinovicigorr@ac.me
IngeAnderssoninge.andersson@tieto.com
IvarRummelhoffIvar.Rummelhoff@nr.no
Jan PedroTumusokjpt@eyenetworks.no
Jan RichardAspheim
JanneHagenjanh@nve.no
JanuszGorskijango@pg.edu.pl
JayaprakashRajasekharanjayaprakash.rajasekharan@ncesmart.com
JohannaJohansenjohanna@johansenresearch.info
JonHaarjon.haar@kamstrup.com
JosefNolljosef.noll@its.uio.no
Kaniz FatemaTulykftuly@yahoo.com
... further results

Example

ongoing projects, based on [[Category:Project]] [[Due_date::> {{#expr:{{#time: Y|now}}}}]]

  • CURRENTYEAR is 2024, CURRENTTIME is 15:27, LOCALTIME is 15:27
  • date: 25 Februar 2016 or "now": 10 Jun 2024
  • see all time examples in: Help:Extension:ParserFunctions

recent pages


pages from 2013


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)

  1. Linn Daatland Sagen
  2. Smart house
  3. Routing
  4. Erik Stensrud Marstein
  5. DIOX Partner meeting Oct2023
  6. ... further results

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

Variables