Template:Infobox game server: Difference between revisions

add status parameter
(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 = {{{game|}}}
| data1 = {{#switch: {{{status|}}}
| label2 = IP address
  | 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>
| data2 = {{{ip|}}}
  | 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>
| label3 = Game version
  | 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>
| data3 = {{{version|}}}
  | 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>
| label4 = Mods required
  | #default = {{{status|}}}
| data4 = {{{gamemods|}}}
  }}
| label5 = Owner
| label2 = Game
| data5 = {{{owner|}}}
| data2 = {{{game|}}}
| label6 = Moderators
| label3 = IP address
| data6 = {{{moderators|}}}
| data3 = {{{ip|}}}
| label7 = Links
| label4 = Game version
| data7 = {{{links|}}}
| 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>