Home
Random
Log in
Settings
About HourGlass: The Game Wiki
Disclaimers
HourGlass: The Game Wiki
Search
Editing
Template:Content Patcher example/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
==Description== 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=== 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. For example, this template usage: <pre>{{Content Patcher example|<nowiki> "Changes": [ { "Action": "EditData", "Target": "Data/animationDescriptions", "Entries": { "pufferbob_sleep": "50/50/50" } } ] </nowiki>}}</pre> Will produce this code example: {{Content Patcher example|<nowiki> "Changes": [ { "Action": "EditData", "Target": "Data/animationDescriptions", "Entries": { "pufferbob_sleep": "50/50/50" } } ] </nowiki>}} ===Escape MediaWiki syntax=== Note that the example above includes <code><nowiki></code>. That just prevents MediaWiki from mangling the code if it has wiki syntax like <code><nowiki>{{</nowiki></code> (which is common in Content Patcher examples). <includeonly> [[Category:Modding templates]] {{Addlanglinks}} </includeonly> <noinclude> [[Category:Template documentation]] </noinclude>
Summary:
Please note that all contributions to HourGlass: The Game Wiki are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see
HourGlass The Game Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Content Patcher example
(
edit
)
Template:Content Patcher version
(
edit
)