Template:Protectedapi: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
Added to the top of any protected-always API page. See also {{t|protectedcombatapi}} and {{t|protectedhwapi}}. | |||
;Usage | |||
:<nowiki>{{protectedapi}} or {{protectedapi|version#|extra info or blank}} or {{protectedapi|t=type}}</nowiki> | |||
* 1 - wow version number | |||
* 2 or extra - extra info | |||
* t - [member, method, type] - identifier type for page, like if page subject is an general topic, object, method, or regular member or type. | |||
* toc - [0,1] - Force TOC enabled or disabled. Default depends on type. | |||
[[Category:Interface customization templates|{{PAGENAME}}]] | |||
---- | |||
;Template | |||
<onlyinclude><!-- | |||
-->{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|3}}}}<!-- | |||
-->{{#vardefine:tSTYPE|{{#sub:{{PAGENAME}}|4|4}}}}<!-- | |||
-->{{#vardefine:tNAME|{{#ifeq:{{#var:tTYPE}}|API|{{#sub:{{PAGENAME}}|{{#switch:{{#var:tSTYPE}}|TYPE=8|#default=4}}|0}}|{{PAGENAME}}}}}}<!-- | |||
-->{{#vardefine:tSTYPE|{{lc:{{{t|{{#var:tSTYPE}}}}}}}}}<!-- | |||
-->{{#switch:{{#var:tSTYPE}}|member|method={{#vardefine:tNAME|{{#replace:{{#var:tNAME}}|<nowiki> </nowiki>|{{#ifeq:{{#var:tSTYPE}}|member|.|:}}}}}}}}<!-- | |||
-->{{#vardefine:tFULLNAME|{{#switch:{{#var:tSTYPE}}|type=API types|#default=World of Warcraft API}}{{#if:|/{{{1|}}}}}}}<!-- | |||
-->{{#vardefine:tPARENTNAME|{{#switch:{{#var:tSTYPE}}|type=API types|#default=WoW API}}}}<!-- | |||
--><includeonly><!-- | |||
-->{{#if:{{{nosort|}}}||{{DEFAULTSORT:{{#var:tNAME}}}}}}__NOWYSIWYG__{{#ifeq:{{{toc|}}}|1||__NOTOC__}}<!-- | |||
--></includeonly><!-- | |||
-->{{Ambox | |||
| border= blue | |||
| image = [[Image:Icon-addon-48x48.png]] | |||
| type = '''This function is [[:Category:World_of_Warcraft_API/Protected_Functions|PROTECTED]], and can only be called from [[secure code|Blizzard code]].''' | |||
| info ={{#if:{{{1|}}} | |||
*It has been protected since patch {{{1}}}.}} | |||
{{#if:{{{extra|{{{2|}}}}}}| | |||
* {{{extra|{{{2|}}}}}}}} | |||
}}<!-- | |||
--><includeonly><!-- | |||
-->{{#ifeq:{{FULLPAGENAME}}|Category:{{#var:tFULLNAME}}||[[Category:{{#var:tFULLNAME}}]]}}<!-- | |||
--></includeonly><!-- | |||
--><includeonly>[[Category:World of Warcraft API/Protected Functions]]</includeonly></onlyinclude> |
Latest revision as of 03:38, 17 May 2020
Added to the top of any protected-always API page. See also {{protectedcombatapi}} and {{protectedhwapi}}.
- Usage
- {{protectedapi}} or {{protectedapi|version#|extra info or blank}} or {{protectedapi|t=type}}
- 1 - wow version number
- 2 or extra - extra info
- t - [member, method, type] - identifier type for page, like if page subject is an general topic, object, method, or regular member or type.
- toc - [0,1] - Force TOC enabled or disabled. Default depends on type.
- Template
This function is PROTECTED, and can only be called from Blizzard code.
|