User talk:Crystalline Cat/Adding items to the "Base Stats" section of Template:Infobox/Thing?/reply

From RimWorld Wiki
Jump to navigation Jump to search

Quote from User talk:PieTau, I asked the exact same thing you did Zesty, the trick was to change the property name of "mass" to "mass base" as the {{#ask:}} parser function only asked for pages with the word "base" in them. Other keywords are "factor", "offset" etc.


for explaining ask lets look at this

{{#ask: [[Category: Stat]]
| format = template
| template = Entry/Base Stat
| link = none
| limit = 250
}}


it wil 'ask' every page in Category: Stat, it is like a foreach( page in Category:Stat)

                                            a page is like a text but with a link on the wiki

and it will follow the template:Entry/Base Stat as its guide for what to do with each page
so to understand how it will display the information you will have to look at template:Entry/Base Stat and all of its underlying code
limit is 250 because there is a limit on response time and it's also a security for infinite loops



a bit more clear?