Difference between revisions of "Template:GetPropertyValues"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template is used to return all the values of a given object's property. | + | This template is used to return all the values of a given object's property in a vertical list (bullets are optional). |
'''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. | ||
Line 9: | Line 9: | ||
* <code><nowiki>|intro=</nowiki></code> - the text that should precede the list, e.g. "Here are the major topics tackled by this author:". | * <code><nowiki>|intro=</nowiki></code> - the text that should precede the list, e.g. "Here are the major topics tackled by this author:". | ||
* <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>| | + | * <code><nowiki>|bullets=</nowiki></code> - if not empty, bullets will appear before every value. |
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Line 27: | Line 27: | ||
-->|0=<!-- | -->|0=<!-- | ||
-->|{{{intro|}}}<!-- | -->|{{{intro|}}}<!-- | ||
− | + | -->|{{#arrayprint: values|, |@@@@|{{#if: {{{bullets|}}}|* |}}@@@@ | |
− | + | <br/>}}<!-- | |
− | |||
− | |||
-->}}<!-- | -->}}<!-- | ||
--><!-- | --><!-- | ||
--></includeonly> | --></includeonly> |
Revision as of 01:15, 19 August 2016
This template is used to return all the values of a given object's property in a vertical list (bullets are optional).
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|object=
- the fullpagename of the modification.|property=
- the property to return.|intro=
- the text that should precede the list, e.g. "Here are the major topics tackled by this author:".|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.|bullets=
- if not empty, bullets will appear before every value.