Latest Neocron News and Information

  • New test server patch #550 has been released to Vedeena

Difference between revisions of "Metadata:Main Page"

From Neocron Wiki
Jump to: navigation, search
m (link fix)
Line 21: Line 21:
  
 
=== .cfg files ===
 
=== .cfg files ===
 +
 +
.cfg files are read in an array for each line. Blank line or comment lines with // are ignored. An example of a .cfg file would be a list of pages or files. 
 +
 +
[[Examples/Example1.cfg]]
  
 
=== .prop files ===
 
=== .prop files ===
 +
 +
.prop files are read into an array as key values. Blank line or comment lines with // are ignored. An example of a .prop file would be a set of settings for an extension.
 +
 +
[[Examples/Example2.prop]]
  
 
=== .yaml files ===
 
=== .yaml files ===
 +
 +
This is a more complex setting file. Best to read [http://en.wikipedia.org/wiki/YAML YAML] here. Best usage would be to combine several settings files into one, or for more complex data.
 +
 +
The YAML parser used is from [http://symfony.com/doc/master/components/yaml/introduction.html Symfony]. It was intended that the Item DB data was going to be stored in this format in the Wiki.
 +
 +
[[Examples/Example3.yaml]]
  
 
=== .js files ===
 
=== .js files ===
 +
 +
These are Javascript files. When the page is saved, it is exported to the filesystem, so the web server can access it and serve it. The .js file is also added to the Mediawiki Resource Loader so other extensions can use the file.
 +
 +
[[Examples/Example4.js]]
  
 
=== .css files ===
 
=== .css files ===
 +
 +
These are CSS files. When the page is saved, it is exported to the filesystem, so the web server can access it and serve it. The .css file is also added to the Mediawiki Resource Loader so other extensions can use the file.
 +
 +
[[Examples/Example5.css]]
  
 
=== .url files ===
 
=== .url files ===
 +
 +
These files read from extenal URL's, and cache the data for a specified time in seconds. The following lines are required in a .url file
 +
 +
* url:
 +
* timeout:
 +
 +
If a timeout of 0 is specified, the URL is cached forever until the cache is clear out.
 +
 +
[[Examples/Example6.url]]

Revision as of 17:01, 27 May 2013

Sorry you do not have permissions to view this page.