“模板:Infobox Server/doc”与“模板:Documentation”:页面之间的差异

来自NebulaeWiki
< 模板:Infobox Server(页面间差异)
(已保护“模板:Infobox Server/doc”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
 
(已保护“模板:Documentation”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
 
第1行: 第1行:
{{Documentation}}
<includeonly>{{#invoke:Documentation|doc}}__NOEDITSECTION__{{#seo:
该模板应用于服务器页。
|type = website
{| class="wikitable"
|description = {{FULLPAGENAME}}是星际公民Wiki中使用的一个模板页面。模板是嵌入到其他页面的页面,以允许展示重复的信息内容。
!变量
|site_name = 星际公民 Wiki - 中文区
!对应内容
|locale = {{PAGELANGUAGE}}
!是否必填
}}</includeonly><noinclude>{{/doc}}</noinclude>
!可选值
!输出结果
!备注
|-
|Picture
|图片
|否
|
|
|
|-
|Description
|图片下的介绍
|否
|
|
|仅在“Picture”有指定值时生效
|-
|Logo
|服务器Logo
|是
|
|
|无需填写“文件:
|-
|Name
|服务器名(第一行)
|是
|
|
|
|-
|NameEnglish
|服务器名(第二行)
|是
|
|
|
|-
|Owner
|服主
|是
|
|
|
|-
|Admin
|管理员
|否
|
|
|
|-
|QQ
|群号
|是
|
|
|
|-
|Position
|服务器定位
|是
|
|
|
|-
|Foundation
|成立时间
|否
|
|
|
|-
| rowspan="2" |Status
| rowspan="2" |运营情况
| rowspan="2" |是
|yes
|运作中
|
|-
|no
|已关闭
|
|-
| rowspan="3" |Core
| rowspan="3" |服务器类型
| rowspan="3" |是
|forge
|Forge
|
|-
|fabric
|Fabric
|
|-
|bukkit
|Bukkit
|
|-
|Version
|游戏版本
|是
|
|
|
|}
 
==== 代码范例 ====
<nowiki>{{Infobox Server</nowiki>
<nowiki>|Picture = Server_NebulaeCraft.png</nowiki>
<nowiki>|Description = 位于江北区的星云市民中心</nowiki>
<nowiki>|Logo = NebulaeCraft.png</nowiki>
<nowiki>|Name = 星云工艺</nowiki>
<nowiki>|NameEnglish = NebulaeCraft</nowiki>
<nowiki>|Owner = Sakana_20</nowiki>
<nowiki>|Admin = Kuina_20</nowiki>
<nowiki>|QQ = 553233889</nowiki>
<nowiki>|Position = 城市建设/轨道交通</nowiki>
<nowiki>|Foundation = 2017年6月28日</nowiki>
<nowiki>|Status = yes</nowiki>
<nowiki>|Core = forge</nowiki>
<nowiki>|Version = Java Edition 1.12.2</nowiki>
<nowiki>}}</nowiki>
 
==== 输出结果 ====
{{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
}}

2023年9月23日 (六) 22:28的最新版本


Template documentation[view][edit][history][purge]
This documentation is transcluded from 模板:Documentation/doc. Changes can be proposed in the talk page.

documentation模板是在template/module文档中转录的。这个模板应该只用在标题中带有"doc"的模板。

用法

将{{documentation}}放在文档页面的顶部。

If the page to be documented is a subpage, use {{documentation|<pagename of page to be documented>}} at the top of the documentation page. For example, Template:Foo/bar's documentation page would use {{documentation|<Template:Foo/bar>}}.

The template will attempt to auto detect and link {{#Invoke:}} calls on template documentations or the require()/mw.loadData() depedency list on module documentations. If you want to supress the auto generated dependency list, use {{documentation}}

提示

这个模板链接到一个/doc,可能看起来毫无用处,然而,它的存在是为了将导航框和用户框链接到其基础模板的文档。


TemplateData

The documentation template is transcluded in the template/module documentation. This template should only be used on subpages titled "doc".

模板参数

参数描述类型状态
未指定参数