• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 137: Line 137:     
-- * String functions.
 
-- * String functions.
  −
function Utils.category(name)
  −
    return "[[" .. "Category:" .. name .. "]]"
  −
end
      
function Utils.pad(s, n, c)
 
function Utils.pad(s, n, c)
Line 162: Line 158:  
     s = s:gsub("^(%l)", function(a) return string.upper(a) end)
 
     s = s:gsub("^(%l)", function(a) return string.upper(a) end)
 
     return s
 
     return s
 +
end
 +
 +
-- * Wikitext/HTML functions.
 +
 +
function Utils.category(name)
 +
    return "[[" .. "Category:" .. name .. "]]"
 +
end
 +
 +
function Utils.red(s)
 +
    return Utils.format{[[<span style="color:red">${s}</span>]], s = s}
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu