Template:WildStar/uiapi: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Use this at the top of all global UI Lua API pages. See [[{{BASEPAGENAME}}/UI API|UI API]]. Any pages with this template will be added to Category:WildStar UI API. ;Usag...") |
No edit summary |
||
Line 9: | Line 9: | ||
;Examples | ;Examples | ||
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction:duration' | 'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction:duration' | ||
<pre>{{ | <pre>{{--|uiapi|t=method}}</pre> | ||
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction.duration' | 'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction.duration' | ||
<pre>{{ | <pre>{{{--|uiapi|t=member}}</pre> | ||
[[Category:WildStar development templates|{{SUBPAGENAME}}]] | [[Category:WildStar development templates|{{SUBPAGENAME}}]] | ||
Line 18: | Line 18: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
-->{{#vardefine:sub|{{{ns|{{BASEPAGENAME}}}}}}}<!-- | -->{{#vardefine:sub|{{#ifeq:{{{ns|}}}||{{BASEPAGENAME}}|{{{ns|}}}}}}}<!-- | ||
--><div style="float:right; margin-left:1em; margin-bottom:1em;">{{{{#var:sub}}/devnav}}<!-- | --><div style="float:right; margin-left:1em; margin-bottom:1em;">{{ {{#var:sub}}/devnav }}<!-- | ||
-->{{#vardefine:tTYPE|{{#switch:{{#sub:{{SUBPAGENAME}}|0|3}}|API=api|#default=}}}}<!-- | -->{{#vardefine:tTYPE|{{#switch:{{#sub:{{SUBPAGENAME}}|0|3}}|API=api|#default=}}}}<!-- | ||
-->{{#vardefine:tSTYPE|{{#switch:{{#sub:{{SUBPAGENAME}}|4|4}}|TYPE=type|EVEN=event|#default=}}}}<!-- | -->{{#vardefine:tSTYPE|{{#switch:{{#sub:{{SUBPAGENAME}}|4|4}}|TYPE=type|EVEN=event|#default=}}}}<!-- | ||
-->{{#vardefine:tTOP|{{#switch:{{#var:tSTYPE}}|event=API events|type=API types|#default=UI API}}}}<!-- | -->{{#vardefine:tTOP|{{#switch:{{#var:tSTYPE}}|event=API events|type=API types|#default=UI API}}}}<!-- |
Revision as of 17:36, 19 March 2022
Use this at the top of all global UI Lua API pages. See UI API. Any pages with this template will be added to Category:WildStar UI API.
- Usage
- t= [member,method,type] (Optional) - Default is 'member'.
- member - page is an API member, like 'table member' as 'table.member'.
- method - page is an API method, like 'table member' as 'table:member'.
- name= [text] (Optional) - Override the generated identifier name, useful for names with underscores.
- Examples
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction:duration'
{{--|uiapi|t=method}}
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction.duration'
{{{--|uiapi|t=member}}
- Template
← UI API