Template:Get ArchitectureRequirement Types

From OIAr Archive 2013
Revision as of 12:25, 3 March 2013 by Jan Schoonderbeek (talk | contribs) (template added, but with broken search.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template only serves to find all ArchitectureRequirement Types for a given page - it doesn't print them. It is called with only one parameter page:

{{Get ArchitectureRequirement Types|page=}}

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

  • Array "Cats", containing all categories that page is a member of;
  • Array "ArchitectureRequirements", containing the types of element that the page is a member of (stripped of the prefix "Architecture Requirement type")

Thus, if page AR.Example is a member of categories FooBar, Architecture Requirement type foo, Architecture Requirement type bar, then
Cats=FooBar,Architecture Requirement type foo,Architecture Requirement type bar
ArchitectureRequirementTypes=foo,bar After calling this template, you can access the categories and Architecture Requirement Types using the #arrayprint function. An example that creates a pretty, comma delimited list:

{{#arrayprint:ArchitectureRequirementTypes||@ |@ |print=pretty}}