Template:Docinfo/query/example2/doc

From semantic-mediawiki.org
Jump to: navigation, search
This is a documentation subpage for Template:Docinfo/query/example2.

It contains usage information, categories and other content that is not part of the original template page.

Function

This template is a sample query to document imformation involved in a specified user, with a little bit complicated format.

Usage

{{docinfo/query/example2
| username
| status =
| progress =
| priority =
| caetgory =
| sort =
}}

Parameters

  • 1 (username) 
–  restric query results to the documents in which user involved, as one of authors, editors or support staffs.
  • status 
–  restrict query results to the documents which have specified status only. You may describe multiple status values separated with a logical connective of disjunction {{!!}}, which alternates SMW logical connective || to avoid confusion with a parameter delemiter in templates.
  • progress 
–  restrict query results to the documents which have specified progress keyword only. Disjuction of values is available too.
  • priority 
–  restrict query results to the documents which have specified priority keyword only. Disjuction of values is available too.
  • category 
–  restrict query results to the documents which have specified category keyword only. Disjuction of values is available too.
  • sort 
–  sort query results by one ore more properties, seperated with comma.
Default value: namespace, docinfo category, docinfo status, docinfo progress,
  • order 
–  the order of each sorting properties, seperated with comma.
Default value: ASC, ASC, ASC, DESC, ASC (if parameter sort are NOT specified.)

Related templates