Template:OpenGraph: Difference between revisions
From VRChat Wiki
TrixxedHeart (talk | contribs) Created page with "{{#if:{{{description|}}}|{{#description2:{{{description}}}}}}}{{#if:{{{image|}}}|{{#setmainimage:{{{image}}}}}}}{{#if:{{{title|}}}|{{#setmaintitle:{{{title}}}}}}}<noinclude>{{Documentation}}Category:Templates</noinclude>" |
TrixxedHeart (talk | contribs) Added template data |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{description|}}}|{{#description2:{{{description}}}}}}}{{#if:{{{image|}}}|{{#setmainimage:{{{image}}}}}}}{{#if:{{{title|}}}|{{#setmaintitle:{{{title}}}}}}}<noinclude>{{Documentation}}[[Category:Templates]]</noinclude> | <onlyinclude>{{#if:{{{description|}}}|{{#description2:{{{description}}}}}}}{{#if:{{{image|}}}|{{#setmainimage:{{{image}}}}}}}{{#if:{{{title|}}}|{{#setmaintitle:{{{title}}}}}}}</onlyinclude><noinclude>{{Documentation}}[[Category:Templates]]<templatedata> | ||
{ | |||
"params": { | |||
"description": { | |||
"label": "Description", | |||
"description": "The description that shows up when a page is embedded", | |||
"example": "VRRat is one of VRChat's mascots!", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Embed Image", | |||
"description": "The image shown when a page is embedded.", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"title": { | |||
"label": "Title", | |||
"description": "The title shown when a page is embedded.", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "For adding OpenGraph embed data for a page.", | |||
"paramOrder": [ | |||
"title", | |||
"description", | |||
"image" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata></noinclude> | |||
Latest revision as of 18:45, 31 May 2025
For adding OpenGraph embed data for a page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | The title shown when a page is embedded. | String | suggested |
| Description | description | The description that shows up when a page is embedded
| String | suggested |
| Embed Image | image | The image shown when a page is embedded. | File | suggested |