Template:MainPage/GameEntry: Difference between revisions

From VR Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 16: Line 16:
"type": "string",
"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"
}
}
},
},
Line 22: Line 76:
"paramOrder": [
"paramOrder": [
"name",
"name",
"tileid"
"tileid",
"free",
"freeplus",
"price",
"desktop",
"index",
"quest",
"vive",
"wmr",
"fbt"
]
]
}
}
Line 28: Line 91:
</noinclude>
</noinclude>
<div class="mainpage-gamelist-tile" id="{{{tileid|tile-vrchat}}}">
<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