Forum:Need help putting tons of lines of code into the "then" part of an if statement.

I need help placing all the highlighted part of: http://wikia.pastey.net/85335-1cb5 into the "then" part of an if statement:. I know I need to change a lot of the |s to |, but I seem to keep missing some so I get expr error. The original template is here: http://shaiya.wikia.com/wiki/User:Nicolasjager/Template:Weapon/Simple/Complexer Nicolasjager 16:42, 8 April 2008 (UTC)