模板:Content Patcher example
描述
当前模板用于输出一个内容补丁(Content Patcher)的 content.json 文件结构示例,示例会包含填写了 Content Patcher 最新版本的 Format 字段。
用法
调用此模板,并在参数中填入你想要展示的字段(Format 字段除外)。这些字段应使用四个空格进行一次缩进。
例如,以下用法:
{{Content Patcher example|<nowiki>
"Changes": [
{
"Action": "EditData",
"Target": "Data/animationDescriptions",
"Entries": {
"pufferbob_sleep": "50/50/50"
}
}
]
</nowiki>}}
将会生成以下代码示例:
{
"Format": "2.7.0",
"Changes": [
{
"Action": "EditData",
"Target": "Data/animationDescriptions",
"Entries": {
"pufferbob_sleep": "50/50/50"
}
}
]
}
MediaWiki 语法转义
请注意,上面的示例中包含了 <nowiki> 标签。这可以防止 MediaWiki 在代码包含 wiki 语法(如 {{ 等在内容补丁的示例中很常见的字符串)时对其进行错误的处理。

沪公网安备 31011002002714 号