Thread:Matt2905/@comment-27996636-20180117095535/@comment-27095448-20180117110441

Lol. If you want the auto sizing from this wikia, you need to create this pages: Module:Characters on the other and add the invoke i have remove in the template

Well, not needed to put the replaceLinks function since they are many more links not real ahah, just need in w:c:db-dokfanbattle:Module:Characters

local p = {} -- This function who origanly design for switching design on Characters's Template This function need two parameter:   frame.args[1]: the text who need to be evaluate    frame.args[2]: the size max of one line The result is an value need to be tested in template    true: all lines are small    false: one or more lines are large -- function p.maxLen( frame ) local maxSize = tonumber(frame.args[2]) or 80 local tmpStr = string.gsub(frame.args[1], "%[%f]ile:.-%|", "")   tmpStr = string.gsub(tmpStr, "[%[|%", "") local tmpArray = mw.text.split(tmpStr, "") local textLines = {} local maxChars = 0; for key, value in pairs(tmpArray) do       value = mw.text.split(value, "\n") for i = 1, #value do           textLines[#textLines+1] = value[i] end end for key, value in pairs(textLines) do       if #value > maxChars then maxChars = #value end end if maxChars > maxSize then return false else return true end end return p