Template:Api

From AddOn Studio
Jump to navigation Jump to search

Creates a link to a specific API element. Mark API actual pages with Template:widget, Template:wowapi, Template:attrtype. See shorthand templates Template:apif, Template:apiwidget, Template:xml, Template:xmlattr. See Template:id for list links that need a page #section reference.

Usage
  • 1 - name of the api
  • 2 - alternate link display text. Default is same as name of the api
  • 3 - parameter list. Default is not displaying parameters.
  • t - type of api. Default is 'api'. Options:
    • a|api - API function, other WoW API well-known global, member, or method
      Function -> API Function|Function
      Name.member -> API Global member|Global.member
      Name:Method -> API Global Method|Global:Method
    • f|func - API function but showing ellipses and parameters
    • t|type - API TYPE
    • e|event - Event
    • c|cvar - CVAR
    • w|widget - UIOBJECT widget or widget method or other member
      Widget -> UIObject Widget|Widget
      Widget.member -> API Widget member|Widget.member
      Widget:Method -> API Widget Method|Widget:Method
    • m|macro - MACRO
    • x|xml - XML
    • xa|xmlattr - XML attributes
Examples

API

Event

CVar

Widget

Type

Macro

XML


Template