Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Keep this wiki going by contributing to our Patreon!

Stun

Instead of having to redefine "Stun" value every time you create a template, you can use the switch parserfunction in order to do it automatically, since, according to Stun page, stun times remain static.

Example:

{{#switch: {{Hit}} {{Speed}}
|3 Slow=1.6
|2 Slow=2.3
|2 Very Slow=2.7
|3 Very Slow=1.65
|3 Normal=1.6
|3 Fast=1.4
}}
κєνıи тαıĸ«)16:08, 25 January 2011

Alright I'll do that. I didn't know how to put conditional statements in CSS/XHTML.


I also wanted to put a condition for Ego and SpecialUpgrade so that it'd show up in the "other information" box just by defining the parameter.

Tellos16:28, 25 January 2011
 

Such as

{{#if: {{{Egoable|}}}|Egoable weapon}}
{{#if: {{{SpecialUpgrade|}}}|Special upgrade enabled, or whatever.}}
κєνıи тαıĸ«)16:50, 25 January 2011
 

Is there a way to put an else? I want "Unknown" to show up if hit or stun are missing.

Tellos17:00, 25 January 2011
 

Add a line to the end with no conditions.

{{#switch: {{Hit}} {{Speed}}
|3 Slow=1.6
|This text shows up if nothing is matched
}}
κєνıи тαıĸ«)17:03, 25 January 2011
 

Anything else that needs to be changed before it can replace the existing weaponbox?

Tellos17:13, 25 January 2011
 

I'm not sure by just looking at it. We will need to apply some tests on it and see. The splash part of the box will be added when I get my minionship again. It involves javascript :P ~小太郎 TALKCONTRIBS 2011:01:26:09:16 (Wednesday)

~小太郎 TALK<sub style="margin-left:-26px 01:16, 26 January 2011

What do you plan to do with the box that requires js?

κєνıи тαıĸ«)13:14, 26 January 2011
 

Check this :P ~小太郎 TALKCONTRIBS 2011:01:27:02:39 (Thursday)

~小太郎 TALK<sub style="margin-left:-26px 18:39, 26 January 2011
 

I don't like it. It doesn't fit the simplicity of the weaponbox that I am aiming for. Simplicity > "coolness"

Tellos18:47, 26 January 2011
 

Though the function works correctly in chrome, the method of vertical text you're using doesn't seem to be supported. Besides, why use a slidebox when you've already got hiddentext? Seems a tiny bit redundant...

κєνıи тαıĸ«)18:50, 26 January 2011
 

It's not ready yet lawl :P
Also, I'm doing this method since the splash section is rather small, and putting a giant hiddentext thing at the bottom seems to use too much space for comfort. In the weapon template, I'm planning for it to default to a closed state, because I doubt that that information is actually used much ~小太郎 TALKCONTRIBS 2011:01:27:03:13 (Thursday)

~小太郎 TALK<sub style="margin-left:-26px 19:13, 26 January 2011
 

I don't see why we don't just include that into the template anyway.. it's not like it's soemthing you really need to hide.

κєνıи тαıĸ«)19:18, 26 January 2011
 

Do you need to modify one of the commons files or something? You can just edit this template if you want.

Tellos07:27, 26 January 2011