Template:Inline icon link/doc: Difference between revisions
From VRChat Wiki
TrixxedHeart (talk | contribs) added template data |
add categories |
||
| (One intermediate revision by one other user not shown) | |||
| 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: | | 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 24: | Line 24: | ||
| caption || <code>caption=</code><br>|| caption of the icon || icon | | caption || <code>caption=</code><br>|| caption of the icon || icon | ||
|} | |} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 34: | Line 33: | ||
"label": "Icon", | "label": "Icon", | ||
"description": "Icon image.", | "description": "Icon image.", | ||
"example": "File: | "example": "File:Placeholder.webp", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"required": true | "required": true | ||
| Line 73: | Line 72: | ||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly>[[Category:Inline templates{{#translation:}}]]</includeonly> | |||
<noinclude>[[Category:Template documentation{{#translation:}}]]</noinclude> | |||
Latest revision as of 04:20, 21 April 2026
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:
- Please visit the home of VRRat!!
Template parameters
| 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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon | 1 image | Icon image.
| File | required |
| Link | 2 link | no description | URL | required |
| Link text | 3 desc | Text of the link | String | suggested |
| Icon Size | size | no description
| Number | optional |
| caption | caption | no description | Unknown | optional |