Template:OpenGraph: Difference between revisions

From VRChat Wiki
m adds </onlyinclude>
Added template data
 
Line 1: Line 1:
<onlyinclude>{{#if:{{{description|}}}|{{#description2:{{{description}}}}}}}{{#if:{{{image|}}}|{{#setmainimage:{{{image}}}}}}}{{#if:{{{title|}}}|{{#setmaintitle:{{{title}}}}}}}</onlyinclude><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

Template:OpenGraph/doc

For adding OpenGraph embed data for a page.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

The title shown when a page is embedded.

Stringsuggested
Descriptiondescription

The description that shows up when a page is embedded

Example
VRRat is one of VRChat's mascots!
Stringsuggested
Embed Imageimage

The image shown when a page is embedded.

Filesuggested