Template:InventoryContentDisplay: Difference between revisions
Added warp effect type, images for each type, and available from parameter |
m left align |
||
| Line 1: | Line 1: | ||
<noinclude>{{Noticebox/wip|Type images, collections/bundles?, etc}}</noinclude> | <noinclude>{{Noticebox/wip|Type images, collections/bundles?, etc}}</noinclude> | ||
<onlyinclude><div class="pi-theme-community" style="background:var(--pi-background); vertical-align: top; display: inline-block; width: {{{width|235px}}};"> | <onlyinclude><div class="pi-theme-community" style="background:var(--pi-background); vertical-align: top; display: inline-block; width: {{{width|235px}}};"> | ||
<div style=" | <div style="margin-bottom: 10px;"><span style="font-size:x-large;">{{{name|Name}}}</span></div> | ||
<div style=" | <div style="margin-bottom: 10px;">[[File:{{{image|Placeholder.webp}}}|{{{imagesize|120px}}}]]</div> | ||
<div style=" | <div style="margin-bottom: 10px;">{{#if:{{{seller|}}}| | ||
<b>Sold by</b><br>{{{seller|}}} }}</div> | <b>Sold by</b><br>{{{seller|}}} }}</div> | ||
<div style=" | <div style="margin-bottom: 10px;">{{#if:{{{author|}}}| | ||
<b>Created by</b><br>{{{author|}}} }}</div> | <b>Created by</b><br>{{{author|}}} }}</div> | ||
<!--TODO: Add categories per type--> | <!--TODO: Add categories per type--> | ||
<div style=" | <div style="margin-bottom: 10px;">{{#if:{{{type|}}}| | ||
<b>Type</b><br>{{#switch: {{{type|}}} | <b>Type</b><br>{{#switch: {{{type|}}} | ||
|Emoji = [[File:Icon_Emoji.png|20px]] [[Special:MyLanguage/Emojis|Emoji]] | |Emoji = [[File:Icon_Emoji.png|20px]] [[Special:MyLanguage/Emojis|Emoji]] | ||
| Line 17: | Line 17: | ||
|WarpEffect = [[File:Icon_Cosmetics.png|20px]] [[Special:MyLanguage/Warp Effect|Warp Effect]] | |WarpEffect = [[File:Icon_Cosmetics.png|20px]] [[Special:MyLanguage/Warp Effect|Warp Effect]] | ||
}}}}</div> | }}}}</div> | ||
<div style=" | <div style="margin-bottom: 10px;">{{#if:{{{price|}}}| | ||
<b>Price</b><br>{{#if:{{{price_vrcplus|}}}| {{Credits|{{{price|}}}}} <nowiki>|</nowiki> {{Credits|{{{price_vrcplus}}}}} with VRC+ {{VRC+}}| {{#if:{{{price|}}}| {{Credits|{{{price}}}}} }}}}}}</div> | <b>Price</b><br>{{#if:{{{price_vrcplus|}}}| {{Credits|{{{price|}}}}} <nowiki>|</nowiki> {{Credits|{{{price_vrcplus}}}}} with VRC+ {{VRC+}}| {{#if:{{{price|}}}| {{Credits|{{{price}}}}} }}}}}}</div> | ||
<div style=" | <div style="margin-bottom: 10px;">{{#if:{{{availabilityDate|}}}| | ||
<b>Available from</b><br>{{{availabilityDate|}}} }}</div> | <b>Available from</b><br>{{{availabilityDate|}}} }}</div> | ||
<div style=" | <div style="margin-bottom: 10px;">{{#if:{{{description|}}}| | ||
<b>Description</b><br>{{{description|}}} }}</div> | <b>Description</b><br>{{{description|}}} }}</div> | ||
<!--div is hidden until VRChat adds a user-friendly way to view products, but still included to futureproof productID--> | <!--div is hidden until VRChat adds a user-friendly way to view products, but still included to futureproof productID--> | ||
<div style=" | <div style="margin-bottom: 10px; display: none">{{#if:{{{productID|}}}| | ||
<b>[https://vrchat.com/api/1/listing/{{{productID|}}} View product]</b> }}</div> | <b>[https://vrchat.com/api/1/listing/{{{productID|}}} View product]</b> }}</div> | ||
<!--div is hidden until VRChat adds a user-friendly way to view inventory content, but still included to futureproof inventoryID--> | <!--div is hidden until VRChat adds a user-friendly way to view inventory content, but still included to futureproof inventoryID--> | ||
<div style=" | <div style="margin-bottom: 10px; display: none">{{#if:{{{inventoryID|}}}| | ||
<b>[https://vrchat.com/api/1/inventory/template/{{{inventoryID|}}} View inventory content]</b> }}</div> | <b>[https://vrchat.com/api/1/inventory/template/{{{inventoryID|}}} View inventory content]</b> }}</div> | ||
</div></onlyinclude> | </div></onlyinclude> | ||
<noinclude>{{Documentation}}[[Category:Templates{{#translation:}}]]</noinclude> | <noinclude>{{Documentation}}[[Category:Templates{{#translation:}}]]</noinclude> | ||
Revision as of 19:24, 26 October 2025
[Reason: Type images, collections/bundles?, etc]
VRChat
Do you simply move from dimension to dimension, or do you rip through the fabric of reality itself?
VRChat
Contains four Spookality-themed stickers․ They're freeǃ And spooky․ Place them on any object with a collider․
No VRCats were harmed in the making of these stickers․ VRRats? Ehhh‚ probably not․
TemplateData Documentation
Template to display Inventory content (e.g. Emoji, Sticker, Item) for use on certain pages or sections. This is meant to display for inline sections on pages (e.g. Galleries), Infoboxes should be used if the page is about a certain piece of content
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the content
| String | required |
| Image | image | no description
| String | suggested |
| Image Size | imagesize | Size of the image
| String | optional |
| Width | width | The width of the template
| String | optional |
| Seller | seller | If offered for VRC Credits, use this. Displays as: Sold by
| String | optional |
| Author | author | If not offered for VRC Credits, use this. Displays as: Created by
| String | optional |
| Type | type | Type of content, values can be either, `Emoji`, `Sticker`, `Item`, `Drone`, `Portal` or `WarpEffect`.
| String | suggested |
| Price | price | The price of the content
| String | optional |
| Price VRC+ | price_vrcplus | The price of the content if it has a VRC+ discount
| String | optional |
| Description | description | The description of the content
| String | suggested |
| productID | productID | productID of the content, for future proofing
| String | optional |
| inventoryID | inventoryID | inventoryID of the content, for future proofing
| String | optional |