Template:Display class icon

From Wikispooks
Revision as of 02:25, 16 July 2015 by Robin (talk | contribs) (t)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a semantic utility template to return the plaintext name of an icon for the page.
The logic is:

  • If the page has a Has objectClass property, then use that.
  • Else look at the namespace, and use that.