Template:Tab: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#ifeq:{{SERVERNAME}}|heroes.thelazy.net|<tab {{{attr|}}} style='{{{style|}}}' name="{{{name|}}}">}}</includeonly><noinclude> ==Usage== <pre>{{tabs|attr=plain|style=text-align:center; margin:0;}}{{tab|name=HotA}}Horn of the Abyss{{endtab}}{{tab|name=SoD}}Shadow of Death{{endtab}}{{endtabs}}</pre> {{tabs|attr=plain|style=text-align:center; margin:0;}}{{tab|name=HotA}}Horn of the Abyss{{endtab}}{{tab|name=SoD}}Shadow of Death{{endtab}}{{endtabs}} ==Variable...")
 
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{SERVERNAME}}|heroes.thelazy.net|<tab {{{attr|}}} style='{{{style|}}}' name="{{{name|}}}">}}</includeonly><noinclude>
<includeonly>{{#ifeq:{{Project:EnabledTabs}}|true|{{(}}tab name="{{{name|}}}"{{)}}}}</includeonly><noinclude>


==Usage==
==Usage==
Line 6: Line 6:


==Variables==
==Variables==
* attr = (attributes, e.g. plain)
* style = (css, e.g. text-align:center; margin:0;)
* name = (tab name, e.g. HotA)
* name = (tab name, e.g. HotA)


Line 13: Line 11:
[https://www.mediawiki.org/wiki/Extension:Tabs/Usage mediawiki.org/wiki/Extension:Tabs/Usage]
[https://www.mediawiki.org/wiki/Extension:Tabs/Usage mediawiki.org/wiki/Extension:Tabs/Usage]


[[Category: Tab templates]]</noinclude>
==Warning==
This template is an attempt to put parts of the tabs extension into a template. It does not work at the current time. Hopefully in the future, the extension is fixed to work better with templates.
 
__notoc__[[Category: Tab templates]]</noinclude>

Latest revision as of 03:08, 6 September 2024


Usage[edit | hide | hide all]

{{tabs|attr=plain|style=text-align:center; margin:0;}}{{tab|name=HotA}}Horn of the Abyss{{endtab}}{{tab|name=SoD}}Shadow of Death{{endtab}}{{endtabs}}

<tabs plain style='text-align:center; margin:0;'><tab name="HotA">Horn of the Abyss</tab><tab name="SoD">Shadow of Death</tab></tabs>

Variables[edit | hide]

  • name = (tab name, e.g. HotA)

Tabs Documentation[edit | hide]

mediawiki.org/wiki/Extension:Tabs/Usage

Warning[edit | hide]

This template is an attempt to put parts of the tabs extension into a template. It does not work at the current time. Hopefully in the future, the extension is fixed to work better with templates.