Template:Attribute Name Format: Difference between revisions

From Lilith's Throne
Jump to navigationJump to search
m Undo revision 8344 by Sightglass (talk)
Tag: Undo
Using Template:Color
Line 1: Line 1:
'''<span style="color:{{Attribute Color Lookup|Attribute={{{Attribute}}}}}">{{#if: {{{Content|}}}|{{{Content}}}|{{{Attribute}}}}}'''<noinclude>
'''{{color|#{{Attribute Color Lookup|Attribute={{{Attribute}}}}}|{{#if: {{{Content|}}}|{{{Content}}}|{{{Attribute}}}}}}}'''<noinclude>
<templatedata>
<templatedata>
{
{

Revision as of 06:50, 26 February 2024

{{{Attribute}}}

Formats text for a format's name, looking up the color and applying bold. Uses the "Attribute" parameter to look up, displays "Content" (or "Attribute" if content is empty).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
AttributeAttribute Name

The name of the attribute to color-match.

Stringrequired
ContentContent Text

The text, falls through to the attribute name if empty.

Unknownoptional