Template talk:Trait
Template rewrite
Like Kenoxite said, this template needs a major rewrite. Unfortunately this is way beyond my capabilities to pull off, or at least at the moment anyway. I did some experimenting and am just glad I didn't break it completely. It should be fine for now though since it no longer displays "Trait" for everything at least.JayJayForce (talk) 03:10, 7 February 2015 (PST)
- I'm not at all familiar with 'em and appreciate you putting in the effort to bring us up to spec. No worries on my end--I'd be inclined to pin a forum title on you if you spent more time there. KA101 (talk) 11:15, 7 February 2015 (PST)
PREREQS2
In the json files there can be multiple prereqs. For the preconditions to be valid, it needs one out of each category. I ran into a mutation that had a secondary prereq list. So I added PREREQS2 to the template. --Soyweiser (talk) 06:20, 14 July 2015 (PDT)
'flags'
The trait system allows for certain flags to show which mutation path they belong to. Like shown here Full_Night_Vision, there are some issues with it. For one, they are not documented right now, and some are a bit unexpected. Like "bionic={name of bionic}" and mutation=1. These are not set in a lot of different mutations. My suggestion is to remove the 'mutation' one and add a 'trait' one. As traits seem to be less common that mutations. However this runs into the problem that some starting traits are profession and challenge dependant.
Also isn't a tag that shows if a trait is a threshold mutation. This will need to be added. --Soyweiser (talk) 13:13, 14 July 2015 (PDT)
{{CATEGORY}}
This part of the template code appears in a few places. But it doesn't refer to a template. (and causes other templates using the trait template to show up with this missing template in the "Templates used" list. I have no idea what it does (have not looked closely at it). But this should be fixed imho. --Soyweiser (talk) 17:30, 4 August 2016 (UTC)
Convert mutation jsons to mediawiki data. script.
Use this script trait.py if you want to quickly convert json files to the individual mutation pages. --Soyweiser (talk) 14:10, 19 August 2016 (UTC)