Difference between revisions of "Template:List experts"

From SNIC Documentation
Jump to: navigation, search
(Created page with "<noinclude> Usage: <nowiki>{{</nowiki>list experts|''page''|''default''}} This template will generate a list of experts on the matter described on ''page'' (defaults to <nowiki>...")
 
Line 2: Line 2:
 
Usage: <nowiki>{{</nowiki>list experts|''page''|''default''}}
 
Usage: <nowiki>{{</nowiki>list experts|''page''|''default''}}
  
This template will generate a list of experts on the matter described on ''page'' (defaults to <nowiki>{{PAGENAME}}</nowiki>), e.g. people who are tagged with the expertise ''page'' or are in one of its [[Property:Field]]s. It also works for category pages. ''default'' can be used to change the message that is displayed if no experts are found.
+
This template will generate a list of experts on the matter described on ''page'' (defaults to <nowiki>{{PAGENAME}}</nowiki>). If there are any people who are tagged with the expertise ''page'', then only these people will be displayed. Otherwise, people in one of its [[Property:Field]]s will be shown. It also works for category pages. ''default'' can be used to change the message that is displayed if no experts are found.
  
 
The format currently used is a semantic mediawiki sortable table with the columns research area and expertise, but that may be subject to change in the future.
 
The format currently used is a semantic mediawiki sortable table with the columns research area and expertise, but that may be subject to change in the future.
Line 11: Line 11:
 
  {{</nowiki>list experts|page=HMMER<nowiki>}}</nowiki>
 
  {{</nowiki>list experts|page=HMMER<nowiki>}}</nowiki>
  
</noinclude><includeonly><onlyinclude>{{#ask: {{get experts|page={{{page|{{PAGENAME}}}}}|fields={{#ask: [[{{{page|{{PAGENAME}}}}}]] |?field=|link=none}} }}
+
</noinclude><includeonly><onlyinclude>{{#if: {{#ask: [[expertise::{{{page|{{PAGENAME}}}}}]]|limit=1}}|{{list specific experts|page={{{page|{{PAGENAME}}}}}}}|{{list general experts|page={{{page|{{PAGENAME}}}}}}}}}</onlyinclude></includeonly>
|?field
 
|?expertise
 
|default={{{default|Currently no experts have registered special competence in this subject.}}}
 
}}</onlyinclude></includeonly>
 

Revision as of 09:19, 12 September 2011

Usage: {{list experts|page|default}}

This template will generate a list of experts on the matter described on page (defaults to {{PAGENAME}}). If there are any people who are tagged with the expertise page, then only these people will be displayed. Otherwise, people in one of its Property:Fields will be shown. It also works for category pages. default can be used to change the message that is displayed if no experts are found.

The format currently used is a semantic mediawiki sortable table with the columns research area and expertise, but that may be subject to change in the future.

Examples:

 {{list experts}}
 {{list experts|page=HMMER}}