Template:Get Element Types

From OIAr Archive 2013
Revision as of 01:22, 12 November 2012 by Jan Schoonderbeek (talk | contribs) (start)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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