Template:Infobox/Asset: Difference between revisions

From VRChat Wiki
~Pausbe (talk | contribs)
move template categories to doc page
Prevent live templates from categorizing pages outside the intended namespaces.
 
Line 38: Line 38:
     <data source="vpm">
     <data source="vpm">
<label>[[VRChat Package Manager|<translate><!--T:5--> VRChat Package Manager</translate>]]</label>
<label>[[VRChat Package Manager|<translate><!--T:5--> VRChat Package Manager</translate>]]</label>
             <format>[vcc://vpm/addRepo?url={{{vpm}}} <translate><!--T:15--> Add to VCC</translate>][[Category:Assets available via the VRChat Package Manager{{#translation:}}]]</format>
             <format>[vcc://vpm/addRepo?url={{{vpm}}} <translate><!--T:15--> Add to VCC</translate>]</format>
</data>
</data>
         <data source="booth">
         <data source="booth">
<label>[[Community:BOOTH|BOOTH]]</label>
<label>[[Community:BOOTH|BOOTH]]</label>
             <format>[<translate nowrap><!--T:6--> https://booth.pm/en/items/<tvar name="id">{{{booth}}}</tvar></translate> {{{booth}}}][[Category:Assets available via BOOTH{{#translation:}}]]</format>
             <format>[<translate nowrap><!--T:6--> https://booth.pm/en/items/<tvar name="id">{{{booth}}}</tvar></translate> {{{booth}}}]</format>
</data>
</data>
         <data source="gumroad">
         <data source="gumroad">
<label>[[Community:Gumroad|Gumroad]]</label>
<label>[[Community:Gumroad|Gumroad]]</label>
             <format>[https://gum.co/{{{gumroad}}} {{{gumroad}}}][[Category:Assets available via Gumroad{{#translation:}}]]</format>
             <format>[https://gum.co/{{{gumroad}}} {{{gumroad}}}]</format>
</data>
</data>
         <data source="github">
         <data source="github">
<label>[[wikipedia:GitHub|GitHub]] repository</label>
<label>[[wikipedia:GitHub|GitHub]] repository</label>
             <format>[https://github.com/{{{github}}} {{{github}}}][[Category:Assets available via GitHub{{#translation:}}]]</format>
             <format>[https://github.com/{{{github}}} {{{github}}}]</format>
</data>
</data>
         <data source="gitlab">
         <data source="gitlab">
<label>[[wikipedia:GitLab|GitLab]] repository</label>
<label>[[wikipedia:GitLab|GitLab]] repository</label>
             <format>[https://gitlab.com/{{{gitlab}}} {{{gitlab}}}][[Category:Assets available via GitLab{{#translation:}}]]</format>
             <format>[https://gitlab.com/{{{gitlab}}} {{{gitlab}}}]</format>
</data>
</data>
     </group>
     </group>
</infobox>[[Category:Resources{{#translation:}}]][[Category:Assets{{#translation:}}]]</onlyinclude>
</infobox>
{{#switch:{{NAMESPACE}}
| {{ns:0}}
| {{ns:3000}} = <!--
Categories shouldn't be triggered in Template page itself, but must triggered in the "Community" namespace articles.
-->{{#if:{{{vpm|}}}|[[Category:Assets available via the VRChat Package Manager{{#translation:}}]]}}<!--
-->{{#if:{{{booth|}}}|[[Category:Assets available via BOOTH{{#translation:}}]]}}<!--
-->{{#if:{{{gumroad|}}}|[[Category:Assets available via Gumroad{{#translation:}}]]}}<!--
-->{{#if:{{{github|}}}|[[Category:Assets available via GitHub{{#translation:}}]]}}<!--
-->{{#if:{{{gitlab}|}}}|[[Category:Assets available via GitLab{{#translation:}}]]}}<!--
-->}}
 
[[Category:Resources{{#translation:}}]][[Category:Assets{{#translation:}}]]</onlyinclude>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 01:02, 28 September 2026

TemplateData Documentation

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

no description

Example
my title
Stringoptional
Namename

no description

Example
My Asset Name
Stringrequired
Imageimage

no description

Example
Placeholder.webp
Filerequired
YouTubeyoutube

YouTube video ID

Example
Gm_2YqvGgxM
Stringoptional
Authorauthor

no description

Example
VRChat
Stringoptional
Author 1author_1

no description

Example
VRRat
Stringoptional
Author 2author_2

no description

Example
VRCat
Stringoptional
Author 3author_3

no description

Example
VRBat
Stringoptional
Statusstatus

Status of the Asset, any of `maintained`, `maintenance`, `deprecated`, `abandoned`, `archived`, `unknown`, or custom text. Custom text can't be translated.

Example
maintained
Stringoptional
documentationdocumentation

Documentation URL

Example
https://docs.vrchat.com/
URLoptional
Licenselicense

License of the Package

Example
MIT
Stringoptional
VPMvpm

VRChat Package Manager URL

Example
https://packages.vrchat.com/official?download
URLoptional
Booth IDbooth

Booth ID

Example
1234567
Stringoptional
Gumroadgumroad

Gumroad ID

Example
vrchat
Stringoptional
GitHubgithub

GitHub <user>/<repo>

Example
vrchat/packages
Stringoptional
GitLabgitlab

GitLab <user>/<repo>

Example
vrchat/packages
Stringoptional