Module:Sandbox/九江月/碧蓝航线link
跳到导航
跳到搜索
--[[ 测试代码 转换 var collection = $('#wpTextbox1')[0].value.split(/\n/g); var ret = ""; for(var item in collection){ var str = collection[item]; var id = str.match(/(?<=\|).*(?=c=)/g); var nameset = str.match(/(?<=\|\w{3,4})((?!\d).)*(?=\{\{!\}\})/g); var names = nameset?nameset[0].match(/(?<=\|)((?![\|=]).)*/g):""; ret += id?'["'+(Array.isArray(names)?names.join('"]="'+id+'",["'):names)+'"]="'+id+'",\n':""; } console.log(ret);//获取index表 var collection = $('#wpTextbox1')[0].value.split(/\n/g); var ret = ""; for(var item in collection){ var str = collection[item]; var id = str.match(/(?<=\|).*(?=c=)/g); var color = str.match(/(?<=c=)((?!\|).)*(?=\|)/g); ret += id?'["'+id+'"]={c="'+color+(str.match("改")?'",g="改':'')+'"},\n':""; } console.log(ret);//获取database表 //转换需要手动修正 ]] local color = { ["999"] = 1, ["33f"] = 2, ["c3c"] = 3, ["c90"] = 4, ["f39"] = 5, ["963"] = 6, ["d79"] = 7, ["c1"] = "999", ["c2"] = "33f",["c3"] = "c3c",["c4"] = "c90",["c5"] = "f39",["c6"] = "963",["c7"] = "d79" } local index = { ["紫布里"]="001",["泛用型布里"]="001", ["金布里"]="002",["试作型布里MKⅡ"]="002",["试作型布里MKII"]="002", ["杜威"]="004", ["卡辛"]="005", ["唐斯"]="006", ["格里德利"]="007", ["克雷文"]="008", ["麦考尔"]="009", ["莫里"]="010", ["弗莱彻"]="011", ["查尔斯·奥斯本"]="013", ["撒切尔"]="014", ["奥利克"]="015", ["富特"]="016", ["斯彭斯"]="017", ["本森"]="018", ["拉菲"]="019", ["西姆斯"]="026", ["哈曼"]="027", ["埃尔德里奇"]="028", ["贝利"]="263", ["拉德福特"]="299", ["杰金斯"]="300", ["尼古拉斯"]="301", ["丘比特"]="306", ["布什"]="355", ["霍比"]="362", ["科尔克"]="363", ["黑泽伍德"]="365", ["金伯利"]="374", ["马拉尼"]="375", ["艾尔温"]="406", ["贝奇"]="407", ["斯坦利"]="409", ["斯莫利"]="417", ["哈爾西·鮑威爾"]="427", ["库珀"]="442", ["女将"]="081", ["阿卡司塔"]="082", ["热心"]="083", ["小猎兔犬"]="086", ["大斗犬"]="087", ["彗星"]="088", ["皇家新月"]="089",["新月(皇家)"]="089",["新月(皇家)"]="089",["新月"]="089", ["小天鹅"]="090", ["狐提"]="091", ["命运女神"]="092", ["格伦维尔"]="093", ["萤火虫"]="094", ["勇敢"]="096", ["猎人"]="100", ["标枪"]="101", ["天后"]="102", ["吸血鬼"]="103", ["泽西"]="307", ["无敌"]="325", ["火枪手"]="326", ["回声"]="388", ["吹雪"]="151",["桐"]="151", ["绫波"]="155",["柚"]="155", ["晓"]="159",["枫"]="159", ["响"]="160",["栀"]="160", ["雷"]="161",["梓"]="161", ["电"]="162",["柏"]="162", ["白露"]="163",["梿"]="163", ["夕立"]="164",["椿"]="164", ["时雨"]="165",["栴"]="165", ["雪风"]="166",["莲"]="166", ["阳炎"]="167",["萩"]="167", ["不知火"]="168",["蒲"]="168", ["野分"]="170",["苓"]="170", ["初春"]="171",["梅"]="171", ["若叶"]="173",["楉"]="173", ["初霜"]="174",["檨"]="174", ["有明"]="175",["榎"]="175", ["夕暮"]="176",["棭"]="176", ["黑潮"]="177",["蓉"]="177", ["亲潮"]="178",["藮"]="178", ["神风"]="269",["榊"]="269", ["松风"]="270",["棡"]="270", ["睦月"]="271",["松"]="271", ["如月"]="272",["樟"]="272", ["卯月"]="274",["楙"]="274", ["水无月"]="276",["杌"]="276", ["文月"]="277",["橗"]="277", ["长月"]="278",["枨"]="278", ["三日月"]="280",["檧"]="280", ["江风"]="288",["茳"]="288", ["清波"]="293",["棈"]="293", ["重樱新月"]="295",["新月(重樱)"]="295",["新月(重樱)"]="295",["枥"]="295", ["春月"]="296",["桸"]="296", ["宵月"]="297",["楛"]="297", ["浦风"]="316",["槆"]="316", ["矶风"]="317",["柉"]="317", ["浜风"]="318",["滨风"]="318",["樇"]="318", ["谷风"]="319",["谷风"]="319",["栭"]="319", ["朝潮"]="331",["棹"]="331", ["大潮"]="332",["荙"]="332", ["满潮"]="333",["樠"]="333", ["荒潮"]="334",["栘"]="334", ["旗风"]="369",["樋"]="369", ["卷波"]="370",["棬"]="370", ["霞"]="424",["蕸"]="424", ["浦波"]="429",["朴"]="429", ["北风"]="Plan009",["苝"]="Plan009", ["Z1"]="233", ["Z23"]="236", ["Z25"]="237", ["Z19"]="264", ["Z20"]="265", ["Z21"]="266", ["Z46"]="267", ["Z35"]="345", ["Z18"]="346", ["Z2"]="379", ["Z36"]="389", ["鞍山"]="253", ["抚顺"]="254", ["长春"]="255", ["太原"]="256", ["塔什干"]="433", ["明斯克"]="432", ["威严"]="431", ["勒马尔"]="351", ["恶毒"]="394", ["凯旋"]="347", ["福尔班"]="348", ["鲁莽"]="359", ["倔强"]="395", ["龙骑兵"]="415", ["奥马哈"]="029", ["罗利"]="030", ["布鲁克林"]="031", ["菲尼克斯"]="032", ["海伦娜"]="003", ["亚特兰大"]="034", ["朱诺"]="035", ["圣地亚哥"]="036", ["克利夫兰"]="037", ["哥伦比亚"]="038", ["里士满"]="303", ["火奴鲁鲁"]="304", ["圣路易斯"]="305", ["蒙彼利埃"]="329", ["丹佛"]="330", ["孟菲斯"]="360", ["康克德"]="366", ["小海伦娜"]="390", ["小克利夫兰"]="391", ["小圣地亚哥"]="392", ["圣胡安"]="404", ["伯明翰"]="405", ["克利夫兰(μ兵装)"]="420", ["比洛克西"]="428", ["里诺"]="443", ["马布尔黑德"]="444", ["西雅图"]="Plan007", ["null"]="038", ["利安得"]="104", ["阿基里斯"]="105", ["阿贾克斯"]="106", ["南安普顿"]="110", ["谢菲尔德"]="111", ["格罗斯特"]="113", ["爱丁堡"]="114", ["贝尔法斯特"]="115", ["阿瑞托莎"]="116", ["加拉蒂亚"]="117", ["欧若拉"]="118", ["斐济"]="327", ["牙买加"]="328", ["小贝法"]="335", ["纽卡斯尔"]="361", ["天狼星"]="371", ["库拉索"]="372", ["杓鹬"]="373", ["确捷"]="393", ["黑太子"]="408", ["谢菲尔德(μ兵装)"]="421", ["格拉斯哥"]="423", ["黛朵"]="107", ["海王星"]="Plan001", ["夕张"]="179",["狐"]="179", ["天龙"]="180", ["龍田"]="181", ["长良"]="182",["貊"]="182", ["五十铃"]="183",["貉"]="183", ["名取"]="184", ["由良"]="185", ["鬼怒"]="186",["猤"]="186", ["阿武隈"]="187",["貃"]="187", ["最上"]="188",["猨"]="188", ["三隈"]="189",["狻"]="189", ["川内"]="308",["貆"]="308", ["神通"]="309",["貎"]="309", ["那珂"]="310",["豻"]="310", ["阿贺野"]="321",["豼"]="321", ["能代"]="322",["貅"]="322", ["矢矧"]="323", ["酒匂"]="324", ["柯尼斯堡"]="238", ["卡尔斯鲁厄"]="239", ["科隆"]="240", ["莱比锡"]="241", ["逸仙"]="257", ["宁海"]="258", ["平海"]="259", ["埃米尔·贝尔汀"]="349", ["阿芙乐尔"]="262", ["水星纪念"]="436", ["恰巴耶夫"]="434", ["彭萨科拉"]="039", ["盐湖城"]="040", ["北安普敦"]="041",["北安普顿"]="041", ["芝加哥"]="042", ["休斯敦"]="043",["休斯敦"]="043", ["波特兰"]="044", ["印第安纳波利斯"]="045", ["阿斯托利亚"]="046", ["昆西"]="047", ["文森斯"]="048", ["威奇塔"]="049", ["巴尔的摩"]="050", ["明尼阿波利斯"]="364", ["布莱默顿"]="445", ["伦敦"]="119", ["什罗普郡"]="120", ["肯特"]="121", ["萨福克"]="122", ["诺福克"]="123", ["多塞特郡"]="124", ["约克"]="125", ["埃克塞特"]="126", ["苏塞克斯"]="337", ["古鹰"]="190",["狼"]="190", ["加古"]="191",["狌"]="191", ["青叶"]="192",["犹"]="192", ["衣笠"]="193",["猅"]="193", ["妙高"]="196",["獌"]="196", ["那智"]="197",["狏"]="197", ["足柄"]="198",["狳"]="198", ["铃谷"]="382",["狺"]="382", ["高雄"]="200",["獒"]="200", ["爱宕"]="201",["犬"]="201", ["摩耶"]="202",["犮"]="202",["发"]="202", ["鸟海"]="203",["猋"]="203", ["伊吹"]="Plan003", ["希佩尔海军上将"]="242", ["欧根亲王"]="244", ["德意志"]="245", ["斯佩伯爵海军上将"]="246", ["希佩尔海军上将(μ兵装)"]="422", ["罗恩"]="Plan005", ["路易九世"]="Plan006", ["扎拉"]="413", ["特伦托"]="414", ["吾妻"]="Plan010",["猉"]="Plan010", ["内华达"]="052", ["俄克拉荷马"]="053", ["宾夕法尼亚"]="054", ["亚利桑那"]="055", ["田纳西"]="058", ["加利福尼亚"]="059", ["科罗拉多"]="060", ["马里兰"]="061", ["西弗吉尼亚"]="062", ["北卡罗来纳"]="063", ["华盛顿"]="064", ["南达科他"]="065", ["马萨诸塞"]="354", ["阿拉巴马"]="401", ["佐治亚"]="Plan008", ["声望"]="127", ["反击"]="128", ["胡德"]="129", ["伊丽莎白女王"]="130", ["厌战"]="131", ["纳尔逊"]="132", ["罗德尼"]="133", ["英王乔治五世"]="134", ["威尔士亲王"]="135", ["约克公爵"]="136", ["君主"]="Plan002", ["扶桑"]="208",["魟"]="208", ["山城"]="209",["鲼"]="209", ["伊势"]="210",["鳌"]="210", ["日向"]="211",["螯"]="211", ["长门"]="212",["鲨"]="212", ["陆奥"]="213",["鲛"]="213", ["三笠"]="320",["鲐"]="320", ["加贺BB"]="368",["鸾"]="368", ["骏河"]="425",["鲪"]="425", ["出云"]="Plan004",["侌"]="Plan004", ["金刚"]="204",["鲤"]="204", ["比叡"]="205",["鲟"]="205", ["小比叡"]="383",["小鲟"]="383", ["榛名"]="206",["鲑"]="206", ["雾岛"]="207",["鳗"]="207", ["天城"]="367",["鳐"]="367", ["沙恩霍斯特"]="248", ["格奈森瑙"]="249", ["俾斯麦"]="250", ["提尔比茨"]="251", ["腓特烈大帝"]="Plan011", ["甘古特"]="437", ["苏维埃罗西亚"]="441", ["敦刻尔克"]="352", ["让·巴尔"]="353", ["加斯科涅"]="Plan012", ["加斯科涅(μ兵装)"]="418", ["利托里奥"]="410", ["加富尔伯爵"]="411", ["朱利奥·凯撒"]="412", ["长岛"]="070", ["博格"]="071", ["兰利"]="072", ["突击者"]="075", ["独立"]="377", ["巴丹"]="403", ["卡萨布兰卡"]="446", ["列克星敦"]="073", ["萨拉托加"]="074", ["约克城"]="076", ["企业"]="077", ["大黄蜂"]="078", ["胡蜂"]="079", ["埃塞克斯"]="357", ["香格里拉"]="378", ["邦克山"]="380", ["无畏"]="447", ["竞技神"]="140", ["独角兽"]="142", ["半人马"]="356", ["追赶者"]="376", ["皇家方舟"]="144", ["光辉"]="145", ["胜利"]="146", ["可畏"]="147", ["光荣"]="148", ["飞鹰"]="218",["鸱"]="218", ["隼鹰"]="219",["鸢"]="219", ["凤翔"]="220",["凤"]="220", ["祥凤"]="222",["鹞"]="222", ["龙骧"]="223",["枭"]="223", ["龙凤 "]="426",["鸗"]="426", ["赤城"]="224",["凰"]="224", ["加贺"]="225",["鸾"]="225", ["苍龙"]="226",["蛟"]="226", ["飞龙"]="227",["龙"]="227", ["翔鹤"]="228",["鹬"]="228", ["瑞鹤"]="229",["鹬"]="229", ["大凤"]="230",["鹩"]="230", ["赤城(μ兵装)"]="419",["凰(μ兵装)"]="419", ["小赤城"]="384",["小凰"]="384", ["齐柏林伯爵"]="252", ["小齐柏林"]="385", ["黑暗界"]="149", ["恐怖"]="150", ["阿贝克隆比"]="336", ["鲦鱼"]="342", ["大青花鱼"]="358", ["棘鳍"]="402", ["蓝鳃鱼"]="448", ["伊19"]="338", ["伊26"]="339", ["伊58"]="340", ["伊13"]="381", ["伊25"]="396", ["伊56"]="397", ["伊168"]="398", ["U-81"]="341", ["U-47"]="343", ["U-557"]="344", ["U-556"]="386", ["U-73"]="387", ["U-101"]="399", ["U-522"]="400", ["U-110"]="416", ["絮库夫"]="350", ["女灶神"]="080", ["明石"]="232",["茗"]="232", ["卡辛.改"]="3005", ["唐斯.改"]="3006", ["拉菲.改"]="3019", ["西姆斯.改"]="3026", ["哈曼.改"]="3027", ["圣地亚哥.改"]="3036", ["波特兰.改"]="3044", ["内华达.改"]="3052", ["俄克拉荷马.改"]="3053", ["长岛.改"]="3070", ["博格.改"]="3071", ["兰利.改"]="3072", ["萨拉托加.改"]="3074", ["突击者.改"]="3075", ["女将.改"]="3081", ["阿卡司塔.改"]="3082", ["热心.改"]="3083", ["彗星.改"]="3088", ["新月.改"]="3089", ["小天鹅.改"]="3090", ["狐提.改"]="3091", ["命运女神.改"]="3092", ["标枪.改"]="3101", ["利安得.改"]="3104", ["阿基里斯.改"]="3105", ["阿贾克斯.改"]="3106", ["伦敦.改"]="3119", ["萨福克.改"]="3122", ["约克.改"]="3125", ["埃克塞特.改"]="3126", ["厌战.改"]="3131", ["竞技神.改"]="3140", ["绫波.改"]="3155", ["时雨.改"]="3165", ["阳炎.改"]="3167", ["不知火.改"]="3168", ["初春.改"]="3171", ["夕暮.改"]="3176", ["夕张.改"]="3179", ["鬼怒.改"]="3186", ["阿武隈.改"]="3187", ["最上.改"]="3188", ["古鹰.改"]="3190", ["加古.改"]="3191", ["扶桑.改"]="3208", ["山城.改"]="3209", ["伊势.改"]="3210", ["日向.改"]="3211", ["祥凤.改"]="3222", ["苍龙.改"]="3226", ["飞龙.改"]="3227", ["Z1.改"]="3233", ["Z23.改"]="3236", ["卡尔斯鲁厄.改"]="3239", ["科隆.改"]="3240", ["莱比锡.改"]="3241", ["埃米尔·贝尔汀.改"]="3349", ["宁海.改"]="3258", ["平海.改"]="3259", ["贝利.改"]="3263", ["神风.改"]="3269", ["松风.改"]="3270", ["睦月.改"]="3271", ["如月.改"]="3272", ["尼古拉斯.改"]="3301", ["川内.改"]="3308", ["神通.改"]="3309", ["滨风.改"]="3318", ["谷风.改"]="3319", ["福尔班.改"]="3348", ["埃米尔·贝尔汀.改"]="3349", ["勒马尔.改"]="3351", ["纽卡斯尔.改"]="3361", ["库拉索.改"]="3372", ["杓鹬.改"]="3373", ["22"]="ex21",["22娘"]="ex21", ["33"]="ex22",["33娘"]="ex22", ["布兰"]="EX3", ["群白之心"]="EX7", ["涅普顿"]="EX1", ["绀紫之心"]="EX5", ["诺瓦露"]="EX2", ["圣黑之心"]="EX6", ["贝露"]="EX4", ["翡绿之心"]="EX8", ["露露缇耶"]="ex31", ["乌璐露"]="ex32", ["萨拉娜"]="ex33", ["猫音"]="ex34", ["久远"]="ex35", ["芙米露露"]="ex36", ["绊爱"]="ex41", ["绊爱·ELEGANT"]="ex42", ["绊爱·ANNIVERSARY"]="ex43", ["绊爱·SUPERGAMER"]="ex44", ["白上吹雪"]="ex51", ["大神澪"]="ex52", ["夏色祭"]="ex53", ["湊阿库娅"]="ex54", ["紫咲诗音"]="ex55", ["百鬼绫目"]="ex56", ["时乃空"]="ex57" } local database = { ["null"]={c="999",n="未知"}, ["001"]={c="c3c",n="泛用型布里"}, ["002"]={c="c90",n="试作型布里MKII"}, ["004"]={c="33f",n="杜威"}, ["005"]={c="999",n="卡辛",g="改"}, ["006"]={c="999",n="唐斯",g="改"}, ["007"]={c="33f",n="格里德利"}, ["008"]={c="999",n="克雷文"}, ["009"]={c="999",n="麦考尔"}, ["010"]={c="c3c",n="莫里"}, ["011"]={c="33f",n="弗莱彻"}, ["013"]={c="c3c",n="查尔斯·奥斯本"}, ["014"]={c="33f",n="撒切尔"}, ["015"]={c="999",n="奥利克"}, ["016"]={c="999",n="富特"}, ["017"]={c="999",n="斯彭斯"}, ["018"]={c="33f",n="本森"}, ["019"]={c="c3c",n="拉菲",g="改"}, ["026"]={c="33f",n="西姆斯",g="改"}, ["027"]={c="33f",n="哈曼",g="改"}, ["028"]={c="c90",n="埃尔德里奇"}, ["263"]={c="33f",n="贝利",g="改"}, ["299"]={c="33f",n="拉德福特"}, ["300"]={c="33f",n="杰金斯"}, ["301"]={c="c3c",n="尼古拉斯",g="改"}, ["306"]={c="33f",n="丘比特"}, ["355"]={c="33f",n="布什"}, ["362"]={c="33f",n="霍比"}, ["363"]={c="33f",n="科尔克"}, ["365"]={c="33f",n="黑泽伍德"}, ["374"]={c="33f",n="金伯利"}, ["375"]={c="c3c",n="马拉尼"}, ["406"]={c="33f",n="艾尔温"}, ["407"]={c="33f",n="贝奇"}, ["409"]={c="33f",n="斯坦利"}, ["417"]={c="33f",n="斯莫利"}, ["427"]={c="33f",n="哈爾西·鮑威爾"}, ["442"]={c="c3c",n="库珀"}, ["081"]={c="33f",n="女将",g="改"}, ["082"]={c="33f",n="阿卡司塔",g="改"}, ["083"]={c="33f",n="热心",g="改"}, ["086"]={c="999",n="小猎兔犬"}, ["087"]={c="999",n="大斗犬"}, ["088"]={c="999",n="彗星",g="改"}, ["089"]={c="999",n="新月",g="改"}, ["090"]={c="999",n="小天鹅",g="改"}, ["091"]={c="999",n="狐提",g="改"}, ["092"]={c="33f",n="命运女神",g="改"}, ["093"]={c="c3c",n="格伦维尔"}, ["094"]={c="c3c",n="萤火虫"}, ["096"]={c="c3c",n="勇敢"}, ["100"]={c="33f",n="猎人"}, ["101"]={c="c3c",n="标枪",g="改"}, ["102"]={c="33f",n="天后"}, ["103"]={c="c3c",n="吸血鬼"}, ["307"]={c="33f",n="泽西"}, ["325"]={c="c3c",n="无敌"}, ["326"]={c="c3c",n="火枪手"}, ["388"]={c="33f",n="回声"}, ["151"]={c="c3c",n="吹雪(桐)"}, ["155"]={c="c3c",n="绫波(柚)",g="改"}, ["159"]={c="33f",n="晓(枫)"}, ["160"]={c="c3c",n="响(栀"}, ["161"]={c="33f",n="雷(梓)"}, ["162"]={c="33f",n="电(柏)"}, ["163"]={c="33f",n="白露(梿)"}, ["164"]={c="c90",n="夕立(椿)"}, ["165"]={c="c3c",n="时雨(栴)",g="改"}, ["166"]={c="c90",n="雪风(莲)"}, ["167"]={c="33f",n="阳炎(萩)",g="改"}, ["168"]={c="999",n="不知火(蒲)",g="改"}, ["170"]={c="c3c",n="野分(苓)"}, ["171"]={c="33f",n="初春(梅)",g="改"}, ["173"]={c="33f",n="若叶(楉)"}, ["174"]={c="33f",n="初霜(檨)"}, ["175"]={c="33f",n="有明(榎)"}, ["176"]={c="33f",n="夕暮(棭)",g="改"}, ["177"]={c="33f",n="黑潮(蓉)"}, ["178"]={c="33f",n="亲潮(藮)"}, ["269"]={c="33f",n="神风(榊)",g="改"}, ["270"]={c="33f",n="松风(棡)",g="改"}, ["271"]={c="999",n="睦月(松)",g="改"}, ["272"]={c="999",n="如月(樟)",g="改"}, ["274"]={c="999",n="卯月(楙)"}, ["276"]={c="999",n="水无月(杌)"}, ["277"]={c="33f",n="文月(橗)"}, ["278"]={c="33f",n="长月(枨)"}, ["280"]={c="999",n="三日月(檧)"}, ["288"]={c="c90",n="江风(茳)"}, ["293"]={c="33f",n="清波(棈)"}, ["295"]={c="c3c",n="新月(枥)"}, ["296"]={c="c3c",n="春月(桸)"}, ["297"]={c="c3c",n="宵月(楛)"}, ["316"]={c="33f",n="浦风(槆)"}, ["317"]={c="33f",n="矶风(柉)"}, ["318"]={c="33f",n="滨风(樇)",g="改"}, ["319"]={c="33f",n="谷风(栭)",g="改"}, ["331"]={c="33f",n="朝潮(棹)"}, ["332"]={c="33f",n="大潮(荙)"}, ["333"]={c="33f",n="满潮(樠)"}, ["334"]={c="33f",n="荒潮(栘)"}, ["369"]={c="33f",n="旗风(樋)"}, ["370"]={c="c3c",n="卷波(棬)"}, ["424"]={c="c3c",n="霞(蕸)"}, ["429"]={c="33f",n="浦波(朴)"}, ["Plan009"]={c="963",n="北风(苝)"}, ["233"]={c="c3c",n="Z1",g="改"},["Z1"]={c="c3c",n="Z1",g="改"}, ["236"]={c="c3c",n="Z23",g="改"},["Z23"]={c="c3c",n="Z23",g="改"}, ["237"]={c="c3c",n="Z25"},["Z25"]={c="c3c",n="Z25"}, ["264"]={c="33f",n="Z19"},["Z19"]={c="33f",n="Z19"}, ["265"]={c="999",n="Z20"},["Z20"]={c="999",n="Z20"}, ["266"]={c="999",n="Z21"},["Z21"]={c="999",n="Z21"}, ["267"]={c="c90",n="Z46"},["Z46"]={c="c90",n="Z46"}, ["345"]={c="c3c",n="Z35"},["Z35"]={c="c3c",n="Z35"}, ["346"]={c="33f",n="Z18"},["Z18"]={c="33f",n="Z18"}, ["379"]={c="c3c",n="Z2"},["Z2"]={c="c3c",n="Z2"}, ["389"]={c="c3c",n="Z36"},["Z36"]={c="c3c",n="Z36"}, ["253"]={c="c3c",n="鞍山"}, ["254"]={c="c3c",n="抚顺"}, ["255"]={c="c3c",n="长春"}, ["256"]={c="c3c",n="太原"}, ["433"]={c="c90",n="塔什干"}, ["432"]={c="c3c",n="明斯克"}, ["431"]={c="c3c",n="威严"}, ["351"]={c="33f",n="勒马尔",g="改"}, ["394"]={c="c90",n="恶毒"}, ["347"]={c="c90",n="凯旋"}, ["348"]={c="33f",n="福尔班",g="改"}, ["359"]={c="c3c",n="鲁莽"}, ["395"]={c="c3c",n="倔强"}, ["415"]={c="c3c",n="龙骑兵"}, ["029"]={c="999",n="奥马哈"}, ["030"]={c="999",n="罗利"}, ["031"]={c="33f",n="布鲁克林"}, ["032"]={c="33f",n="菲尼克斯"}, ["003"]={c="c3c",n="海伦娜"}, ["034"]={c="33f",n="亚特兰大"}, ["035"]={c="33f",n="朱诺"}, ["036"]={c="c90",n="圣地亚哥",g="改"}, ["037"]={c="c3c",n="克利夫兰"}, ["038"]={c="c3c",n="哥伦比亚"}, ["303"]={c="999",n="里士满"}, ["304"]={c="33f",n="火奴鲁鲁"}, ["305"]={c="c3c",n="圣路易斯"}, ["329"]={c="c90",n="蒙彼利埃"}, ["330"]={c="c3c",n="丹佛"}, ["360"]={c="33f",n="孟菲斯"}, ["366"]={c="c3c",n="康克德"}, ["390"]={c="c3c",n="小海伦娜"}, ["391"]={c="c3c",n="小克利夫兰"}, ["392"]={c="c3c",n="小圣地亚哥"}, ["404"]={c="33f",n="圣胡安"}, ["405"]={c="c3c",n="伯明翰"}, ["420"]={c="c3c",n="克利夫兰(μ兵装)"}, ["428"]={c="c3c",n="比洛克西"}, ["443"]={c="c90",n="里诺"}, ["444"]={c="33f",n="马布尔黑德"}, ["Plan007"]={c="963",n="西雅图"}, ["038"]={c="000",n="null"}, ["104"]={c="999",n="利安得",g="改"}, ["105"]={c="33f",n="阿基里斯",g="改"}, ["106"]={c="33f",n="阿贾克斯",g="改"}, ["110"]={c="33f",n="南安普顿"}, ["111"]={c="c3c",n="谢菲尔德"}, ["113"]={c="c3c",n="格罗斯特"}, ["114"]={c="c3c",n="爱丁堡"}, ["115"]={c="c90",n="贝尔法斯特"}, ["116"]={c="33f",n="阿瑞托莎"}, ["117"]={c="33f",n="加拉蒂亚"}, ["118"]={c="c3c",n="欧若拉"}, ["327"]={c="33f",n="斐济"}, ["328"]={c="33f",n="牙买加"}, ["335"]={c="c3c",n="小贝法"}, ["361"]={c="33f",n="纽卡斯尔",g="改"}, ["371"]={c="c90",n="天狼星"}, ["372"]={c="33f",n="库拉索",g="改"}, ["373"]={c="33f",n="杓鹬",g="改"}, ["393"]={c="c90",n="确捷"}, ["408"]={c="c3c",n="黑太子"}, ["421"]={c="c3c",n="谢菲尔德(μ兵装)"}, ["423"]={c="33f",n="格拉斯哥"}, ["107"]={c="c90",n="黛朵"}, ["Plan001"]={c="963",n="海王星"}, ["179"]={c="c3c",n="夕张(狐)",g="改"}, ["180"]={c="000",n="天龙"}, ["181"]={c="000",n="龍田"}, ["182"]={c="999",n="长良(貊)"}, ["183"]={c="33f",n="五十铃(貉)"}, ["184"]={c="000",n="名取"}, ["185"]={c="000",n="由良"}, ["186"]={c="c3c",n="鬼怒(猤)",g="改"}, ["187"]={c="999",n="阿武隈(貃)",g="改"}, ["188"]={c="c3c",n="最上(猨)",g="改"}, ["189"]={c="c3c",n="三隈(狻)"}, ["308"]={c="33f",n="川内(貆)",g="改"}, ["309"]={c="c3c",n="神通(貎)",g="改"}, ["310"]={c="33f",n="那珂(豻)"}, ["321"]={c="c3c",n="阿贺野(豼)"}, ["322"]={c="c3c",n="能代(貅)"}, ["323"]={c="000",n="矢矧"}, ["324"]={c="000",n="酒匂"}, ["238"]={c="999",n="柯尼斯堡"}, ["239"]={c="999",n="卡尔斯鲁厄",g="改"}, ["240"]={c="999",n="科隆",g="改"}, ["241"]={c="33f",n="莱比锡",g="改"}, ["257"]={c="c3c",n="逸仙"}, ["258"]={c="c3c",n="宁海",g="改"}, ["259"]={c="c3c",n="平海",g="改"}, ["349"]={c="c3c",n="埃米尔·贝尔汀",g="改"}, ["262"]={c="c90",n="阿芙乐尔"}, ["436"]={c="c3c",n="水星纪念"}, ["434"]={c="c90",n="恰巴耶夫"}, ["039"]={c="999",n="彭萨科拉"}, ["040"]={c="999",n="盐湖城"}, ["041"]={c="33f",n="北安普顿"}, ["042"]={c="33f",n="芝加哥"}, ["043"]={c="c3c",n="休斯敦"}, ["044"]={c="33f",n="波特兰",g="改"}, ["045"]={c="c3c",n="印第安纳波利斯"}, ["046"]={c="c3c",n="阿斯托利亚"}, ["047"]={c="c3c",n="昆西"}, ["048"]={c="c3c",n="文森斯"}, ["049"]={c="c3c",n="威奇塔"}, ["050"]={c="c90",n="巴尔的摩"}, ["364"]={c="c90",n="明尼阿波利斯"}, ["445"]={c="c90",n="布莱默顿"}, ["119"]={c="c3c",n="伦敦",g="改"}, ["120"]={c="33f",n="什罗普郡"}, ["121"]={c="33f",n="肯特"}, ["122"]={c="33f",n="萨福克",g="改"}, ["123"]={c="33f",n="诺福克"}, ["124"]={c="c3c",n="多塞特郡"}, ["125"]={c="c3c",n="约克",g="改"}, ["126"]={c="c3c",n="埃克塞特",g="改"}, ["337"]={c="33f",n="苏塞克斯"}, ["190"]={c="999",n="古鹰(狼)",g="改"}, ["191"]={c="999",n="加古(狌)",g="改"}, ["192"]={c="999",n="青叶(犹)"}, ["193"]={c="999",n="衣笠(猅)"}, ["196"]={c="33f",n="妙高(獌)"}, ["197"]={c="33f",n="那智(狏)"}, ["198"]={c="c3c",n="足柄(狳)"}, ["382"]={c="c3c",n="铃谷(狺)"}, ["200"]={c="c90",n="高雄(獒)"}, ["201"]={c="c90",n="爱宕(犬)"}, ["202"]={c="c90",n="摩耶(犮)"}, ["203"]={c="c90",n="鸟海(猋)"}, ["Plan003"]={c="963",n="伊吹(峦)"}, ["242"]={c="c3c",n="希佩尔海军上将"}, ["244"]={c="c90",n="欧根亲王"}, ["245"]={c="c3c",n="德意志"}, ["246"]={c="c3c",n="斯佩伯爵海军上将"}, ["422"]={c="c3c",n="希佩尔海军上将(μ兵装)"}, ["Plan005"]={c="963",n="罗恩"}, ["Plan006"]={c="963",n="路易九世"}, ["413"]={c="c90",n="扎拉"}, ["414"]={c="33f",n="特伦托"}, ["Plan010"]={c="d79",n="吾妻(猉)"}, ["052"]={c="999",n="内华达",g="改"}, ["053"]={c="999",n="俄克拉荷马",g="改"}, ["054"]={c="33f",n="宾夕法尼亚"}, ["055"]={c="c3c",n="亚利桑那"}, ["058"]={c="33f",n="田纳西"}, ["059"]={c="33f",n="加利福尼亚"}, ["060"]={c="c3c",n="科罗拉多"}, ["061"]={c="c3c",n="马里兰"}, ["062"]={c="c3c",n="西弗吉尼亚"}, ["063"]={c="c90",n="北卡罗来纳"}, ["064"]={c="c90",n="华盛顿"}, ["065"]={c="c90",n="南达科他"}, ["354"]={c="c90",n="马萨诸塞"}, ["401"]={c="c90",n="阿拉巴马"}, ["Plan008"]={c="963",n="佐治亚"}, ["127"]={c="c3c",n="声望"}, ["128"]={c="33f",n="反击"}, ["129"]={c="c90",n="胡德"}, ["130"]={c="c3c",n="伊丽莎白女王"}, ["131"]={c="c90",n="厌战",g="改"}, ["132"]={c="c3c",n="纳尔逊"}, ["133"]={c="c3c",n="罗德尼"}, ["134"]={c="c90",n="英王乔治五世"}, ["135"]={c="c90",n="威尔士亲王"}, ["136"]={c="c90",n="约克公爵"}, ["Plan002"]={c="963",n="君主"}, ["208"]={c="33f",n="扶桑(魟)",g="改"}, ["209"]={c="33f",n="山城(鲼)",g="改"}, ["210"]={c="33f",n="伊势(鳌)",g="改"}, ["211"]={c="33f",n="日向(螯)",g="改"}, ["212"]={c="c90",n="长门(鲨)"}, ["213"]={c="c3c",n="陆奥(鲛)"}, ["320"]={c="c90",n="三笠(鲐)"}, ["368"]={c="c90",n="加贺BB(鸾)"}, ["425"]={c="c90",n="骏河(鲪)"}, ["Plan004"]={c="963",n="出云(侌"}, ["204"]={c="c3c",n="金刚(鲤)"}, ["205"]={c="c3c",n="比叡(鲟)"}, ["383"]={c="c3c",n="小比叡(小鲟)"}, ["206"]={c="c3c",n="榛名(鲑)"}, ["207"]={c="c3c",n="雾岛(鳗)"}, ["367"]={c="c90",n="天城(鳐)"}, ["248"]={c="c3c",n="沙恩霍斯特"}, ["249"]={c="c3c",n="格奈森瑙"}, ["250"]={c="c90",n="俾斯麦"}, ["251"]={c="c90",n="提尔比茨"}, ["Plan011"]={c="d79",n="腓特烈大帝"}, ["437"]={c="c3c",n="甘古特"}, ["441"]={c="c90",n="苏维埃罗西亚"}, ["352"]={c="c3c",n="敦刻尔克"}, ["353"]={c="c90",n="让·巴尔"}, ["Plan012"]={c="963",n="加斯科涅"}, ["418"]={c="c90",n="加斯科涅(μ兵装)"}, ["410"]={c="c90",n="利托里奥"}, ["411"]={c="33f",n="加富尔伯爵"}, ["412"]={c="c3c",n="朱利奥·凯撒"}, ["070"]={c="33f",n="长岛",g="改"}, ["071"]={c="999",n="博格",g="改"}, ["072"]={c="999",n="兰利",g="改"}, ["075"]={c="999",n="突击者",g="改"}, ["377"]={c="c3c",n="独立"}, ["403"]={c="c3c",n="巴丹"}, ["446"]={c="33f",n="卡萨布兰卡"}, ["073"]={c="c3c",n="列克星敦"}, ["074"]={c="c3c",n="萨拉托加",g="改"}, ["076"]={c="c3c",n="约克城"}, ["077"]={c="c90",n="企业"}, ["078"]={c="c3c",n="大黄蜂"}, ["079"]={c="33f",n="胡蜂"}, ["357"]={c="c90",n="埃塞克斯"}, ["378"]={c="c90",n="香格里拉"}, ["380"]={c="c90",n="邦克山"}, ["447"]={c="c90",n="无畏"}, ["140"]={c="999",n="竞技神",g="改"}, ["142"]={c="c3c",n="独角兽"}, ["356"]={c="c90",n="半人马"}, ["376"]={c="c3c",n="追赶者"}, ["144"]={c="c3c",n="皇家方舟"}, ["145"]={c="c90",n="光辉"}, ["146"]={c="c90",n="胜利"}, ["147"]={c="c90",n="可畏"}, ["148"]={c="c3c",n="光荣"}, ["218"]={c="33f",n="飞鹰(鸱)"}, ["219"]={c="33f",n="隼鹰(鸢)"}, ["220"]={c="c3c",n="凤翔(凤)"}, ["222"]={c="33f",n="祥凤(鹞)",g="改"}, ["223"]={c="c3c",n="龙骧(枭)"}, ["426"]={c="c90",n="龙凤(鸗)"}, ["224"]={c="c90",n="赤城(凰)"}, ["225"]={c="c90",n="加贺(鸾)"}, ["226"]={c="c3c",n="苍龙(蛟)",g="改"}, ["227"]={c="c3c",n="飞龙(龙)",g="改"}, ["228"]={c="c90",n="翔鹤(鹬)"}, ["229"]={c="c90",n="瑞鹤(鹤)"}, ["230"]={c="c90",n="大凤(鹩)"}, ["419"]={c="c90",n="赤城(凰)(μ兵装)"}, ["384"]={c="c3c",n="小赤城(小凰)"}, ["252"]={c="c90",n="齐柏林伯爵"}, ["385"]={c="c3c",n="小齐柏林"}, ["149"]={c="c3c",n="黑暗界"}, ["150"]={c="c3c",n="恐怖"}, ["336"]={c="c3c",n="阿贝克隆比"}, ["342"]={c="c3c",n="鲦鱼"}, ["358"]={c="c90",n="大青花鱼"}, ["402"]={c="c90",n="棘鳍"}, ["448"]={c="c3c",n="蓝鳃鱼"}, ["338"]={c="c90",n="伊19"},["伊19"]={c="c90",n="伊19"}, ["339"]={c="c3c",n="伊26"},["伊26"]={c="c3c",n="伊26"}, ["340"]={c="c3c",n="伊58"},["伊58"]={c="c3c",n="伊58"}, ["381"]={c="c90",n="伊13"},["伊13"]={c="c90",n="伊13"}, ["396"]={c="c3c",n="伊25"},["伊25"]={c="c3c",n="伊25"}, ["397"]={c="c3c",n="伊56"},["伊56"]={c="c3c",n="伊56"}, ["398"]={c="c90",n="伊168"},["伊168"]={c="c90",n="伊168"}, ["341"]={c="c90",n="U-81"},["U-81"]={c="c90",n="U-81"}, ["343"]={c="c90",n="U-47"},["U-47"]={c="c90",n="U-47"}, ["344"]={c="c3c",n="U-557"},["U-557"]={c="c3c",n="U-557"}, ["386"]={c="c3c",n="U-556"},["U-556"]={c="c3c",n="U-556"}, ["387"]={c="c3c",n="U-73"},["U-73"]={c="c3c",n="U-73"}, ["399"]={c="c90",n="U-101"},["U-101"]={c="c90",n="U-101"}, ["400"]={c="c3c",n="U-522"},["U-522"]={c="c3c",n="U-522"}, ["416"]={c="c3c",n="U-110"},["U-110"]={c="c3c",n="U-110"}, ["350"]={c="c3c",n="絮库夫"}, ["080"]={c="c3c",n="女灶神"}, ["232"]={c="c90",n="明石(茗)"}, ["3005"]={c="33f",n="卡辛.改",g="改"}, ["3006"]={c="33f",n="唐斯.改",g="改"}, ["3019"]={c="c90",n="拉菲.改",g="改"}, ["3026"]={c="c3c",n="西姆斯.改",g="改"}, ["3027"]={c="c3c",n="哈曼.改",g="改"}, ["3036"]={c="f39",n="圣地亚哥.改",g="改"}, ["3044"]={c="c3c",n="波特兰.改",g="改"}, ["3052"]={c="33f",n="内华达.改",g="改"}, ["3053"]={c="33f",n="俄克拉荷马.改",g="改"}, ["3070"]={c="c3c",n="长岛.改",g="改"}, ["3071"]={c="33f",n="博格.改",g="改"}, ["3072"]={c="33f",n="兰利.改",g="改"}, ["3074"]={c="c90",n="萨拉托加.改",g="改"}, ["3075"]={c="33f",n="突击者.改",g="改"}, ["3081"]={c="c3c",n="女将.改",g="改"}, ["3082"]={c="c3c",n="阿卡司塔.改",g="改"}, ["3083"]={c="c3c",n="热心.改",g="改"}, ["3088"]={c="33f",n="彗星.改",g="改"}, ["3089"]={c="33f",n="新月.改",g="改"}, ["3090"]={c="33f",n="小天鹅.改",g="改"}, ["3091"]={c="33f",n="狐提.改",g="改"}, ["3092"]={c="c3c",n="命运女神.改",g="改"}, ["3101"]={c="c90",n="标枪.改",g="改"}, ["3104"]={c="33f",n="利安得.改",g="改"}, ["3105"]={c="33f",n="阿基里斯.改",g="改"}, ["3106"]={c="c3c",n="阿贾克斯.改",g="改"}, ["3119"]={c="c90",n="伦敦.改",g="改"}, ["3122"]={c="c3c",n="萨福克.改",g="改"}, ["3125"]={c="c90",n="约克.改",g="改"}, ["3126"]={c="c90",n="埃克塞特.改",g="改"}, ["3131"]={c="f39",n="厌战.改",g="改"}, ["3140"]={c="33f",n="竞技神.改",g="改"}, ["3155"]={c="c90",n="绫波.改",g="改"}, ["3165"]={c="c90",n="时雨.改",g="改"}, ["3167"]={c="c3c",n="阳炎.改",g="改"}, ["3168"]={c="33f",n="不知火.改",g="改"}, ["3171"]={c="c3c",n="初春.改",g="改"}, ["3176"]={c="c3c",n="夕暮.改",g="改"}, ["3179"]={c="c90",n="夕张.改",g="改"}, ["3186"]={c="c90",n="鬼怒.改",g="改"}, ["3187"]={c="33f",n="阿武隈.改",g="改"}, ["3188"]={c="c90",n="最上(猨).改",g="改"}, ["3190"]={c="33f",n="古鹰.改",g="改"}, ["3191"]={c="33f",n="加古.改",g="改"}, ["3208"]={c="c3c",n="扶桑.改",g="改"}, ["3209"]={c="c3c",n="山城.改",g="改"}, ["3210"]={c="c3c",n="伊势.改",g="改"}, ["3211"]={c="c3c",n="日向.改",g="改"}, ["3222"]={c="c3c",n="祥凤.改",g="改"}, ["3226"]={c="c90",n="苍龙.改",g="改"}, ["3227"]={c="c90",n="飞龙.改",g="改"}, ["3233"]={c="c90",n="Z1.改",g="改"}, ["3236"]={c="c90",n="Z23.改",g="改"}, ["3239"]={c="33f",n="卡尔斯鲁厄.改",g="改"}, ["3240"]={c="33f",n="科隆.改",g="改"}, ["3241"]={c="c3c",n="莱比锡.改",g="改"}, ["3349"]={c="c90",n="埃米尔·贝尔汀.改",g="改"}, ["3258"]={c="c90",n="宁海.改",g="改"}, ["3259"]={c="c90",n="平海.改",g="改"}, ["3263"]={c="c3c",n="贝利.改",g="改"}, ["3269"]={c="c3c",n="神风.改",g="改"}, ["3270"]={c="c3c",n="松风.改",g="改"}, ["3271"]={c="33f",n="睦月.改",g="改"}, ["3272"]={c="33f",n="如月.改",g="改"}, ["3301"]={c="c90",n="尼古拉斯.改",g="改"}, ["3308"]={c="c3c",n="川内.改",g="改"}, ["3309"]={c="c90",n="神通.改",g="改"}, ["3318"]={c="c3c",n="滨风.改",g="改"}, ["3319"]={c="c3c",n="谷风.改",g="改"}, ["3348"]={c="c3c",n="福尔班.改",g="改"}, ["3349"]={c="c90",n="埃米尔·贝尔汀.改",g="改"}, ["3351"]={c="c3c",n="勒马尔.改",g="改"}, ["3361"]={c="c3c",n="纽卡斯尔.改",g="改"}, ["3372"]={c="c3c",n="库拉索.改",g="改"}, ["3373"]={c="c3c",n="杓鹬.改",g="改"}, ["ex21"]={c="c3c",n="22"},["22"]={c="c3c",n="22"}, ["ex22"]={c="c3c",n="33"},["33"]={c="c3c",n="33"}, ["EX3"]={c="c3c",n="布兰"}, ["EX7"]={c="c90",n="群白之心"}, ["EX1"]={c="c3c",n="涅普顿"}, ["EX5"]={c="c90",n="绀紫之心"}, ["EX2"]={c="c3c",n="诺瓦露"}, ["EX6"]={c="c90",n="圣黑之心"}, ["EX4"]={c="c3c",n="贝露"}, ["EX8"]={c="c90",n="翡绿之心"}, ["ex31"]={c="c90",n="露露缇耶"}, ["ex32"]={c="c3c",n="乌璐露"}, ["ex33"]={c="c3c",n="萨拉娜"}, ["ex34"]={c="c90",n="猫音"}, ["ex35"]={c="c90",n="久远"}, ["ex36"]={c="c3c",n="芙米露露"}, ["ex41"]={c="c3c",n="绊爱"}, ["ex42"]={c="c90",n="绊爱·ELEGANT"}, ["ex43"]={c="c90",n="绊爱·ANNIVERSARY"}, ["ex44"]={c="c90",n="绊爱·SUPERGAMER"}, ["ex51"]={c="c90",n="白上吹雪"}, ["ex52"]={c="c3c",n="大神澪"}, ["ex53"]={c="c3c",n="夏色祭"}, ["ex54"]={c="c90",n="湊阿库娅"}, ["ex55"]={c="c3c",n="紫咲诗音"}, ["ex56"]={c="c3c",n="百鬼绫目"}, ["ex57"]={c="c90",n="时乃空"} } local func = {} function func.lookup(frame) return database[index[frame.args[1]]].n end function func.makeup(frame) local i = 1 local ret = "" local outerprefix = (frame.args["outerprefix"] and {frame.args["outerprefix"]} or {""})[1] local outersuffix =(frame.args["outersuffix"] and {frame.args["outersuffix"]} or {""})[1] local nocolor = (frame.args["nocolor"]=="no" and {true} or {false})[1] local ifend = false while(frame.args[i])do local str = frame.args[i] if not(str=="end") then local t = string.match(str,".*%d+") local n = (t and {database[t].n} or { func.getname(str) })[1] local relink =(string.find(n, "%(" ) and { string.sub(n,0,string.find(n, "%(" )-1)} or {n}) [1] n = (n and {relink} or{str}) [1] local c = ((nocolor) and{""}or{(t and {database[t].c} or { func.getcolor(str) })[1]})[1] local g = ((t and {database[t].g} or { func.getg(str) })[1]=="改" and { '<sup><span style="color:#'..color["c"..(color[((c and{c}or{"999"})[1])]+1)]..'">改</span></sup>' } or {""}) [1] ret = ret..outerprefix.."[[碧蓝航线:"..relink..(nocolor and {"|"..n} or {'|<span style="color:#'..c..'">'..n.."</span>"})[1].."]]"..g..outersuffix..(ifend and{""} or {" • "})[1] else ifend = true end i=i+1 end return ret --frame.args["makeup"]..(frame.args[1] and {frame.args[1]}or{"nil"})[1] end function func.getname(str) return database[(index[str] and {index[str]} or {"null"})[1]].n end function func.getcolor(str) return database[(index[str] and {index[str]} or {"null"})[1]].c end function func.getg(str) return database[(index[str] and {index[str]} or {"null"})[1]].g end return func