Template talk:Effect box

From GuildWiki
Jump to: navigation, search

Alright, I'm putting this up as-is for now so I can get started fixing up the various effects articles. There are probably a few categories I missed, and I know the color on the box header sucks. Suggestions for improvement are more than welcome. —Dr Ishmael Diablo the chicken.gif 02:29, 22 April 2008 (UTC)

Is there any need to "modulate" this template on the effects articles like we do with skills? We do skills that way because of the Quick References, but I don't see why we'd need to do that for effects, so I'm commenting out the "edit details" link. —Dr Ishmael Diablo the chicken.gif 03:16, 22 April 2008 (UTC)

Do any effects have different concise descriptions? It kinda seems ointless if both are the same.Entrea SumataeEntrea [Talk] 03:24, 22 April 2008 (UTC)
Yes. Any that have a duration are different (since the concise puts that in parentheses), and a lot of the rest were reworded. That's still a good point, though - any effects where they are the same don't need to have both displayed. It should say Full/Concise: to show that they are the same. But how to do that... Add a boolean parameter, "concise_identical = yes"? Or say "concise_description = (Full)"? —Dr Ishmael Diablo the chicken.gif 03:53, 22 April 2008 (UTC)
type? which ones aren't environmental effects? what other types are there? perhaps we can include info on location? or is that not templateable?—JediRogue 03:42, 22 April 2008 (UTC)
I refer you to Category:Effects. There are item-induced effects, disguises, conditions, blessings, and bounties. Location would certainly be templateable, I hadn't thought of that. —Dr Ishmael Diablo the chicken.gif 03:54, 22 April 2008 (UTC)
Ahh, well then for item effects we probably want to include what causes the effect. —JediRogue 04:00, 22 April 2008 (UTC)
So parms for "location = " and "item = "? Although there should probably be a distinction for item effects between bundle items and consumable items. Ah, and for bounties, we should have "faction = " to show which group (Kurzick, Sunspears, Norn) they're for. —Dr Ishmael Diablo the chicken.gif 04:15, 22 April 2008 (UTC)
You can call consumables "consumables" and other items "bundles" if you like. we usually use bundle as the term for things you carry around here. —JediRogue 04:21, 22 April 2008 (UTC)

I think I got most of the above put into my test version. Check User:Dr ishmael/Test Effect and the links at the bottom to see the different kinds of effects. —Dr Ishmael Diablo the chicken.gif 05:14, 22 April 2008 (UTC)

Full[edit source]

shouldn't it look like



rather than



to make it look like the skills?--Balistic Pve (T/C) 22:32, 1 June 2008 (UTC)

This needs[edit source]

Heavy use of <noinclude> tags, because the effect categories are being put on the consumable pages as well. Unfortunately, I can't fix that, so an admin will have to.Entrea SumataeEntrea [Talk] 16:49, 7 June 2008 (UTC)

Specificly, the categories for Disguises, Consumable Effects, and Campaign Effects need to be noincluded.Entrea SumataeEntrea [Talk] 16:57, 7 June 2008 (UTC)
Is it right now? --Shadowcrest 17:15, 7 June 2008 (UTC)
Except that there's a random }} sitting out after the box now.Entrea SumataeEntrea [Talk] 17:17, 7 June 2008 (UTC)
Try putting the noincludes around the categories instead of the whole globs.Entrea SumataeEntrea [Talk] 17:23, 7 June 2008 (UTC)
Doesn't that defeat the purpose of auto-cat on pages like Golem Form? With the noincludes, the only cat on the page is effect stub. Without, it's categorized properly, right? --Shadowcrest 17:28, 7 June 2008 (UTC)
Yes, but with it, Automatonic shows up as a consumable effect. We need someone who knows templates better to figure it out.Entrea SumataeEntrea [Talk] 18:05, 7 June 2008 (UTC)
I have an idea... gimme some time to work on it. —Dr Ishmael Diablo the chicken.gif 20:51, 7 June 2008 (UTC)
Adding <noinclude>s to the template wouldn't have worked, because they would've prevented whatever they wrapped from being included at all. There's no way to make a <noinclude> pass through one call of the template, but then take effect if the including page is itself included somewhere else - trust me, I tried. So I went back to the old idea of the nocats parameter from the previous version of the Skill box template. —Dr Ishmael Diablo the chicken.gif 21:04, 7 June 2008 (UTC)
Would #ifexists: BASEPAGENAME (effect)|do not cat|cat work? Because the nocat is teh kludge. --mendel 09:54, 8 June 2008 (UTC)
Nope, because most effect articles (even for consumable effects) don't have the (effect) identifier. —Dr Ishmael Diablo the chicken.gif 15:59, 8 June 2008 (UTC)
Yeah, I wrote that wrong. #ifexists: PAGENAME (effect)|do not cat|cat does not cat for "Golden Egg" because "Golden Egg (effect)" exists; it cats for "Golden Egg (effect)" because "Golden Egg (effect) (effect)" does not exist, and it will for the same reason cat for any effect without "(effect)" in the name. Of course that is not desired for effects like "Sugar Rush", which may be linked from "Fruitcake", and the only way to prevent it catting "Fruitcake" would then be to add a "Fruitcake (effect)" article and redirect that to "Sugar Rush".
The other solution is to examine the unexpanded wikitext of FULLPAGENAME and see if "{{Effect box" occurs in the text, like so (replaced {{FULLPAGENAME}} with Sugar Rush):
{{#if: {{#pos:{{msgnw: :Sugar Rush}}|&lt;onlyinclude&gt;&{{((}}Effect box}}|cat this|dont cat this}}
cat this
In fact, searching for <onlyinclude> alone is probably sufficient and would work with any autocat. I wonder how much resources this takes - not that much. --mendel 23:24, 8 June 2008 (UTC)

Icon parameter[edit source]

It would be nice if this template just required the name of the icon (example: | icon = Holy Blessing) instead of a full call to the image (example: | icon = [[Image:Holy Blessing.jpg]]) like the Template:Skill box does. I'd be willing to help change the templates currently using the icon parameter if someone makes this change and lets me know. --Kirbman sig.png Kirbman 19:19, 30 July 2011 (UTC)

I had to do it that way to accommodate things like Asuran Bodyguard that display multiple icons. —Dr Ishmael Diablo the chicken.gif 16:22, 31 July 2011 (UTC)
Oh ok, nevermind then. --Kirbman sig.png Kirbman 02:02, 1 August 2011 (UTC)
Dunno why I didn't think of this before, but I could insert an additional parameter like icon-name to enable what you want. In fact, it won't hurt anything, so I think I've already done it. —Dr Ishmael Diablo the chicken.gif 02:08, 1 August 2011 (UTC)
Cool, it works. I'll use it for the individual flux pages. Thanks. --Kirbman sig.png Kirbman 17:15, 1 August 2011 (UTC)