用户:Hotaru Natsumi/wikiplusconfig

{"key":"value","documatation":"http://zh.moegirl.org/User:%E5%A6%B9%E7%A9%BA%E9%85%B1/Wikiplus/%E8%AE%BE%E7%BD%AE%E8%AF%B4%E6%98%8E","defaultSummary":"function(sub){if(sub.sectionNumber=='-1'){return ' // Edited with [[User:镜音铃/Wikiplus|W+]] ([[' + mw.config.values.wgPageName + '|Entire]])'}if(sub.sectionName==''){return ' // Edited [[' + mw.config.values.wgPageName + '#top' + '|#top]] with [[User:镜音铃/Wikiplus|W+]]'}return ' // Edited [[' + mw.config.values.wgPageName + '#' + sub.sectionName + '|#' + sub.sectionName + ']] with [[User:镜音铃/Wikiplus|W+]]'}"}
function(wp){
 switch(mw.config.value.wgAction){
  case "edit":
   if(wp.sectionNumber==-1){
    return "// Edited with [[User:镜音铃/Wikiplus|W+]] ([[" + mw.config.values.wgPageName + "|Entire]])"
   }else{
    if(wp.sectionName==""){
    return " // Edited [[" + mw.config.values.wgPageName + "#top" + "|#top]] with [[User:镜音铃/Wikiplus|W+]]"
    }else{
     return " // Edited [[" + mw.config.values.wgPageName + "#" + sub.sectionName + "|#" + sub.sectionName + "]] with [[User:镜音铃/Wikiplus|W+]]"
     }
    }
   break;
   case "create":
    return " //Created page [[" + mw.config.values.wgPageName + "]] with [[User:镜音铃/Wikiplus|W+]]"
   break;
   default:
    return " //With [[User:镜音铃/Wikiplus|W+]] (action: " + mw.config.value.wgAction + ")"
 }
}