Template:Macroapi: Difference between revisions
Jump to navigation
Jump to search
(Template creation) |
m (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
''Use this at the top of all global Macro API pages.'' Any pages with this template will be added to [[:Category:Macro API]]. Any pages which are slash commands, 'MACRO xxxx', will be also added to the [[:Category:Macros]]. | |||
Use this at the top of all macro information pages. See also {{t|Macronav}} for the actual navbox, to use on non-documentation pages. | |||
'''Macro pages are considered to be primariliy non-developer pages for regular wow users, verbiage on those pages should refect this.''' | |||
[[Category:Interface customization templates|{{PAGENAME}}]] | |||
---- | |||
;Template | |||
<onlyinclude><!-- | |||
-->{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|5}}}}<!-- try to get the type, subtype and real name | |||
-->{{#vardefine:tSTYPE|{{#sub:{{PAGENAME}}|6|4}}}}<!-- | |||
-->{{#vardefine:tNAME|{{#ifeq:{{#var:tTYPE}}|MACRO|{{#sub:{{PAGENAME}}|{{#switch:{{#var:tSTYPE}}|SOUN=11|#default=6}}|0}}|{{PAGENAME}}}}}}<!-- | |||
--><div style="float:right; margin-left:2em; margin-bottom:1em;"><div style="display:inline-block;vertical-align:top">{{Macronav|doc=1}}<div style="margin-left:1em;margin-right:1em;"><small>→ [[:Category:Slash commands|Commands]]</small></div></div><div style="display:inline-block">{{apinav}}<div style="margin-left:1em; margin-right:1em;"><small>→ [[:Category:Macro API|Macro API]]</small></div></div></div>{{tocright}}<includeonly>{{#if:{{{nosort|}}}||{{DEFAULTSORT:{{#var:tNAME}}}}}}{{#ifeq:{{#var:tTYPE}}|MACRO|[[Category:Macros]][[Category:Slash commands]]|[[Category:Macro API]]}}</includeonly> | |||
{{#switch:{{PAGENAME}}|Slash commands=|Macro API=|#default=→ [[Slash commands]]}} | |||
</onlyinclude> |
Latest revision as of 22:15, 3 November 2013
Use this at the top of all global Macro API pages. Any pages with this template will be added to Category:Macro API. Any pages which are slash commands, 'MACRO xxxx', will be also added to the Category:Macros.
Use this at the top of all macro information pages. See also {{Macronav}} for the actual navbox, to use on non-documentation pages.
Macro pages are considered to be primariliy non-developer pages for regular wow users, verbiage on those pages should refect this.
- Template