Template:Attribute Name Format: Difference between revisions

From Lilith's Throne
Jump to navigationJump to search
No edit summary
m Undo revision 8360 by Sightglass (talk)
Tag: Undo
Line 3: Line 3:
{
{
"params": {
"params": {
"1": {
"Attribute": {
"aliases": [
"aliases": [
"Name",
"Name",
"Attribute"
"1"
],
],
"description": "The name of the attribute to color-match.",
"type": "string",
"type": "string",
"required": true
"required": true,
"description": "The name of the attribute to color-match."
},
},
"2": {
"Content": {
"aliases": [
"aliases": [
"Text",
"Text",
"Content"
"2"
],
],
"description": "The text, falls through to the attribute name if empty."
"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. Uses the \"Attribute\" parameter to look up, displays \"Content\" (or \"Attribute\" if content is empty)."
"paramOrder": [
"1",
"2"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 04:03, 27 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 1

The name of the attribute to color-match.

Stringrequired
ContentContent Text 2

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

Unknownoptional