Difference between revisions of "Template:PrintElementAuthors"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template is used to return the list of the author of the | + | This template is used to return the list of the author of the given element in one line with an option to add links and/or print it ''pretty''. An element can be a theory, a method, or any other potential element that has a ''Has Author'' property. |
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. | '''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. | ||
'''Parameters:''' | '''Parameters:''' | ||
− | * <code><nowiki>| | + | * <code><nowiki>|element=</nowiki></code> - the fullpagename of the element be it a theory, a method or something else. |
* <code><nowiki>|intro=</nowiki></code> - initial text that precedes the output, if at least some results exist. | * <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>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist. | ||
Line 12: | Line 12: | ||
* <code><nowiki>|pretty=</nowiki></code> - if non empty, a ''pretty'' list is produced where the last two elements are chained with an ''and'' (or the local languages equivalent). | * <code><nowiki>|pretty=</nowiki></code> - if non empty, a ''pretty'' list is produced where the last two elements are chained with an ''and'' (or the local languages equivalent). | ||
− | </noinclude><includeonly>{{GetPropertyValues|object={{{ | + | </noinclude><includeonly>{{GetPropertyValues|object={{{element|}}}|property=Has Author|intro={{{intro|}}}|outro={{{outro|}}}|default={{{default|}}}|link={{{link|}}}|pretty={{{pretty|}}}|}}</includeonly> |
Latest revision as of 15:07, 7 December 2016
This template is used to return the list of the author of the given element in one line with an option to add links and/or print it pretty. An element can be a theory, a method, or any other potential element that has a Has Author property.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|element=
- the fullpagename of the element be it a theory, a method or something else.|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.|pretty=
- if non empty, a pretty list is produced where the last two elements are chained with an and (or the local languages equivalent).