Template:Inline icon link/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 |
TrixxedHeart (talk | contribs) (added template data) |
||
Line 25: | Line 25: | ||
|} | |} | ||
<noinclude>[[Category:Template Documentation]]</noinclude> | <noinclude>[[Category:Template Documentation]]</noinclude> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"aliases": [ | |||
"image" | |||
], | |||
"label": "Icon", | |||
"description": "Icon image.", | |||
"example": "File:PlaceholderRoss.png", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"2": { | |||
"aliases": [ | |||
"link" | |||
], | |||
"label": "Link", | |||
"type": "url", | |||
"required": true | |||
}, | |||
"3": { | |||
"aliases": [ | |||
"desc" | |||
], | |||
"label": "Link text", | |||
"description": "Text of the link", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"size": { | |||
"label": "Icon Size", | |||
"type": "number", | |||
"default": "24px" | |||
}, | |||
"caption": {} | |||
}, | |||
"description": "Creates an inline icon with a link", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"size", | |||
"caption" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> |
Latest revision as of 00:43, 18 October 2024
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:PlaceholderRoss.png |
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 |