Template:Credits/doc: Difference between revisions
From VRChat Wiki
TrixxedHeart (talk | contribs) added template data |
Add "value" parameter. Move description to TemplateData. |
||
| Line 1: | Line 1: | ||
[[Category:Template Documentation]] | [[Category:Template Documentation]] | ||
<templatedata> | <templatedata> | ||
| Line 15: | Line 14: | ||
], | ], | ||
"default": "16" | "default": "16" | ||
}, | |||
"value": { | |||
"label": "Value", | |||
"description": "Value displayed next to the icon, so it can be used as a currency. Line break between the icon and text is prevented.", | |||
"example": "420", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
"description": " | "description": "Allows for the credits icon to be utilized in-line, as well as using it as a currency and displaying a value next to without any line breaking.", | ||
"format": "inline" | "format": "inline", | ||
"paramOrder": [ | |||
"1", | |||
"value" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
Revision as of 10:42, 11 April 2025
Allows for the credits icon to be utilized in-line, as well as using it as a currency and displaying a value next to without any line breaking.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Size (in pixels) | 1 | Defaults to 16px
| Number | optional |
| Value | value | Value displayed next to the icon, so it can be used as a currency. Line break between the icon and text is prevented.
| String | optional |