Template:Macro: Difference between revisions

562 bytes added ,  3 November 2013
m
no edit summary
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
;Description
Use this at the top of all macro information pages. See also {{t|Macronav}} for the actual navbox, to use on non-documentation pages.
:''Use this at the top of all macro information pages.''


;See also
'''Macro pages are considered to be primariliy non-developer pages for regular wow users, verbiage on those pages should refect this.'''
* {{t|Macronav}} - just nav box


<!-- [ [Category:Navigation templates|{{PAGENAME}}] ] -->
----
----
;Template
<onlyinclude><!--


<onlyinclude><div style="float: right; margin-left: 2em; margin-bottom: 1em;">{{Macronav|doc=1}}
-->{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|5}}}}<!--  try to get the type, subtype and real name
<div style="margin-left: 1em; margin-right: 1em;"><small>&rarr; [[:Category:Macros|Macros]]</small></div>
-->{{#vardefine:tSTYPE|{{#sub:{{PAGENAME}}|6|4}}}}<!--
<includeonly>{{#if:{{{doc|}}}||[[Category:Macros]]}}</includeonly>
-->{{#vardefine:tNAME|{{#ifeq:{{#var:tTYPE}}|MACRO|{{#sub:{{PAGENAME}}|{{#switch:{{#var:tSTYPE}}|SOUN=11|#default=6}}|0}}|{{PAGENAME}}}}}}<!--
</div>
 
&rarr; [[Macro reference]]
--><div style="float:right; margin-left:2em; margin-bottom:1em;">{{Macronav|doc=1}}
</onlyinclude>
<div style="margin-left:1em; margin-right:1em;"><small>&rarr; [[:Category:Macros|Macros]]</small></div>
[[Category:Navigation templates|{{PAGENAME}}]]
<includeonly>{{#if:{{{nosort|}}}||{{DEFAULTSORT:{{#var:tNAME}}}}}}[[Category:Macros]]</includeonly>
</div>{{tocright}}{{#ifeq:{{PAGENAME}}|Macro commands||&rarr; [[Macro commands]]}}</onlyinclude>