Template:Credits/doc: Difference between revisions
From VRChat Wiki
m Reverted edits by Usr 578aa632-439b-4c41-9266-776323ba9ad2 (talk) to last revision by dorktoast Tag: Rollback |
add categories |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
== Examples == | |||
[[Category:Template | ====Just icon==== | ||
<code><nowiki>{{credits}}</nowiki></code> | |||
{{credits}} | |||
====Bigger icon==== | |||
<code><nowiki>{{credits|size=64}}</nowiki></code> | |||
{{credits|size=32}} | |||
====With value==== | |||
<code><nowiki>{{credits|420}}</nowiki></code> | |||
{{credits|420}} | |||
== TemplateData documentation== | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"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.", | |||
"type": "string", | |||
"example": "420" | |||
}, | |||
"size": { | |||
"label": "Size (in pixels)", | |||
"description": "Defaults to 16px", | |||
"type": "number", | |||
"suggestedvalues": [ | |||
"16", | |||
"32", | |||
"64", | |||
"128" | |||
], | |||
"default": "16" | |||
} | |||
}, | |||
"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", | |||
"paramOrder": [ | |||
"1", | |||
"size" | |||
] | |||
} | |||
</templatedata> | |||
<includeonly>[[Category:Inline templates{{#translation:}}]]</includeonly> | |||
<noinclude>[[Category:Template documentation{{#translation:}}]]</noinclude> | |||
Latest revision as of 04:14, 21 April 2026
Examples
Just icon
{{credits}}
Bigger icon
{{credits|size=64}}
With value
{{credits|420}}
420
TemplateData documentation
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 | |
|---|---|---|---|---|
| Value | 1 | 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 |
| Size (in pixels) | size | Defaults to 16px
| Number | optional |