Difference between revisions of "Template:PrintCommunityNotableMembers"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
m (HakobBarseghyan moved page Template:CommunityNotableMembers to Template:PrintCommunityNotableMembers without leaving a redirect)
 
Line 5: Line 5:
  
 
'''Parameters:'''
 
'''Parameters:'''
* <code><nowiki>|members=</nowiki></code> - a comma separated list of the notable members.
+
* <code><nowiki>|community=</nowiki></code> - the full pagename of the community.
 +
* <code><nowiki>|intro=</nowiki></code> - initial text that precedes the output, if at least some results exist.
 +
* <code><nowiki>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist.
 +
* <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead.
 +
* <code><nowiki>|link=</nowiki></code> - determines whether the values are to be printed as links to the respective pages (where available); possible values are ''none'', ''subject'', ''all''. If not given ''all'' is the default.
 +
* <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list will be produced.
  
</noinclude><includeonly>{{#if:{{{members|}}}|Here are some of the notable members of this community:
+
</noinclude><includeonly>{{GetPropertyValuesList|object={{{community|}}}|property=Has member|intro={{{intro|}}}|outro={{{outro|}}}|default={{{default|}}}|link={{{link|}}}|bullets={{{bullets|}}}|order=asc|}}</includeonly>
{{#arraydefine:members|{{{members|}}} }}
 
{{#arrayprint:members||@@@@|{{#if:@@@@|[[Has member::@@@@]]
 
<nowiki/> <br/>
 
|}}  
 
}}
 
}}</includeonly>
 

Latest revision as of 14:10, 6 November 2016

This template is used to print a list of the notable members of the community.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |community= - the full pagename of the community.
  • |intro= - initial text that precedes the output, if at least some results exist.
  • |outro= - text that is appended to the output, if at least some results exist.
  • |default= - if, for any reason, the query returns no results, this will be printed instead.
  • |link= - determines whether the values are to be printed as links to the respective pages (where available); possible values are none, subject, all. If not given all is the default.
  • |bullets= - if yes, a bullet-list will be produced.