Template:Credits/doc: Difference between revisions

From VRChat Wiki
added template data
~Pausbe (talk | contribs)
add categories
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
Allows for the {{credits}} icon to be utilized in-line.
== Examples ==
[[Category:Template Documentation]]
====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>
<templatedata>
{
{
"params": {
"params": {
"1": {
"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)",
"label": "Size (in pixels)",
"description": "Defaults to 16px",
"description": "Defaults to 16px",
Line 17: Line 35:
}
}
},
},
"description": "Icon for VRCredits",
"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",
"size"
]
}
}
</templatedata>
</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}}

VRChat credits icon

Bigger icon

{{credits|size=64}}

VRChat credits icon

With value

{{credits|420}}

VRChat credits icon420

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Value1

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
Stringoptional
Size (in pixels)size

Defaults to 16px

Suggested values
16 32 64 128
Default
16
Numberoptional