Template:Userfunc: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
Line 1: Line 1:
''Use this at the top of all [[User defined functions]] information pages (not WoW API or Widget pages!).'' Any pages with this template will be added to [[:Category:User defined functions]] and [[:Category:Snippets]].


[[Category:Interface customization templates|{{PAGENAME}}]]
----
;Template
<onlyinclude><div style="float: right; margin-left: 2em; margin-bottom: 1em;">{{apinav}}
{{#vardefine:tTYPE|{{{1|{{#sub:{{PAGENAME}}|0|7}}}}}}}{{#vardefine:tNAME|{{#ifeq:{{#var:tTYPE|}}|USERAPI|{{#sub:{{PAGENAME}}|8|0}}|{{PAGENAME}}}}}}
<div style="margin-left: 1em; margin-right: 1em;"><small>&rarr; [[:Category:User defined functions|Snippets]]</small></div></div><includeonly>{{#ifeq:{{PAGENAME}}|User defined functions|[[Category:UI Snippets]]|}}[[Category:User defined functions]][[Category:Snippets]]{{#if:{{{nosort|}}}||{{#ifeq:{{#var:tTYPE}}|USERAPI|{{DEFAULTSORT:{{#var:tNAME}}}}|}}}}</includeonly>{{notebox|This page documents a [[User defined functions|''user-defined function'']] that you can copy and paste into your addon. Replace &lt;PREFIX&gt; with your AddOn's prefix to avoid conflicts between different versions of these functions.}}{{#ifeq:{{#var:tTYPE}}|USERAPI|__NOTOC__|{{tocright}}}}{{#ifeq:{{PAGENAME}}|User defined functions||&larr; [[User defined functions]]{{#ifeq:{{#var:tTYPE}}|USERAPI|&nbsp;&lt;&nbsp;[[User defined functions#{{#var:tNAME}}|{{#var:tNAME}}]]}}}}</onlyinclude>

Revision as of 17:56, 21 September 2013

Use this at the top of all User defined functions information pages (not WoW API or Widget pages!). Any pages with this template will be added to Category:User defined functions and Category:Snippets.


Template
This page documents a user-defined function that you can copy and paste into your addon. Replace <PREFIX> with your AddOn's prefix to avoid conflicts between different versions of these functions.

User defined functions