Difference between revisions of "Specialization"
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq:{{API}}|off|<div>{{{1 | + | <includeonly>{{#ifeq:{{API}}|off|<div>{{{1}}}: {{{2}}}, {{{3}}}, {{{4}}}</div>|<div class="specialization-embed-row" style="height: 140px;" data-armory-embed="specializations" data-armory-ids="{{Specialization lookup|{{{1|}}}}}" data-armory-{{Specialization lookup|{{{1|}}}}}-traits="{{Specialization choice|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}"></div><!-- Stores SMW property if variant is disabled -->{{#if: {{{variant|}}}||{{#ifeq: {{NAMESPACE}}|Build|{{#if: {{{1|}}}|{{#set: Has specializations={{{1}}}}}}}}}}}</includeonly><noinclude>{{Specialization/Documentation}}}}</noinclude> |
Revision as of 14:14, 1 March 2022
Description
Produces a specialization table, optionally highlighting trait choices.
{{Specialization|<unnamed param 1>|<unnamed param 2>|<unnamed param 3>|<unnamed param 4> | variant = }}
Parameters
- unnamed param 1
- Specialization name, capitalized.
- unnamed param 2-4
- Position in each column. Accepts top, mid, and bot (bottom).
- variant
- Optional. If set, it will disable storing build-specific data to the page. Defaults to no. Use this if displaying a variant. Do not use this for the main specializations.
Note: The template will only store SMW values if the page it's called from is under Build namespace.
Example
{{Specialization|Wilderness Survival|mid|top|bot}}
{{#ifeq:on|off|
Wilderness Survival: mid, top, bot
|
{{Specialization|Tempest}}
{{#ifeq:on|off|
Tempest: {{{2}}}, {{{3}}}, {{{4}}}
|
{{Specialization|Shadow Arts|bot|mid|bot}}
{{#ifeq:on|off|
Shadow Arts: bot, mid, bot
|
}}
Get MetaBattle Premium
Enjoy an ad-free experience & support the website, for less than $1 per month! Upgrade to Premium
Enjoy an ad-free experience & support the website, for less than $1 per month! Upgrade to Premium