Difference between revisions of "Template:Serverinfobox"

From Space Engineers Wiki
Jump to: navigation, search
(Add website field to box.)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="position:relative;float:right;width:300px;">
+
<div style="position:relative;float:right;width:340px;">
 
<!--header-->
 
<!--header-->
<div style="background:#486d82;position:relative;width:300px;">
+
<div style="background:#486d82;position:relative;width:340px;">
 
<div style="background:#486d82;padding:5px;text-align:center;"><span style="color:white;font-size:2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Gotham;position:relative;">{{{name|Server Name}}}</span></div>
 
<div style="background:#486d82;padding:5px;text-align:center;"><span style="color:white;font-size:2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Gotham;position:relative;">{{{name|Server Name}}}</span></div>
 
<!--header divider--->
 
<!--header divider--->
<div style="background:#9c0c0c;width:290px;margin-left:5px;height:2px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div></div>
+
<div style="background:#9c0c0c;width:330px;margin-left:5px;height:2px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div></div>
 
<div style="background:#b2d5e8;">
 
<div style="background:#b2d5e8;">
 
<!--operator-->
 
<!--operator-->
<div style="width:300px"><div style="padding:2px;width:116px;text-align:right;display:inline-block;position:absolute;">Operator:</div><div style="padding:2px;display:inline-block;width=176px;position:relative;left:120px;">{{{op|Operator}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;width:146px;text-align:right;display:inline-block;position:absolute;">Operator:</div><div style="padding:2px;display:inline-block;width=206px;position:relative;left:150px;">{{{op|Operator}}}</div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;height:1px;text-align:center;margin-left:5px;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;height:1px;text-align:center;margin-left:5px;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--server mode-->
 
<!--server mode-->
<div style="width:300px"><div style="padding:2px;width:116px;text-align:right;display:inline-block;position:absolute;">Server Mode:</div><div style="padding:2px;display:inline-block;width=176px;position:relative;left:120px;">{{{mode|Survival}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;width:146px;text-align:right;display:inline-block;position:absolute;">Server Mode:</div><div style="padding:2px;display:inline-block;width=206px;position:relative;left:150px;">{{{mode|Survival}}}</div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--max players-->
 
<!--max players-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Max Players:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{maxplayers|16}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Max Players:</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{maxplayers|0}}}</div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--settings-->
 
<!--settings-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Speed (I) (R) (A):</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{inventorycapacity|1}}} {{{refinespeed|1}}} {{{assemblespeed|1}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Speed ([[Dedicated_Servers#Inventory Size|I]]) ([[Dedicated_Servers#Refinery Speed|R]]) ([[Dedicated_Servers#Assembler Efficiency|E]]) ([[Dedicated_Servers#Assembler Speed|A]]):</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{inventorysize|1}}} {{{refinespeed|1}}} {{{assembleefficiency|1}}} {{{assemblespeed|1}}} </div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--cargo ships-->
 
<!--cargo ships-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Cargo Ships:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{cargoships|No}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Cargo Ships:</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{cargoships|No}}}</div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--meteors-->
 
<!--meteors-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Cargo Ships:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{meteors|Safe}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Meteors:</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{meteors|Safe}}}</div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--map-->
 
<!--map-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Map:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{map|Unknown}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Map:</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{map|Unknown}}}</div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--group only-->
 
<!--group only-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Group Only:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{grouponly|No}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Group Only:</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{grouponly|No}}}</div></div>
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 
<!--pvp-->
 
<!--pvp-->
<div style="width:300px"><div style="padding:2px;float:left;width:116px;text-align:right;display:inline-block;">Map:</div><div style="padding:2px;display:inline-block;width=176px;position:right;">{{{pvp|No}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Map:</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{pvp|No}}}</div></div>
 +
<!--section divider--->
 +
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
 +
<!--pvp-->
 +
<div style="width:340px"><div style="padding:2px;float:left;width:146px;text-align:right;display:inline-block;">Website:</div><div style="padding:2px;display:inline-block;width=206px;position:right;">{{{website|No}}}</div></div>
 
<!--Custom fields-->
 
<!--Custom fields-->
 
{{#if: {{{CustomRow1|}}}|
 
{{#if: {{{CustomRow1|}}}|
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
<div style="width:300px"><div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">{{{CustomRow1|}}}:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{CustomData1|}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;position:left;width:146px;text-align:right;display:inline-block;">{{{CustomRow1|}}}:</div><div style="padding:2px;display:inline-block;width:206px;position:right;">{{{CustomData1|}}}</div></div>
 
|}}{{#if: {{{CustomRow2|}}}|
 
|}}{{#if: {{{CustomRow2|}}}|
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
<div style="width:300px"><div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">{{{CustomRow2|}}}:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{CustomData2|0}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;position:left;width:146px;text-align:right;display:inline-block;">{{{CustomRow2|}}}:</div><div style="padding:2px;display:inline-block;width:206px;position:right;">{{{CustomData2|0}}}</div></div>
 
|}}{{#if: {{{CustomRow3|}}}|
 
|}}{{#if: {{{CustomRow3|}}}|
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
<div style="width:300px"><div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">{{{CustomRow3|}}}:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{CustomData3|0}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;position:left;width:146px;text-align:right;display:inline-block;">{{{CustomRow3|}}}:</div><div style="padding:2px;display:inline-block;width:206px;position:right;">{{{CustomData3|0}}}</div></div>
 
|}}{{#if: {{{CustomRow4|}}}|
 
|}}{{#if: {{{CustomRow4|}}}|
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
<div style="width:300px"><div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">{{{CustomRow4|}}}:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{CustomData4|0}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;position:left;width:146px;text-align:right;display:inline-block;">{{{CustomRow4|}}}:</div><div style="padding:2px;display:inline-block;width:206px;position:right;">{{{CustomData4|0}}}</div></div>
 
|}}{{#if: {{{CustomRow5|}}}|
 
|}}{{#if: {{{CustomRow5|}}}|
 
<!--section divider--->
 
<!--section divider--->
<div style="background:#659bb7;width:290px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
+
<div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;">&nbsp;</div>
<div style="width:300px"><div style="padding:2px;position:left;width:116px;text-align:right;display:inline-block;">{{{CustomRow5|}}}:</div><div style="padding:2px;display:inline-block;width:176px;position:right;">{{{CustomData5|0}}}</div></div>
+
<div style="width:340px"><div style="padding:2px;position:left;width:146px;text-align:right;display:inline-block;">{{{CustomRow5|}}}:</div><div style="padding:2px;display:inline-block;width:206px;position:right;">{{{CustomData5|0}}}</div></div>
 
|}}
 
|}}
 
</div></div>
 
</div></div>
<includeonly>[[category:Player Servers]]</includeonly>
+
<includeonly>{{#ifeq: {{NAMESPACE}} | Server | [[category:Server List]]
 +
{{#if: {{#pos:{{lc: {{{mode}}} }} | survival }} | {{#set:servermode=Survival}} [[Category: Server Mode - Survival]] | }}
 +
{{#if: {{#pos:{{lc: {{{mode}}} }} | creative}} | {{#set:servermode=Creative}} [[Category: Server Mode - Creative]] | }}
 +
{{#if: {{#pos:{{lc: {{{meteors|Safe}}} }} | safe }} | {{#set:servermeteors=Safe }} | }}
 +
{{#if: {{#pos:{{lc: {{{meteors|Safe}}} }} | normal }} | {{#set:servermeteors=Normal}} | }}
 +
{{#if: {{#pos:{{lc: {{{meteors|Safe}}} }} | cataclysm }} | {{#set:servermeteors=Cataclysm}} | }}
 +
{{#if: {{#pos:{{lc: {{{meteors|Safe}}} }} | armageddon}} | {{#set:servermeteors=Armageddon }} | }}
 +
{{#set:serverop={{{op|}}} }}
 +
{{#set:servermaxplayers={{{maxplayers|0}}} }}
 +
{{#set:servername={{{name|}}} }}
 +
{{#set:servermap={{{map|}}} }}
 +
{{#set:serverinventorysize={{{inventorysize|1}}} }}
 +
{{#set:serverrefinespeed={{{refinespeed|1}}} }}
 +
{{#set:serverassembleefficiency={{{assembleefficiency|1}}} }}
 +
{{#set:serverassemblespeed={{{assemblespeed|1}}} }}
 +
{{#set:servergrouponly= {{ucfirst: {{lc:{{{grouponly|no}}} }} }} }}
 +
{{#set:servercargoships= {{ucfirst: {{lc:{{{cargoships|no}}} }} }} }}
 +
{{#set:serverpvp= {{ucfirst: {{lc:{{{pvp|no}}} }} }} }}
 +
{{#ifeq: {{ucfirst: {{lc: {{{pvp|no}}} }} }} | Yes | [[Category:PvP Server]] |}}
 +
{{#set:serverwebsite= {{ucfirst: {{lc:{{{website|no}}} }} }} }}
 +
|}}</includeonly>
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 23:12, 8 August 2017

Server Name
 
Operator:
Operator
 
Server Mode:
Survival
 
Max Players:
0
 
Speed (I) (R) (E) (A):
1 1 1 1
 
Cargo Ships:
No
 
Meteors:
Safe
 
Map:
Unknown
 
Group Only:
No
 
Map:
No
 
Website:
No