Difference between revisions of "Template:PrintElementAuthors"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
'''Parameters:''' | '''Parameters:''' | ||
− | * <code><nowiki>|theory=</nowiki></code> - the fullpagename of the | + | * <code><nowiki>|theory=</nowiki></code> - the fullpagename of the theory. |
− | * <code><nowiki>|intro=</nowiki></code> - initial text that | + | * <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. | ||
* <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead. | * <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead. |
Revision as of 20:30, 4 September 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.|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).