Template:Widget

From AddOn Studio
Revision as of 04:54, 15 February 2015 by Authors on WoWWiki (talk | contribs) (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
Jump to navigation Jump to search

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