elanthipedia talk:Projects/Spells: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(New page: Hello, I've been working on finishing up the Bard spellbooks with example messaging, additional notes and completing any incomplete fields. Does anyone know how to edit the Categories: fi...)
 
No edit summary
Line 5: Line 5:


Thanks--[[User:Slowhubb|Slowhubb]] 02:46, 13 November 2007 (CST)
Thanks--[[User:Slowhubb|Slowhubb]] 02:46, 13 November 2007 (CST)

:I wrote the {{tlink|spell}} template, which {{tlink|enchante}} was based on. I think you're asking how to put in multiple values in, for example, the "spelltype" field and have the enchante go into all the categories corresponding to those values. The short answer is, it makes for ''really'' complicated code to trap for and match multiple values in one field. The easiest way to achieve the same end would be to add multiple fields eg '''spelltype1''', '''spelltype2''', spelltype3''', etc etc (blank entries wouldn't display) but I think this would make the template really cumbersome. It might be worth doing, but that would also require re-entering info for all the spells and enchantes. For now just add the extra category markers to the article manually.

I've never played a bard so I have no idea what the loud/quiet thing is ;) --[[User:Farman|Farman]] 22:33, 14 November 2007 (CST)

Revision as of 23:33, 14 November 2007

Hello, I've been working on finishing up the Bard spellbooks with example messaging, additional notes and completing any incomplete fields.

Does anyone know how to edit the Categories: fields in the templates to add additional categories for the spelltype? Most enchantes perform more than one function, and I wanted to update them to reflect that. I also wanted to update the valid targets fields to include the special LOUD/QUIET mechanics for enchantes, but I'm not sure how to do that!

Thanks--Slowhubb 02:46, 13 November 2007 (CST)

I wrote the {{spell}} template, which {{enchante}} was based on. I think you're asking how to put in multiple values in, for example, the "spelltype" field and have the enchante go into all the categories corresponding to those values. The short answer is, it makes for really complicated code to trap for and match multiple values in one field. The easiest way to achieve the same end would be to add multiple fields eg spelltype1, spelltype2, spelltype3, etc etc (blank entries wouldn't display) but I think this would make the template really cumbersome. It might be worth doing, but that would also require re-entering info for all the spells and enchantes. For now just add the extra category markers to the article manually.

I've never played a bard so I have no idea what the loud/quiet thing is ;) --Farman 22:33, 14 November 2007 (CST)