(页面间差异)
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
{ | <includeonly> | ||
| | {| class="infobox floatright" | ||
| | |-class="infobox-image" | ||
| | | {{#if:{{{Picture|}}}|[[文件:{{{Picture|}}}|center|400px|link=]]|}}<p style="text-align:center; padding-top:-10px;">{{{Description|}}}</p> | ||
| | |-class="server-infobox-title" | ||
| | ! <div class="container">{{#if:{{{Logo|}}}|[[文件:{{{Logo|}}}|x50px|link=]]|[[文件:Train.svg|x24px|link=]]}}<div><p class="title">{{{Name|}}}</p><p class="subtitle">{{{NameEnglish|}}}</p></div></div> | ||
| | |-class="infobox-data infobox-col1" | ||
| | ! <hr/> | ||
| | |-class="infobox-data infobox-col2" | ||
| | ! 服主 | ||
| {{{Owner|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 管理员 | |||
| {{{Admin|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 群号 | |||
| {{{Group|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 服务器定位 | |||
| | | {{{Position|}}} | ||
|-class="infobox-data infobox-col2" | |||
! 成立时间 | |||
| {{{Time|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 运营情况 | |||
| {{{Status|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 服务器类型 | |||
}} | | {{#switch: {{{Server-type|}}} | forge = [[文件:Forge.svg|x24px|link=]] | fabric = [[文件:Fabric.png|x24px|link=]] | bukkit = [[文件:Bukkit.png|x24px|link=]] | #default = 未知的服务器类型 | ||
|-class="infobox-data infobox-col2" | |||
= | ! 游戏版本 | ||
| {{{McVersion|}}} | |||
|-class="infobox-data infobox-col2" | |||
|style="margin-bottom: 14px"| {{{Operator|}}} | |||
= | |||
{| class=" | |||
! | |||
! | |||
! | |||
|- | |||
| | |||
| | |||
|- | |||
| | |||
| | |||
|- | |||
| | |||
| | |||
|- | |||
| | |||
| | |||
|- | |||
|- | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|- | |||
| | |||
| | |||
|- | |||
| | |||
| | |||
|} | |} | ||
<templatestyles src="Template:Infobox/styles.css" /> | |||
<templatestyles src="Template:Infobox Server/styles.css" /> | |||
</includeonly> | |||
<noinclude> | |||
{{/doc}} | |||
</noinclude> |
2023年9月22日 (五) 11:20的版本
This documentation is transcluded from 模板:Infobox Server/doc. Changes can be proposed in the talk page.
该模板应用于服务器页。
变量 | 对应内容 | 是否必填 | 可选值 | 输出结果 | 备注 |
---|---|---|---|---|---|
Picture | 图片 | 否 | |||
Description | 图片下的介绍 | 否 | 仅在“Picture”有指定值时生效 | ||
Logo | 服务器Logo | 是 | 无需填写“文件:” | ||
Name | 服务器名(第一行) | 是 | |||
NameEnglish | 服务器名(第二行) | 是 | |||
Owner | 服主 | 是 | |||
Admin | 管理员 | 否 | |||
群号 | 是 | ||||
Position | 服务器定位 | 是 | |||
Foundation | 成立时间 | 否 | |||
Status | 运营情况 | 是 | yes | 运作中 | |
no | 已关闭 | ||||
Core | 服务器类型 | 是 | forge | Forge | |
fabric | Fabric | ||||
bukkit | Bukkit | ||||
Version | 游戏版本 | 是 |
代码范例
{{Infobox Server |Picture = Server_NebulaeCraft.png |Description = 位于江北区的星云市民中心 |Logo = NebulaeCraft.png |Name = 星云工艺 |NameEnglish = NebulaeCraft |Owner = Sakana_20 |Admin = Kuina_20 |QQ = 553233889 |Position = 城市建设/轨道交通 |Foundation = 2017年6月28日 |Status = yes |Core = forge |Version = Java Edition 1.12.2 }}
输出结果
位于江北区的星云市民中心 | |
星云工艺 NebulaeCraft | |
---|---|
服主 | Sakana_20 |
管理员 | Kuina_20 |
群号 | |
服务器定位 | 城市建设/轨道交通 |
成立时间 | |
运营情况 | yes |
服务器类型 | forge = | fabric = | bukkit = | #default = 未知的服务器类型 |
游戏版本 | |