Difference between revisions of "Template:PrintElementAuthors"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
'''Parameters:''' | '''Parameters:''' | ||
* <code><nowiki>|theory=</nowiki></code> - the fullpagename of the theory; must be either a descriptive or a normative theory. NOTE: cannot be a definition since they don't have a Title property. | * <code><nowiki>|theory=</nowiki></code> - the fullpagename of the theory; must be either a descriptive or a normative theory. NOTE: cannot be a definition since they don't have a Title property. | ||
+ | * <code><nowiki>|intro=</nowiki></code> - initial text that prepends 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 printer as links to the respective pages (where available); possible values are ''none'', ''subject'', ''all''. If not given ''all'' is the default. | * <code><nowiki>|link=</nowiki></code> - determines whether the values are to be printer as links to the respective pages (where available); possible values are ''none'', ''subject'', ''all''. If not given ''all'' is the default. | ||
* <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={{{theory|}}}|property=Has Author|link={{{link|}}}|pretty={{{pretty|}}}|}}</includeonly> | + | </noinclude><includeonly>{{GetPropertyValues|object={{{theory|}}}|property=Has Author|intro={{{intro|}}}|outro={{{outro|}}}|default={{{default|}}}|link={{{link|}}}|pretty={{{pretty|}}}|}}</includeonly> |
Revision as of 00:42, 20 August 2016
This template is used to return the list of the author of the theory in one line with an option to add links and/or print it pretty.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|theory=
- the fullpagename of the theory; must be either a descriptive or a normative theory. NOTE: cannot be a definition since they don't have a Title property.|intro=
- initial text that prepends 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 printer 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).