Template:Infobox build/doc: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Updated example)
(Added size param to templatedata)
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
}}
}}
</pre>
</pre>

== Template data ==
{{TemplateData header}}
<templatedata>
{
"params": {
"title": {
"aliases": [
"name"
],
"description": "The title text for the infobox.",
"example": "Sly 2 Release Build",
"type": "string",
"suggested": true
},
"image": {
"type": "wiki-file-name"
},
"caption": {
"type": "string"
},
"build_date": {
"label": "build date",
"description": "The build date of the ELF",
"example": "January 1 2000",
"suggested": true
},
"region": {
"description": "The region of the build",
"example": "United States (NTSC)",
"type": "string",
"suggested": true
},
"disc_id": {
"label": "disc id",
"description": "The Sony disc ID of the build",
"example": "SCUS_971.98",
"suggested": true
},
"next": {
"label": "next build date",
"description": "Date of the next build",
"example": "January 1 2000",
"type": "date"
},
"previous": {
"label": "previous build date",
"description": "Date of the previous build",
"example": "January 1 2000",
"type": "date"
},
"size": {
"description": "The size of the build (in gb)",
"example": "1.21 GB"
}
},
"description": "An infobox game build articles.",
"format": "block",
"paramOrder": [
"title",
"image",
"caption",
"build_date",
"region",
"disc_id",
"size",
"next",
"previous"
]
}
</templatedata>

== See also ==
* [[Build]]

Latest revision as of 21:37, 16 August 2022

Use this infobox on articles for game builds. It automatically adds the page to the builds category for the namespace it is in.

Usage

{{Infobox build
|title      = Example
|image      = File:Image name.png
|caption    = Caption text
|build_date = February 29 1969
|region     = United States
|disc_id    = SCXX_XXXXX
|size       = Example
|previous   = January 1 1969
|next       = January 1 1970
}}

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Infobox build

An infobox game build articles.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
titletitle name

The title text for the infobox.

Example
Sly 2 Release Build
Stringsuggested
imageimage

no description

Fileoptional
captioncaption

no description

Stringoptional
build datebuild_date

The build date of the ELF

Example
January 1 2000
Unknownsuggested
regionregion

The region of the build

Example
United States (NTSC)
Stringsuggested
disc iddisc_id

The Sony disc ID of the build

Example
SCUS_971.98
Unknownsuggested
sizesize

The size of the build (in gb)

Example
1.21 GB
Unknownoptional
next build datenext

Date of the next build

Example
January 1 2000
Dateoptional
previous build dateprevious

Date of the previous build

Example
January 1 2000
Dateoptional

See also