Template:Color/doc

There are two basic ways to do use this template:

Examples on using :

renders it to be Physical Damage.

renders it to be Magic Power.

Additionally, keywords are not case-sensitive and as long as these keywords exist in the wall of text the template will recognize it's appropriate color.

which render it to be (+100% MaGic poWER). (Don't do this type of text though, be consistent on writing!)

which renders it to be Physical Damage Magic Power. Note that when multiple keywords are present, precedence is based on the order of the keywords itself on Module:B. So regardless if you enter it to be the output would still be the same - Magic Power Physical Damage.

Examples on using Keyword2:

To get around the problem above, a secondary keyword is needed.

Magic Power renders it to be Physical Damage.

Notice how the text, Physical Damage, has now taken the color of Magic Damage. While Keyword2 needs to be valid or has an associated color, AVC1 is now free to vary such as Magic Power will now render to be Mobile Legends: Bang Bang.

Optionsedit source

The template can also modify the text's weight and size. Leaving them out from the original syntax will render the text to the template's basic formatting.

Examples on using Keyword2:

Magic Damage renders it to be Mythic.

The template can also modify the text's color based on its name or hexcode so a new color can be used without associating it to a keyword or listing it in the module.

Examples on using :

renders it to be Physical Damage.

Hexcode can also be used to any text such as which renders it to be Mobile Legends.

Nestingedit source

The template can be tested however, if the innermost AVC1 contains keywords itself the desired result might not be the one intended; such as which will render to be (+100% Magic Damage) (+100 Physical Attack) Ability. To get around this, Keyword2 must be supplied to the outer template or all of them (if needed to be) to ensure the required result.

Examples of Nesting:

Magic Damage renders it to be (+100% Magic Damage) (+100 Physical Attack) Ability, which is now the needed result.

Existing Keywordsedit source

The current list (may be subjected to changes in Module:B)

Keyword

Color

physical attack

phy atk

physical atk

orange

physical damage

pd


 * 1) EB3434

physical penetration

ppen


 * 1) FF9494

physical defense

pdef


 * 1) 870000

magic power

mp

turquoise

magic damage

md


 * 1) AA3BFF

magic penetration

mpen


 * 1) CA94FF

magic defense

mdef


 * 1) 510087

true damage

td


 * 1) A1A1A1

health

hp


 * 1) 4DFF36

heal


 * 1) 4DFF36

shield


 * 1) B3D186

mana

blue

energy


 * 1) E8E26F

rage


 * 1) ff1500

critical

crit


 * 1) FFA230

movement speed

ms


 * 1) BFB419

attack speed

atk spd


 * 1) c8ff00

physical lifesteal


 * 1) cf136a

magic lifesteal


 * 1) 38369A

spell vamp


 * 1) 8DBBC1

gold


 * 1) BD9D00

exp


 * 1) 883FD1

cc


 * 1) C70244

mobility

blink


 * 1) 4D5D53

enhanced


 * 1) 4287F5

form


 * 1) FF5D3D

cooldown


 * 1) 90b7e8

dmg immune


 * 1) d66f6f

damage reduction

dmg reduc


 * 1) a85656

control immune


 * 1) 2a4d18

control remove


 * 1) 4e9258

vision

reveal


 * 1) ba29c4

conceal

invisible

stealth


 * 1) bababa