FANDOM


color and colored link are two simple templates that can be used to add color to text. It is a merge of the old [[template:Rarity]], and [[template:Element]]. These template can be used more generally for any color, but do retain convenience keywords relating to borderlands.

Motivation

The main motivation for these templates is to limit redundancy cross template, as well as facilitate usage when both color and linkage is involved.

Why 2 templates?

Having 2 templates makes it easier on the wiki programmer when links are involved. For example, using just the old rarity template, a wiki editor had to write "[[orange|{{rarity|orange}}]]" to create a link to orange. The new alternative is much simpler: "{{colored link|orange}}".

Usage

{{color|''color''|''free text''}}
{{colored link|''color''|''free text''|''link''}}

color takes 2 un-named parameters. The first is the color for the current text, and the second is free text. If the second parameter is missing, than the color argument will be used as free text.

link works the same as color, but further transforms the colored text into a link. The link target is the third parameter. Should that parameter be missing, it will default to the second (free text), then the first.

Examples

code result
This weapon is {{color|purple}} This weapon is purple
This is a {{color|corrosive|Pestilent}} {{color|legendary|Defiler}} This is a Pestilent Defiler
Please read {{colored link|Legendary}} for more details Please read Legendary for more details
For more information, see {{colored link|red|Health}} For more information, see Health
The {{colored link|legendary|Invader|Invader (Sniper Rifle)}} is an ambiguous weapon The Invader is an ambiguous weapon

Valid colors

The following is a list of valid colors. The template does support a few extra colors to support legacy typos, but it is recommended to stick to these colors.

code color
whitewhite
greengreen
blueblue
purplepurple
yellowyellow
orangeorange
dark orangedark orange
pearlescentpearlescent
pinkpink
seraphseraph
glitchglitch
redred
commoncommon
uniqueunique
legendarylegendary
pearlescentpearlescent
incendiaryincendiary
shockshock
corrosivecorrosive
explosiveexplosive
transfusiontransfusion
blackblack
Community content is available under CC-BY-SA unless otherwise noted.