Template:Inline icon link/doc: Difference between revisions

From VRChat Wiki
added template data
Hackebein (talk | contribs)
No edit summary
Line 14: Line 14:
! Name !! Variable !! Description !! Default
! Name !! Variable !! Description !! Default
|-
|-
| image || <code>image=</code><br>Can also be parameter 1.|| icon image. ||[[:File:PlaceholderRoss.png]] [[File:PlaceholderRoss.png|64px|frameless]]
| image || <code>image=</code><br>Can also be parameter 1.|| icon image. ||[[:File:Placeholder.webp]] [[File:Placeholder.webp|64px|frameless]]
|-
|-
| link || <code>link=</code><br>Can also be parameter 2. || link || <span style="color:#FF0000;">link</span>
| link || <code>link=</code><br>Can also be parameter 2. || link || <span style="color:#FF0000;">link</span>
Line 34: Line 34:
"label": "Icon",
"label": "Icon",
"description": "Icon image.",
"description": "Icon image.",
"example": "File:PlaceholderRoss.png",
"example": "File:Placeholder.webp",
"type": "wiki-file-name",
"type": "wiki-file-name",
"required": true
"required": true

Revision as of 17:54, 12 April 2025

Create inline icon links.

Example Usage

* Please visit {{Inline icon link|image=Vrrat_thumbsup.png|link=https://vrchat.com|desc=the home of VRRat!|size=20px|caption=VRRat thinks you're cool}}!

will make:

Template parameters

Caption text
Name Variable Description Default
image image=
Can also be parameter 1.
icon image. File:Placeholder.webp
link link=
Can also be parameter 2.
link link
desc desc=
Can also be parameter 3.
text of the link description
size size=
Icon size 24px
caption caption=
caption of the icon icon

Creates an inline icon with a link

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Icon1 image

Icon image.

Example
File:Placeholder.webp
Filerequired
Link2 link

no description

URLrequired
Link text3 desc

Text of the link

Stringsuggested
Icon Sizesize

no description

Default
24px
Numberoptional
captioncaption

no description

Unknownoptional