This site is a read-only mirror archive of http://tptiap.co.uk, updated daily. To edit content, please visit the original site!

Template:Attribute Name Format: Difference between revisions

From Lilith's Throne Wiki
Jump to navigationJump to search
imported>Sightglass
Add "Content" parameter using "Attribute" as fallback
imported>Sightglass
m Test revert
Line 1: Line 1:
'''<span style="color:{{Attribute Color Lookup|Attribute={{{Attribute}}}}}">{{#if: {{{Content|}}}|{{{Content}}}|{{{Attribute}}}}}'''<noinclude>
'''<span style="color:{{Attribute Color Lookup|Attribute={{{Attribute}}}}}">{{{Attribute}}}'''<noinclude>
<templatedata>
<templatedata>
{
{
Line 8: Line 8:
],
],
"type": "string",
"type": "string",
"required": true,
"required": true
"description": "The name of the attribute to color-match."
},
"Content": {
"aliases": [
"Text"
],
"description": "The text, falls through to the attribute name if empty."
}
}
},
},
"description": "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)."
"description": "Formats text for a format's name, looking up the color and applying bold."
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 06:07, 26 February 2024

{{{Attribute}}}

Formats text for a format's name, looking up the color and applying bold.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
AttributeAttribute Name

no description

Stringrequired