Template:Attribute Name Format: Difference between revisions
From Lilith's Throne
Jump to navigationJump to search
Sightglass (Sọ̀rọ̀ | contribs) m Allow anonymous usage |
Sightglass (Sọ̀rọ̀ | contribs) No edit summary |
||
Line 3: | Line 3: | ||
{ | { | ||
"params": { | "params": { | ||
" | "1": { | ||
"aliases": [ | "aliases": [ | ||
"Name", | "Name", | ||
" | "Attribute" | ||
], | ], | ||
"description": "The name of the attribute to color-match.", | |||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
" | "2": { | ||
"aliases": [ | "aliases": [ | ||
"Text", | "Text", | ||
" | "Content" | ||
], | ], | ||
"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:02, 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).
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 Name Attribute | The name of the attribute to color-match. | String | required |
2 | 2 Text Content | The text, falls through to the attribute name if empty. | Unknown | optional |