Template:Content Patcher example/doc: Difference between revisions
Appearance
imported>Pathoschild create docs for parent page |
imported>Pathoschild tweak header |
||
| Line 2: | Line 2: | ||
This template outputs an example [[Modding:Content Patcher|Content Patcher]] <samp>content.json</samp> structure with [[Template:Content Patcher version|the latest <samp>Format</samp> version]]. | This template outputs an example [[Modding:Content Patcher|Content Patcher]] <samp>content.json</samp> structure with [[Template:Content Patcher version|the latest <samp>Format</samp> version]]. | ||
==Usage== | ===Usage=== | ||
Just call the template with the top-level Content Patcher fields you want to display (except <samp>Format</samp>). These should be indented once with four spaces. | Just call the template with the top-level Content Patcher fields you want to display (except <samp>Format</samp>). These should be indented once with four spaces. | ||
Revision as of 18:56, 1 February 2025
Description
This template outputs an example Content Patcher content.json structure with the latest Format version.
Usage
Just call the template with the top-level Content Patcher fields you want to display (except Format). These should be indented once with four spaces.
For example, this template usage:
{{Content Patcher example|
"Changes": [
{
"Action": "EditData",
"Target": "Data/animationDescriptions",
"Entries": {
"pufferbob_sleep": "50/50/50"
}
}
]
}}
Will produce this code example:
{
"Format": "2.8.0",
"Changes": [
{
"Action": "EditData",
"Target": "Data/animationDescriptions",
"Entries": {
"pufferbob_sleep": "50/50/50" // note: make name lowercase
}
}
]
}