Template:Get Element Types: Difference between revisions

From OIAr Archive 2013
Jump to navigation Jump to search
(start)
(No difference)

Revision as of 01:22, 12 November 2012

This template only serves to find all element types for a given page. It is called with only one parameter:

{{Get Element Types|page=}}

After calling this template, there exist two arrays (using extension ArrayExtension):

  • Array "Cats", containing all categories that page is a member of (with a comma as delimiter)
  • Array "ElementTypes", containing the types of element that the page is a member of (stripped of the prefix "Element type" and with a comma as delimiter)

Thus, if page EL.Example is a member of categories FooBar, Element type foo, Element type bar, then
Cats=FooBar, Element type foo, Element type bar
ElementTypes=foo, bar