Latest Neocron News and Information

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

Difference between revisions of "Metadata:Main Page"

From Neocron Wiki
Jump to: navigation, search
(Todo)
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
* Data is viewable by using the ?action=raw or the Wiki api
 
* Data is viewable by using the ?action=raw or the Wiki api
 
* DO NOT put sensitive information in this namespace such as usernames and password or other sensitive setting.
 
* DO NOT put sensitive information in this namespace such as usernames and password or other sensitive setting.
 +
 +
== Debugging and testing settings ==
 +
 +
Most supported types allow you to test and debug the settings. This will read the data in and parse it. Use this to make sure what you have typed doesn't break the parser, and it allows you to view the settings as it would be seen by PHP.
 +
 +
You can see the debugger in action by editing the examples, and clicking on the debug button. (Next to the Show changes button)
  
 
== Supported types ==
 
== Supported types ==
Line 24: Line 30:
 
.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.   
 
.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]]
+
[[Metadata:Examples/Example1.cfg]]
  
 
=== .prop files ===
 
=== .prop files ===
Line 30: Line 36:
 
.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.
 
.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]]
+
[[Metadata:Examples/Example2.prop]]
  
 
=== .yaml files ===
 
=== .yaml files ===
Line 38: Line 44:
 
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.
 
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]]
+
[[Metadata:Examples/Example3.yaml]]
  
 
=== .js files ===
 
=== .js files ===
Line 44: Line 50:
 
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.
 
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]]
+
[[Metadata:Examples/Example4.js]]
  
 
=== .css files ===
 
=== .css files ===
Line 50: Line 56:
 
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.
 
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]]
+
[[Metadata:Examples/Example5.css]]
  
 
=== .url files ===
 
=== .url files ===
Line 61: Line 67:
 
If a timeout of 0 is specified, the URL is cached forever until the cache is clear out.
 
If a timeout of 0 is specified, the URL is cached forever until the cache is clear out.
  
[[Examples/Example6.url]]
+
[[Metadata:Examples/Example6.url]]
 +
 
 +
== Todo ==
 +
 
 +
* Write a parser tag to transclude the real output data from the pages. (This would be used on URL pages)
 +
* Write a updated loader to include .css and .js files in all pages from MetaData (As a replacement for [[MediaWiki:Wiki Extension.js]] - for now please continue to use [[MediaWiki:Common.js]] and [[MediaWiki:Common.css]]
 +
* New plugin to dynamically generate parser tags from configuration. This would probably underpin access to the upcoming Items DB V2 from the Wiki.

Latest revision as of 17:43, 27 May 2013

Sorry you do not have permissions to view this page.