Template:Infobox game server: Difference between revisions
create |
add status parameter |
||
Line 4: | Line 4: | ||
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}} | | caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}} | ||
| headerstyle = background:#0a5ba6;color:#fff; | | headerstyle = background:#0a5ba6;color:#fff; | ||
| label1 = Game | | label1 = Status | ||
| | | data1 = {{#switch: {{{status|}}} | ||
| | | active = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #00dd00;"></span> Active</span> | ||
| | | inactive = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #ffc000;"></span> Inactive</span> | ||
| | | defunct = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #dc0000;"></span> Defunct</span> | ||
| | | private = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #b9bbbe;"></span> Private</span> | ||
| | | #default = {{{status|}}} | ||
| | }} | ||
| | | label2 = Game | ||
| | | data2 = {{{game|}}} | ||
| | | label3 = IP address | ||
| | | data3 = {{{ip|}}} | ||
| | | label4 = Game version | ||
| | | data4 = {{{version|}}} | ||
| label5 = Mods required | |||
| data5 = {{{gamemods|}}} | |||
| label6 = Owner | |||
| data6 = {{{owner|}}} | |||
| label7 = Moderators | |||
| data7 = {{{moderators|}}} | |||
| label8 = Links | |||
| data8 = {{{links|}}} | |||
}}<noinclude> | }}<noinclude> | ||
<br /> | <br /> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Infobox templates]]</noinclude> | [[Category:Infobox templates]]</noinclude> |
Revision as of 04:41, 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the server. You don't need to enter anything unless the name is different from the name of the page.
| String | suggested |
image | image | An image to represent this server, such as an icon or a screenshot. | File | suggested |
landscape | landscape | no description | Unknown | optional |
image size | image size | Override the size of the image, in pixels | Number | optional |
imagesize | imagesize | no description | Unknown | optional |
image_upright | image_upright | no description | Unknown | optional |
alt | alt | Alt text for the image | Unknown | optional |
image caption | image caption | no description | Unknown | optional |
caption | caption | A caption for the image | Unknown | optional |
status | status | The status of the server.
| String | suggested |
game | game | The video game that this server is for.
| String | suggested |
ip | ip | The IP address used to connect to this server. | String | suggested |
version | version | The version of the game this server is running.
| String | suggested |
gamemods | gamemods | Any mods that the server requires the player to have installed. | Unknown | optional |
established | opened | The date that the server was first opened for players. | Date | suggested |
defunct | closed | The date that the server was shut down, if applicable. | Date | optional |
owner | owner | The owner(s) of the server. | String | suggested |
moderators | moderators | The moderator(s) of the server. | String | suggested |
links | links | Any links relating to this server. | Unknown | optional |