Difference between revisions of "Template:GetPropertyValues"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
* <code><nowiki>|property=</nowiki></code> - the property to return. | * <code><nowiki>|property=</nowiki></code> - the property to return. | ||
* <code><nowiki>|links=</nowiki></code> - if non empty, then the values will be links to the respective pages (where available). | * <code><nowiki>|links=</nowiki></code> - if non empty, then the values will be links to the respective pages (where available). | ||
− | * <code><nowiki>| | + | * <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><!-- | </noinclude><includeonly><!-- | ||
Line 22: | Line 22: | ||
-->}}<!-- | -->}}<!-- | ||
--><!-- | --><!-- | ||
− | -->{{#if: {{{ | + | -->{{#if: {{{pretty|}}}<!-- |
-->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!-- | -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!-- | ||
-->|{{#arrayprint: values|, |@@@@|@@@@}}<!-- | -->|{{#arrayprint: values|, |@@@@|@@@@}}<!-- |
Revision as of 16:23, 16 August 2016
This template is used to return all the values of a given object's property.
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.|links=
- if non empty, then the values will be links to the respective pages (where available).|pretty=
- if non empty, a pretty list is produced where the last two elements are chained with an and (or the local languages equivalent).