Difference between revisions of "Template:GetPropertyValues"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> 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 me...")
 
Line 6: Line 6:
 
'''Parameters:'''
 
'''Parameters:'''
 
* <code><nowiki>|object=</nowiki></code> - the fullpagename of the modification.
 
* <code><nowiki>|object=</nowiki></code> - the fullpagename of the modification.
* <code><nowiki>|property=</nowiki></code> - if set, then the author's names will be links to the respective author pages.
+
* <code><nowiki>|property=</nowiki></code> - the property to return.
 +
* <code><nowiki>|links</nowiki></code> - if set, then the values will be links to the respective pages (where available).
 +
* <code><nowiki>|pretty</nowiki></code> - Pretty list output where the last two elements are chained with an ' and ' (or the local languages equivalent). Even though the delimiter parameter is empty, ', ' (or the languages equivalent) will be used since it wouldn't be pretty otherwise.
  
</noinclude><includeonly>{{#arraydefine: values
+
</noinclude><includeonly><!--
  | {{#ask: [[{{{object|}}}]] |mainlabel=- |headers=hide |link=none |?{{{property|}}} |limit=10000 }}
+
-->{{#arraydefine: values<!--
  | , | print=list, unique
+
  -->|{{#ask: [[{{{object|}}}]]<!--
}}</includeonly>
+
  -->|mainlabel=-<!--
 +
  -->|headers=hide<!--
 +
  -->|{{#if:{{{links|}}}|link=all|link=none}}<!--
 +
  -->|?{{{property|}}}<!--
 +
  -->|limit=10000<!--
 +
  -->}}<!--
 +
  -->| , |unique<!--
 +
-->}}<!--
 +
--><!--
 +
-->{{#if: {{{pretty|}}}<!--
 +
-->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--
 +
-->|{{#arrayprint: values|,&#32;|@@@@|@@@@}}<!--
 +
-->}}<!--
 +
--><!--
 +
--></includeonly>

Revision as of 16:12, 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 set, then the values will be links to the respective pages (where available).
  • |pretty - Pretty list output where the last two elements are chained with an ' and ' (or the local languages equivalent). Even though the delimiter parameter is empty, ', ' (or the languages equivalent) will be used since it wouldn't be pretty otherwise.