Template:Infobox game server/doc: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
improve documentation
No edit summary
Line 14: Line 14:
| version    =
| version    =
| gamemods  =
| gamemods  =
| opened    =
| closed    =
| owner      =
| owner      =
| moderators =
| moderators =
Line 123: Line 125:
"links": {
"links": {
"description": "Any links relating to this server."
"description": "Any links relating to this server."
},
"opened": {
"label": "established",
"description": "The date that the server was first opened for players.",
"type": "date",
"suggested": true
},
"closed": {
"label": "defunct",
"description": "The date that the server was shut down, if applicable.",
"type": "date"
}
}
},
},
"description": "Infobox for use on articles about video game servers. None of the parameters are required.",
"description": "Infobox for use on articles about video game servers. None of the parameters are required.",
"format": "block"
"format": "block",
"paramOrder": [
"name",
"image",
"landscape",
"image size",
"imagesize",
"image_upright",
"alt",
"image caption",
"caption",
"status",
"game",
"ip",
"version",
"gamemods",
"opened",
"closed",
"owner",
"moderators",
"links"
]
}
}
</templatedata>
</templatedata>

Revision as of 05:02, 13 July 2023

This infobox is for use on articles about video game servers.

Configuration

Here is a blank instance of this template with all parameters:

{{Infobox game server
| name       = <!-- If this field is not provided, the page name will be used. -->
| image      = <!-- Just enter the file name. Do not include "File:" or any brackets. For example: Trollface.svg -->
| image_size = <!-- Override the size of the image, in pixels -->
| caption    =
| status     = <!-- Usually one of the following: active, inactive, defunct, private -->
| game       =
| ip         =
| version    =
| gamemods   =
| opened     =
| closed     =
| owner      =
| moderators =
| links      =
}}

"status" parameter

The |status = parameter has a special output that provides special formatting when given certain inputs.

Status Explanation Appearance
active The server is operational and has an active playerbase. Active
inactive The server is operational, but does not have an active playerbase. Inactive
defunct The server no longer exists :( Defunct
private The server is operational, but it is private. Only certain people can join. Private
(anything else) text

TemplateData

Infobox for use on articles about video game servers. None of the parameters are required.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

The name of the server. You don't need to enter anything unless the name is different from the name of the page.

Default
{{PAGENAME}}
Stringsuggested
imageimage

An image to represent this server, such as an icon or a screenshot.

Filesuggested
landscapelandscape

no description

Unknownoptional
image sizeimage size

Override the size of the image, in pixels

Numberoptional
imagesizeimagesize

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
altalt

Alt text for the image

Unknownoptional
image captionimage caption

no description

Unknownoptional
captioncaption

A caption for the image

Unknownoptional
statusstatus

The status of the server.

Suggested values
active inactive defunct private
Example
active
Stringsuggested
gamegame

The video game that this server is for.

Example
{{w|Minecraft}}
Stringsuggested
ipip

The IP address used to connect to this server.

Stringsuggested
versionversion

The version of the game this server is running.

Example
Java Edition 1.20.1
Stringsuggested
gamemodsgamemods

Any mods that the server requires the player to have installed.

Unknownoptional
establishedopened

The date that the server was first opened for players.

Datesuggested
defunctclosed

The date that the server was shut down, if applicable.

Dateoptional
ownerowner

The owner(s) of the server.

Stringsuggested
moderatorsmoderators

The moderator(s) of the server.

Stringsuggested
linkslinks

Any links relating to this server.

Unknownoptional