Difference between revisions of "Template:Serverinfobox"
From Space Engineers Wiki
(Add website field to box.) |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div style="position:relative;float:right;width: | + | <div style="position:relative;float:right;width:340px;"> |
<!--header--> | <!--header--> | ||
− | <div style="background:#486d82;position:relative;width: | + | <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: | + | <div style="background:#9c0c0c;width:330px;margin-left:5px;height:2px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div></div> |
<div style="background:#b2d5e8;"> | <div style="background:#b2d5e8;"> | ||
<!--operator--> | <!--operator--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;height:1px;text-align:center;margin-left:5px;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--server mode--> | <!--server mode--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--max players--> | <!--max players--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--settings--> | <!--settings--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--cargo ships--> | <!--cargo ships--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--meteors--> | <!--meteors--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--map--> | <!--map--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--group only--> | <!--group only--> | ||
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
<!--pvp--> | <!--pvp--> | ||
− | <div style="width: | + | <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;"> </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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
− | <div style="width: | + | <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: | + | <div style="background:#659bb7;width:330px;margin-left:5px;height:1px;text-align:center;margin-top:5px;margin-bot:5px;position:relative;"> </div> |
− | <div style="width: | + | <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: | + | <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> |