Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Game: Difference between revisions

Template page
mNo edit summary
Tag: Manual revert
Undo revision 8279 by MTOnline69 (talk)
Tag: Undo
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="float:right; padding-left: 5px;">
<infobox>
{| class="wikitable" style="float: right; width: 275px;"
    <title source="title">
! colspan="2" style="text-align:center; font-size: 20px; font-weight: 600;" | {{{title|{{PAGENAME}}}}}
          <default>{{PAGENAME}}</default>
|-
    </title>
! colspan="2" style="text-align: center;" | [[File:{{{image}}}|128x128px|link=]]
    <data source="image">
|-
          <format>[[File:{{{image}}}|link=|class=infobox-image]]</format>
! colspan="2" style="text-align: center; font-weight:600; font-size: 15px;" | Overview
    </data>
|-
    <data source="description">
! style="text-align: left; border-right: transparent;" | Game Type
          <format><center>{{{description}}}</center></format>
! style="text-align: left; border-left: transparent;"| {{{type}}}
    </data>
|-
    <group>
! style="text-align: left; border-right: transparent;" | Abbreviation
          <header><center>General Information</center></header>
! style="text-align: left; border-left: transparent;"| {{{abbreviation}}}
      <data source="type">
|-
      <label>Game Type</label>
! style="text-align: left; border-right: transparent;" | Introduced
      </data>
! style="text-align: left; border-left: transparent;"| {{{introduced}}}
      <data source="abbreviation">
|-
      <label>Abbreviation</label>
{{#if: {{{time|}}} |
      </data>
{{!}}-
      <data source="introduced">
! scope="row" {{!}} Time
      <label>Introduced</label>
{{!}}
      </data>
{{{time}}}
      <data source="maps">
}}
      <label>Maps</label>
{{!}}-
      </data>
</div>
    </group>
    <group>
          <header><center>Round Information</center></header>
      <data source="rounds">
      <label>Rounds</label>
      </data>
      <data source="duration">
      <label>Round Duration</label>
      </data>
      <data source="players">
    <label>Players</label>
      </data>
    </group>
</infobox>
<includeonly>[[Category:Games]]</includeonly>
<noinclude>
<templatedata>
{
"params": {
"image": {
"label": "Image",
"description": "Game logo",
"type": "wiki-file-name",
"required": true,
"suggested": true
},
        "description": {
"description": "The game's description in the Navigator",
"type": "string",
"required": true,
"suggested": true
        },
"abbreviation": {
"label": "Abbreviation",
"description": "The game's abbreviation",
"example": "BB",
"type": "string",
"required": true,
"suggested": true
},
"introduced": {
"label": "Introduced",
"description": "Patch and date introduced",
"example": "[[0.9.0]] (July 4th, 2023)",
"type": "string",
"required": true,
"suggested": true
},
"maps": {
"label": "Maps",
"description": "Number of maps",
"type": "number"
},
"rounds": {
"label": "Rounds",
"description": "Number of rounds per game",
"type": "number",
"suggested": true
},
"duration": {
"label": "Duration",
"description": "The duration of each round (excluding modifiers) ",
"example": "2 Minutes",
"type": "string"
},
"players": {
"label": "Players",
"description": "Number of players.",
"example": "16-20",
"type": "string",
"required": true,
"suggested": true
},
"type": {
"label": "Type",
"description": "Type of game",
"example": "Movement",
"type": "string",
"suggestedvalues": [
"Movement",
"PvP"
],
"required": true,
"suggested": true
}
},
"description": "Adds a game infobox to the page.",
"paramOrder": [
"image",
        "description",
"type",
"abbreviation",
"introduced",
"maps",
"rounds",
"duration",
"players"
],
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 12:10, 20 November 2024


Adds a game infobox to the page.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

Game logo

Filerequired
descriptiondescription

The game's description in the Navigator

Stringrequired
Typetype

Type of game

Suggested values
Movement PvP
Example
Movement
Stringrequired
Abbreviationabbreviation

The game's abbreviation

Example
BB
Stringrequired
Introducedintroduced

Patch and date introduced

Example
[[0.9.0]] (July 4th, 2023)
Stringrequired
Mapsmaps

Number of maps

Numberoptional
Roundsrounds

Number of rounds per game

Numbersuggested
Durationduration

The duration of each round (excluding modifiers)

Example
2 Minutes
Stringoptional
Playersplayers

Number of players.

Example
16-20
Stringrequired