Difference between revisions of "Template:Get experts"

From SNIC Documentation
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
  <nowiki>
 
  <nowiki>
 
  {{get experts|GROMAX|Category:Bioinformatics, Category:Computational chemistry}}
 
  {{get experts|GROMAX|Category:Bioinformatics, Category:Computational chemistry}}
  {{get experts|{{PAGENAME}}|{{#ask: [[{{PAGENAME}}]]|?research area=|link=none}}}}</nowiki>
+
  {{get experts|{{PAGENAME}}|{{#ask: [[{{PAGENAME}}]]|?field=|link=none}}}}</nowiki>
  
</noinclude><includeonly><onlyinclude>[[Category:Person]] <q>[[expertise::{{{page}}}]] OR [[research area::Category:{{{page}}}]] {{#if: {{{research areas|}}}|OR [[research area::{{#replace:{{{research areas}}}|, Category:|{{pipe}}{{pipe}} Category:}}]]}}</q></onlyinclude></includeonly>
+
</noinclude><includeonly><onlyinclude>[[Category:Person]] <q>[[expertise::{{{page}}}]] OR [[field::Category:{{{page}}}]] {{#if: {{{fields|}}}|OR [[field::{{#replace:{{{fields}}}|, Category:|{{pipe}}{{pipe}}Category:}}]]}}</q></onlyinclude></includeonly>

Latest revision as of 12:17, 8 July 2011

Unless you really know what you are doing, you should probably use Template:List experts instead.

This template generates the page selection part of a query for experts. It will yield pages for people who have the expertise page, have the field Category:page, or otherwise have one of the fields, which should be given as a comma separated list of category page names including the 'Category:' namespace part. These nonconventional requirements on fields have technical motivations related to how {{#show: ... }} render results for pages with multiply set properties, and may be subject to change in the future.

Examples:

 {{get experts|GROMAX|Category:Bioinformatics, Category:Computational chemistry}}
 {{get experts|{{PAGENAME}}|{{#ask: [[{{PAGENAME}}]]|?field=|link=none}}}}