Template:Ja

 This is a series of logic tests that analyses a string containing Japanese characters, and outputs a link linking to the Japanese Kirby wiki on Wikia.

Usage:

This is how it works: " , so it's a catch-all
 * 1) First it takes the whole string, and takes it up to the first "(" sign, which marks the start of the English literal translation if applicable. The Japanese name should not contain the "(" sign
 * 2) Second, it takes that string, right up to  ", which is part of the HTML breaking tag denoted by  " "  or  "
 * 1) Third, it takes that string, analyses it for a "/" symbol, which is used to separate alternative Japanese names. This is where the second field comes in. If not entered, it gives a value "0", which means to output the first part, before the "/" sign.
 * 2) Finally, it takes that string, analyses it for whitespace i.e. spacebar characters, substitutes these with "_", and concatenates the rest of the address onto the Japanese string.