Thread:Undoniel/@comment-1487274-20180320163736/@comment-3406131-20180524195356

Harasar wrote: Undoniel wrote: Yes, but a field that would not be asked (ex: Category:Editor Credit Needed) and appear if not filled. Writer, editor, penciler, etc. didn't appear if not filled, and the new field wouldn't appear either. As for Category:Editor Credit Needed and other such categories, they're are checked and added if needed by additional code in Marvel Database:Comic Template, so there wouldn't be any new category if you don't add the same code for the new field.

Undoniel wrote: Well, the additions were only added to the last two tier of the template so it seems odd to me.

Just to be sure, I have to both: That's right? I looked again at Marvel Database:Comic Template. The code for writers, pencilers, etc. for the first story is written within this template, but for the second, third and other stories it invokes Marvel Database:Comic Template/Corrected Story Contributors. So you would need to add:
 * add my additions to the template I intended to edit
 * add your part to the other one
 * code for the new field into Marvel Database:Comic Template for the first story (copy-paste and replace it from some other field, like writer).
 * code into Marvel Database:Comic Template that you wrote in your testing page
 * code into Marvel Database:Comic Template/Corrected Story Contributors that I wrote in previous post

Undoniel wrote: "Inspirer" won't do the trick as it's too wide. The notion is really the adaptation. There's no way to have the field to display another like of text instead of a single word? The only restriction on the number of words I can see is the width of the left part = 100px = 20 letters. But it's not really a restriction, because there is a line break. So you can use whatever words you want. It's done and it works, thanks a lot. A few little things to create or change (the template for the category page, possibly another name than Category:Marvel Staff/Adapted Stories...). And of course to check everything goes right.

Harasar wrote: Undoniel wrote: PS: I was testing something and witnessed that at least on the second story, the category Category:Writer Credit Needed doesn't appear if the field is not filled, while the other fields seems to work. It is because the code in Marvel Database:Comic Template checks only writers, pencilers, etc. for the first story and not for the other stories. I checked again and you're completely right, my bad.