Template:InventoryContentDisplay: Difference between revisions
Initial for InventoryContentDisplay |
fix plural of accessory |
||
| (9 intermediate revisions by 3 users not shown) | |||
| 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}}}; padding: 1rem;"> | ||
<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> | ||
< | <div style="margin-bottom: 10px;">{{#if:{{{publisher|}}}| | ||
<div style=" | <b>Published by</b><br>{{{publisher|}}} }}</div> | ||
<!--TODO: Add categories per type--> | |||
<div style="margin-bottom: 10px;">{{#if:{{{type|}}}| | |||
<b>Type</b><br>{{#switch: {{{type|}}} | <b>Type</b><br>{{#switch: {{{type|}}} | ||
|Emoji = [[File: | |Emoji = [[File:Icon_Emoji.png|20px]] [[Special:MyLanguage/Emojis|Emoji]] | ||
|Sticker = [[File: | |Sticker = [[File:Icon_Stickers.png|20px]] [[Special:MyLanguage/Stickers|Sticker]] | ||
|Item = [[File:Items_Icon.png|20px]][[Special:MyLanguage/Items|Item]] | |Item = [[File:Items_Icon.png|20px]] [[Special:MyLanguage/Items|Item]] | ||
|Drone = [[File: | |Drone = [[File:Icon_Cosmetics.png|20px]] [[Special:MyLanguage/Camera Drone|Drone]] | ||
|Portal = [[File: | |Portal = [[File:Icon_Cosmetics.png|20px]] [[Special:MyLanguage/Portals|Portal]] | ||
|WarpEffect = [[File:Icon_Cosmetics.png|20px]] [[Special:MyLanguage/Warp Effects|Warp Effect]] | |||
|Avatar = [[File:Icons Avatars 25.png|20px]] [[Special:MyLanguage/Avatars|Avatar]] | |||
|Accessory = [[File:Icon_Cosmetics.png|20px]] [[Special:MyLanguage/Accessories|Accessory]] | |||
|LoadingScreen = [[File:Icon_Cosmetics.png|20px]] [[Special:MyLanguage/Loading Screens|Loading Screen]] | |||
}}}}</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> | ||
<div style="margin-bottom: 10px;">{{#if:{{{description|}}}| | |||
<div class="mw-collapsible mw-collapsed"> | |||
<div style="font-weight:bold;"> | |||
<div style="display:inline;">Description</div> | |||
<div style="display:inline-block; vertical-align: middle;"> | |||
<div class="mw-collapsible-toggle-placeholder"></div> | |||
</div> | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
{{{description|}}} | |||
</div> | |||
</div> | |||
}} | |||
</div> | |||
</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> | ||
Latest revision as of 02:10, 18 March 2026
[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 |