Ok, this got a bit long. In short: I answer two questions; one about how to get the informations about an entity and the second how to read and use templates.
1. Well, I use for that currently my converter, which can be found here:
https://github.com/alexaulbach/Factorio ... iGenerator
You need to have Lua installed. It is called like so:
./LuaRaw2Xml.lua factorio/data/base/ factorio/data/core/ >tmp/factorio-data.xml
where "factorio/" is in this case a symlink to the factorio folder, that includes the core and base mods. This works for linux/macos, I don't know how you can do that under windows.
It creates an XML (or JSON or Lua-code, see in the comments for options). The XML for the storage tank looks like so:
You see, the max_health is 500, and it has no pollution at all.
2. How to the brackets:
There are some basic things you need to learn, cause otherwise the wiki won't be understood.
{{link to a template}}
This is a link to a template. A template is nothing else than another wiki-page. If there is nothing special, you can see the template by adding "template:".
Example: The language template. See for example this page:
https://forums.factorio.com/wiki/inde ... ction=edit
At the top of the text you see
This is nothing else as telling the wiki, that the page "Template:Languages" should be included.
Let's have a look at this page:
https://forums.factorio.com/wiki/inde ... :Languages
This is the docs for this template. You see the CONTENT of the template by editing it:
https://forums.factorio.com/wiki/inde ... ction=edit
Well. It makes now no sense to explain you step by step this page, you really need to learn that yourself, the mediawiki docu is here very good.
http://www.mediawiki.org/wiki/Help:Templates
But I can show you how to read this, without knowing what it does.
First look at some "{{" and try to find the matching "}}". Don't let you irritate with nesting brackets! Just count for each incoming {{ that you need to look for one more }} until you reach the end.
So once you have found the begin and end of an template in the text, you will notice the "|". That is the delimiter for the parameters of the template. Every | separates one more parameter. Again: Don't let you irritate from delimiters inside of nested templates (between more {{ and }}). Just ignore them! And now look again into the documentation of that template: If the author has made his job correctly, the template explains the first, second etc. parameter and how to use it.
In other words: for the machinery template (
https://forums.factorio.com/wiki/inde ... :Machinery) you need to have minimum 5 parameters and have some optional named parameters (
http://www.mediawiki.org/wiki/Help:Temp ... parameters ).
And for the icon-template (which is used in the InfocardVRow-template, which is used in the Infocard-template) you need 4 parameters (
https://forums.factorio.com/wiki/inde ... plate:Icon - I admit, that it is not well documented). That means you need three "|" in the template.
In the end I looked at it and I found your error:
Code: Select all
Before:
{{InfocardVRow|Required technologies|{{icon|Automation|Automation 1}}}}
After:
{{InfocardVRow|Required technologies|{{icon|Automation||Automation 1}}}}
Just an "empty" number for this icon.
So - as said - you need to look at the parameter and the number of parameters needed for a template.