Template:WildStar/uiapi: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
;Examples
;Examples
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction:duration'
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction:duration'
<pre>{{--|uiapi|t=method}}</pre>
<pre>{{\|uiapi|t=method}}</pre>
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction.duration'
'API AuctionFrameAuction duration' displays link as 'AuctionFrameAuction.duration'
<pre>{{{--|uiapi|t=member}}</pre>
<pre>{{{\|uiapi|t=member}}</pre>


[[Category:WildStar development templates|{{SUBPAGENAME}}]]
[[Category:WildStar development templates|{{SUBPAGENAME}}]]
Line 19: Line 19:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--


-->{{#vardefine:sub|{{{ns|{{#var:sub}}}}}|{{NAMESPACE}}}}<!--
-->{{#vardefine:sub|{{{ns|{{#var:sub|{{NAMESPACE}}}}}}}}}<!--


--><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}}<!--
Line 39: Line 39:
--><div style="margin:0 .5em 0 1em;"><small>&rarr; [[:Category:{{#var:sub}} {{#var:tCAT}}|{{#var:tCAT}}]]</small></div><!--
--><div style="margin:0 .5em 0 1em;"><small>&rarr; [[:Category:{{#var:sub}} {{#var:tCAT}}|{{#var:tCAT}}]]</small></div><!--


--></div>{{#ifeq:{{{toc|}}}|0|__NOTOC__|{{#ifeq:{{{tocright|}} }|0||<span class="ws-compact" style="font-size:.93em;{{#var:tTF}}">{{tocright}}</span>}}}}<!--
--></div>{{#ifeq:{{{toc|}}}|1|{{#ifeq:{{{tocright|}}}|0||<span class="ws-compact" style="font-size:.93em;{{#var:tTF}}">{{tocright}}</span>}}|__NOTOC__}}<!--
-->{{#ifeq:{{SUBPAGENAME}}|{{#var:tTOP}}||<!--                    if is a top list page, nada
-->{{#ifeq:{{SUBPAGENAME}}|{{#var:tTOP}}||<!--                    if is a top list page, nada
   -->&larr; [[{{#var:sub}}/{{#var:tTOP}}|{{#var:tTOP}}]]<!--      top list page
   -->&larr; [[{{#var:sub}}:{{#var:tTOP}}|{{#var:tTOP}}]]<!--      top list page
   -->{{#ifeq:{{#var:tTYPE}}|api|<!--                              API member pages
   -->{{#ifeq:{{#var:tTYPE}}|api|<!--                              API member pages
     -->&nbsp;&lt;&nbsp;<!--
     -->&nbsp;&lt;&nbsp;<!--
     -->{{#if:{{#var:tOWNER}}<!--
     -->{{#if:{{#var:tOWNER}}<!--
       -->|[[{{#var:sub}}/{{#var:tPARENT}}#{{#var:tNAME}}|{{#var:tNAME}}]]<!--
       -->|[[{{#var:sub}}:{{#var:tPARENT}}#{{#var:tNAME}}|{{#var:tNAME}}]]<!--
       -->|[[{{#var:sub}}/{{#var:tTOP}}#{{#var:tNAME}}|{{#var:tNAME}}]]<!--
       -->|[[{{#var:sub}}:{{#var:tTOP}}#{{#var:tNAME}}|{{#var:tNAME}}]]<!--
     -->}}<!--
     -->}}<!--
   -->}}<!--
   -->}}<!--

Latest revision as of 07:36, 9 August 2023

UI API

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