Template:WoW/usermacro: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
<noinclude>
''Use this at the top of all [[User defined macros]] information pages (not WoW API or Widget pages!).'' Any pages with this template will be added to [[:Category:User defined macros]] and [[:Category:Snippets]].
Please use this template in all [[User defined macros]] added as general snippets. Any pages with this template will be added to [[:Category:User defined macros]].
 
[[Category:Interface customization templates|{{PAGENAME}}]]
[[Category:Interface customization templates|{{PAGENAME}}]]
----
----
 
;Template
 
<onlyinclude><div style="float:right; margin-left:2em; margin-bottom:1em;">{{macronav|doc=1}}</div><!--
</noinclude><includeonly>[[Category:User defined macros]]</includeonly>{{Notebox|This is a [[User defined macros|''user-defined macros'']] that you can copy and paste into your own players macros.
--><div style="float:right; clear:right; margin-left:2em; margin-bottom:1em;">{{apinav}}
}}
{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|9}}}}{{#vardefine:tNAME|{{#ifeq:{{#var:tTYPE|}}|USERMACRO|{{#sub:{{PAGENAME}}|10|0}}|{{PAGENAME}}}}}}
<div style="margin-left: 1em; margin-right: 1em;"><small>&rarr; [[:Category:User defined macros|User Macro]]</small></div></div><includeonly>{{#ifeq:{{PAGENAME}}|User defined macros|[[Category:UI Snippets]]|}}[[Category:User defined macros]][[Category:Snippets]]{{#if:{{{nosort|}}}||{{#ifeq:{{#var:tTYPE}}|USERMACRO|{{DEFAULTSORT:{{#var:tNAME}}}}|}}}}</includeonly>{{#ifeq:{{#var:tTYPE}}|USERMACRO|__NOTOC__|{{tocright}}}}&larr; {{#ifeq:{{PAGENAME}}|User defined macros|[[User defined functions|Snippets]]|[[User defined macros]]{{#ifeq:{{#var:tTYPE}}|USERMACRO|&nbsp;&lt;&nbsp;[[User defined macros#{{#var:tNAME}}|{{#var:tNAME}}]]}}}}</onlyinclude>

Latest revision as of 19:06, 3 November 2013