FANDOM


Use this at the top of all WoW widget API information pages. Any pages with this template will be added to Category:Widgets. See Widget API. See also Template:Widgetmethod, Template:Widgethandler, Template:Wowapi.

Usage
{{widget}} or {{widget|t=type}}
  • 1 - API context type, like 'Glue'. Default is regular game play UI context. Affects wiki categories and page parent folder. Used by 'Glue' environment API.
  • t - [member, method] - identifier type for page, like if page subject is an general topic, object, method, or regular member.
  • toc - [0,1] - Force TOC enabled or disabled. Default depends on type. Default is 1.
Examples
  • {{widget}} - Used for main page, widget topics, and widget api objects
  • {{widget|t=method}} - 'API Frame SetText' displays as 'Frame:SetText'.
  • {{widget|t=member}} - 'API Frame parent' displays as 'Frame.parent'.
  • {{widget|t=handler}} - 'UIHANDLER OnClick' displays as 'OnClick'.

Template
Widget API
Community content is available under CC-BY-SA unless otherwise noted.