Template:MainPage/GameEntry: Difference between revisions

From VR Wiki
Created page with "<noinclude> <templatedata> { "params": { "name": { "label": "Game Name", "description": "Name of the Game", "example": "VRChat", "type": "wiki-page-name", "required": true }, "icon": { "label": "Tile Background", "description": "Logo or Steam Tile for tile background image", "example": "https://...", "type": "wiki-file-name", "required": true } }, "description": "Beginning of Game List on Main Page", "format": "inline" } </templa..."
 
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 10: Line 10:
"required": true
"required": true
},
},
"icon": {
"tileid": {
"label": "Tile Background",
"label": "Tile ID",
"description": "Logo or Steam Tile for tile background image",
"description": "CSS ID for this particular tile",
"example": "https://...",
"example": "tile-vrchat",
"type": "wiki-file-name",
"type": "string",
"required": true
"required": true
},
"free": {
"label": "Free Product",
"description": "True if product is free",
"type": "boolean",
"default": "0"
},
"freeplus": {
"label": "Freemium",
"description": "True if product is a freemium product",
"type": "boolean",
"default": "0"
},
"price": {
"label": "Price (USD)",
"description": "Price on Steam, if product is not free nor freemium",
"example": "$5.99",
"type": "string"
},
"desktop": {
"label": "Supports Desktop Use",
"description": "Whether the game supports play with keyboard and mouse",
"type": "boolean",
"default": "0"
},
"index": {
"label": "Supports Valve Index",
"description": "Whether the game supports Valve Index",
"type": "boolean",
"default": "0"
},
"quest": {
"label": "Supports Quest",
"description": "Whether the game supports the Meta Quest ecosystem",
"type": "boolean",
"default": "0"
},
"vive": {
"label": "Supports Vive",
"description": "Whether the game supports HTC Vive headsets",
"type": "boolean",
"default": "0"
},
"wmr": {
"label": "Supports Windows Mixed Reality",
"description": "Whether the game supports Windows Mixed Reality headsets",
"type": "boolean",
"default": "0"
},
"fbt": {
"label": "Supports Full Body Tracking",
"description": "Whether the game supports Full Body Tracking",
"type": "boolean",
"default": "0"
}
}
},
},
"description": "Beginning of Game List on Main Page",
"description": "Beginning of Game List on Main Page",
"format": "inline"
"format": "inline",
"paramOrder": [
"name",
"tileid",
"free",
"freeplus",
"price",
"desktop",
"index",
"quest",
"vive",
"wmr",
"fbt"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<div class="mainpage-gamelist-tile" style="background-image:url('{{{icon|https://VRChatTile.png}}}')">
<div class="mainpage-gamelist-tile" id="{{{tileid|tile-vrchat}}}">
<div class="title">[[{{{name|VRChat}}}]]</div>
[[{{{name|VRChat}}}]]
{{#ifexpr:{{{free|0}}}|<div class="corner free">FREE</div>|}}
{{#ifexpr:{{{freeplus|0}}}|<div class="corner freeplus">FREE+</div>|}}
{{#if:{{{price|}}}|<div class="corner price">{{{price|}}}</div>|}}
{{#ifexpr:{{{desktop|0}}} or {{{index|0}}} or {{{quest|0}}} or {{{vive|0}}} or {{{wmr|0}}} or {{{fbt|0}}}|<div class="support">{{#ifexpr:{{{desktop|0}}}|<span class="supports desktop" title="Supports desktop"></span>}}{{#ifexpr:{{{fbt|0}}}|<span class="supports fbt" title="Supports Full-Body Tracking"></span>}}{{#ifexpr:{{{index|0}}}|<span class="supports index" title="Supports Valve Index"></span>}}{{#ifexpr:{{{quest|0}}}|<span class="supports quest" title="Supports Meta Quest/Oculus"></span>}}{{#ifexpr:{{{vive|0}}}|<span class="supports vive" title="Supports HTC Vive"></span>}}{{#ifexpr:{{{wmr|0}}}|<span class="supports wmr" title="Supports Windows Mixed Reality"></span>}}</div>|}}
</div>
</div>

Latest revision as of 10:21, 24 June 2024

Beginning of Game List on Main Page

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Game Namename

Name of the Game

Example
VRChat
Page namerequired
Tile IDtileid

CSS ID for this particular tile

Example
tile-vrchat
Stringrequired
Free Productfree

True if product is free

Default
0
Booleanoptional
Freemiumfreeplus

True if product is a freemium product

Default
0
Booleanoptional
Price (USD)price

Price on Steam, if product is not free nor freemium

Example
$5.99
Stringoptional
Supports Desktop Usedesktop

Whether the game supports play with keyboard and mouse

Default
0
Booleanoptional
Supports Valve Indexindex

Whether the game supports Valve Index

Default
0
Booleanoptional
Supports Questquest

Whether the game supports the Meta Quest ecosystem

Default
0
Booleanoptional
Supports Vivevive

Whether the game supports HTC Vive headsets

Default
0
Booleanoptional
Supports Windows Mixed Realitywmr

Whether the game supports Windows Mixed Reality headsets

Default
0
Booleanoptional
Supports Full Body Trackingfbt

Whether the game supports Full Body Tracking

Default
0
Booleanoptional