Difference between revisions of "Template:GetPropertyValues"

From Encyclopedia of Scientonomy
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>|print=</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><!--
 
</noinclude><includeonly><!--
Line 22: Line 22:
 
-->}}<!--
 
-->}}<!--
 
--><!--
 
--><!--
-->{{#if: {{{print|}}}<!--
+
-->{{#if: {{{pretty|}}}<!--
 
  -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--
 
  -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--
 
  -->|{{#arrayprint: values|,&#32;|@@@@|@@@@}}<!--
 
  -->|{{#arrayprint: values|,&#32;|@@@@|@@@@}}<!--

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).