Template:Display class icon

From Wikispooks
Revision as of 18:02, 15 July 2015 by Robin (talk | contribs) (better fallback icon for pages without templates (namespace aware))
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.