Template talk:TrainingTable

From RimWorld Wiki
Jump to navigation Jump to search

Use of This Template & It's Out-of-date Information Displayed to User

This template has no documentation on how to use it. In a specific animal article, let's say the Elk it is called by the "{{TrainingTable}}" line in the edit page. However there are no variables or parameters being set in the call. So, how does it accurately get its information to display? However in the Cougar page, the same line is called, yet it populates the train-ability status correctly.

Looking at the template itself, it looks like it's trying to figure out using a switch statement if the "Can Train [Insert Type of Training]" is true or false. However on the animal edit page, this isn't defined anywhere. Where is it checking this? Where is the Training type defined for the animal? A lot of these are broken, or missing. I'd like to update all of them, but unfortunately with lack of documentation on how this template is being used, its increasingly difficult to update this.

Also this template is out of date it seems. The five characteristics of training of an animal are "Tameness, Guard, Attack, Rescue, & Haul". Should I just abandon this template all together and just update all the pages manually, or should I create a new template that reflects the current state of the game.

Edit: I have gone onto my page DJRedNightGaming Profile Page and added the following code to the edit page. I have figured out through the MediaWiki - Property Declaration Help Article How to define a pages properties. So I've set the properties to all true for the Training Table, and yet it still is not showing any of the check marks next to the values. So I'm thinking that this template is now broken unfortunately. Wondering maybe if I did something wrong for it not to show up? Going to be working on this over the next few days. Would love some insight from you helpful people!

Heres the Code Snippet:

{{TrainingTable}}

{{#set: Can_Train_Obedience=true}}
{{#set: Can_Train_Release=true}}
{{#set: Can_Train_Rescue=true}}
{{#set: Can_Train_Haul=true}}

Edit 2: I have come up with a new version of this template, that hopefully will allow the Animals category to be updated for the most current version of the game. The code is listed below. I will wait a few days before pushing this template to production and taking it out of the development phase. I appreciate your input on the matter, and would like to get your feedback on the new design. A working example can be found at:

A few new properties were created while making this design: Property:Can_Train_Guard | Property:Can_Train_Attack This was needed as Obedience & Release are now changed to Guard & Attack values in-game with Obedience & Release now being deprecated.

A new temporary template was created for testing purposes: Template:TrainingTemplateUpdated

For a more in depth tutorial or how to use the template, see User:DJRedNightGaming#Training_Template_Updates