< 模板:Infobox Server(页面间差异)
无编辑摘要 |
无编辑摘要 标签:已被回退 |
||
第1行: | 第1行: | ||
<includeonly> | |||
{{ | {| class="infobox floatright" | ||
|Picture = | |-class="infobox-image" | ||
| | | {{#if:{{{Picture|}}}|[[文件:{{{Picture|}}}|center|400px|link=]]|}}<p style="text-align:center; padding-top:-10px;">{{{Description|}}}</p> | ||
|Logo = | |-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" | ||
|Owner = | ! <hr/> | ||
|Admin = | |-class="infobox-data infobox-col2" | ||
|QQ = | ! 服主 | ||
|Position = | | {{{Owner|}}} | ||
|Foundation = | |-class="infobox-data infobox-col2" | ||
|Status = | ! 管理员 | ||
| | | {{{Admin|}}} | ||
| | |-class="infobox-data infobox-col2" | ||
}} | ! 群号 | ||
| {{{QQ|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 服务器定位 | |||
| {{{Position|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 成立时间 | |||
| {{{Foundation|}}} | |||
|-class="infobox-data infobox-col2" | |||
! 运营情况 | |||
| {{#switch: {{{Status|}}} | yes = [[文件:functional.svg|x16px|link=]]运作中 | no = [[文件:error.svg|x16px|link=]]<span style="margin-top:10px;">已关闭</span> | #default = 未知的服务器状态}} | |||
|-class="infobox-data infobox-col2" | |||
! 服务器类型 | |||
| {{#switch: {{{Core|}}} | forge = [[文件:Forge.svg|x20px|link=]] | fabric = [[文件:Fabric.png|x20px|link=]] | bukkit = [[文件:Bukkit.png|x20px|link=]] | #default = 未知的服务器类型}} | |||
|-class="infobox-data infobox-col2" | |||
! 游戏版本 | |||
| {{{Version|}}} | |||
|-class="infobox-data infobox-col2" | |||
|style="margin-bottom: 14px"| {{{Operator|}}} | |||
|} | |||
<templatestyles src="Template:Infobox/styles.css" /> | |||
<templatestyles src="Template:Infobox Server/styles.css" /> | |||
</includeonly> | |||
<noinclude> | |||
{{/doc}} | |||
</noinclude> |
2023年9月22日 (五) 11:30的版本
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 |
群号 | 553233889 |
服务器定位 | 城市建设/轨道交通 |
成立时间 | 2017年6月28日 |
运营情况 | 运作中 |
服务器类型 | |
游戏版本 | Java Edition 1.12.2 |