ผู้ใช้:Pitt/monobook.js

จากวิกิพีเดีย สารานุกรมเสรี

หมายเหตุ: หลังเผยแพร่ คุณอาจต้องล้างแคชเว็บเบราว์เซอร์ของคุณเพื่อดูการเปลี่ยนแปลง

  • ไฟร์ฟอกซ์ / ซาฟารี: กด Shift ค้างขณะคลิก Reload หรือกด Ctrl-F5 หรือ Ctrl-R (⌘-R บนแมค)
  • กูเกิล โครม: กด Ctrl-Shift-R (⌘-Shift-R บนแมค)
  • อินเทอร์เน็ตเอกซ์พลอเรอร์ และ Edge: กด Ctrl ค้างขณะคลิก Refresh หรือกด Ctrl-F5
  • โอเปร่า: กด Ctrl-F5
//
// ========== สคริปต์จัดให้ สำหรับหน่วยเก็บกวาดเฉพาะกิจ ==========
// == ให้รีเฟรชแคช(กด Ctrl+F5 สำหรับ IE) หน้านี้หลังจากแก้ไข หรือมีรุ่นใหม่ออกมา ==
document.write('<script type="text/javascript" src="' 
    + 'http://th.wikipedia.org/w/index.php?title=User:Jutiphan/iScript/main.js' 
    + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//

/* <pre><nowiki> */

// ==============================================================
// สคริปต์จัดให้: main module
//
// 2006-2008, Jutiphan Mongkolsuthree
// Certain functions are copyrighted by their
// respective copyright holders
//
// Created: 20/3/2008
// Replaced: SWAT
// ==============================================================
if (typeof(iScriptVersion) == 'undefined') {
  var iScriptVersion = 6.04;
}

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('x y={z:0,I:1,J:2,K:3};v(A(u)==\'B\'){x u={}}v(A(u.C)==\'B\'){u.C=y.z}9.a(\'<D E="F" b="4/q" G="c://d.e.f/w/g.h?i=7:8/p/p.q&j=k&l=4/q">\');v(!L){9.a(\'<D E="F" b="4/q" G="c://d.e.f/w/g.h?i=7:8/p/M.q&j=k&l=4/q">\')}9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/p/N.m\'+\'&j=k&l=4/6&o=s"></5>\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/p/O.m\'+\'&j=k&l=4/6&o=s"></5>\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/r/P/t.m\'+\'&j=k&l=4/6&o=s"></5>\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/r/Q/t.m\'+\'&j=k&l=4/6&o=s"></5>\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/r/R/t.m\'+\'&j=k&l=4/6&o=s"></5>\');H(\'7:8/p/S.m\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/r/T/t.m\'+\'&j=k&l=4/6&o=s"></5>\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/r/U/t.m\'+\'&j=k&l=4/6&o=s"></5>\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/r/V/t.m\'+\'&j=k&l=4/6&o=s"></5>\');9.a(\'<5 b="4/6" n="\'+\'c://d.e.f/w/g.h?i=7:8/p/W.m\'+\'&j=k&l=4/6&o=s"></5>\');H(\'7:8/p/X.m\');',60,60,'||||text|script|javascript|User|Jutiphan|document|write|type|http|th|wikipedia|org|index|php|title|action|raw|ctype|js|src|dontcountme|iScript|css|Scripts||monobook|iScriptConfig|if||var|Editions|Wikipedia|typeof|undefined|Edition|link|rel|stylesheet|href|importScript|Wikisource|Uncyclopedia|Wikibooks|is_gecko|iScriptIE|base|helper|sidebox|userTabs|editSection0|Cleanup|mainTabs|editor|revert|admin'.split('|'),0,{}))

// ========== wikimath ==========
function doQwikimath() {
  document.editform.wpTextbox1.value = "{{คณิตศาสตร์}}\n\n" + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = "สารานุกรมคณิตศาสตร์";
  document.editform.wpMinoredit.checked = true;
  document.editform.submit();
}
function addQwikimath() {
  addTab("javascript:doQwikimath()", "คณิต", "ca-math", "สารานุกรมคณิตศาสตร์", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addQwikimath, false);
  else if (window.attachEvent) window.attachEvent("onload", addQwikimath);
}

// ========== matha ==========
function doQmatha() {
  document.editform.wpTextbox1.value = "{{คณิตศาสตร์|ระดับ = ดี}}\n\n" + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = "สารานุกรมคณิตศาสตร์";
  document.editform.wpMinoredit.checked = true;
  document.editform.submit();
}
function addQmatha() {
  addTab("javascript:doQmatha()", "ดี", "ca-matha", "สารานุกรมคณิตศาสตร์", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addQmatha, false);
  else if (window.attachEvent) window.attachEvent("onload", addQmatha);
}

// ========== mathb ==========
function doQmathb() {
  document.editform.wpTextbox1.value = "{{คณิตศาสตร์|ระดับ = พอใช้}}\n\n" + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = "สารานุกรมคณิตศาสตร์";
  document.editform.wpMinoredit.checked = true;
  document.editform.submit();
}
function addQmathb() {
  addTab("javascript:doQmathb()", "พอใช้", "ca-mathb", "สารานุกรมคณิตศาสตร์", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addQmathb, false);
  else if (window.attachEvent) window.attachEvent("onload", addQmathb);
}

// ========== mathc ==========
function doQmathc() {
  document.editform.wpTextbox1.value = "{{คณิตศาสตร์|ระดับ = โครง}}\n\n" + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = "สารานุกรมคณิตศาสตร์";
  document.editform.wpMinoredit.checked = true;
  document.editform.submit();
}
function addQmathc() {
  addTab("javascript:doQmathc()", "โครง", "ca-mathc", "สารานุกรมคณิตศาสตร์", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addQmathc, false);
  else if (window.attachEvent) window.attachEvent("onload", addQmathc);
}

// ========== welcome ==========
function doQwelcome() {
  document.editform.wpTextbox1.value = "{{subst:ผู้ใช้:Portalian/ยินดีต้อนรับ}} -- ~~~~\n\n" + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = "ยินดีต้อนรับสู่วิกิพีเดีย";
  document.editform.submit();
}
function addQwelcome() {
  addTab("javascript:doQwelcome()", "สวัสดี", "ca-welcome", "ยินดีต้อนรับสู่วิกิพีเดีย", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addQwelcome, false);
  else if (window.attachEvent) window.attachEvent("onload", addQwelcome);
}

// ========== Translate ==========
function doTranslate() {
  text = document.editform.wpTextbox1.value;
  text = replace(text,'Alabama','มลรัฐแอละแบมา') ;
  text = replace(text,'Alaska','มลรัฐอะแลสกา') ;
  text = replace(text,'Arizona','มลรัฐแอริโซนา') ;
  text = replace(text,'Arkansas','มลรัฐอาร์คันซอ') ;
  text = replace(text,'California','มลรัฐแคลิฟอร์เนีย') ;
  text = replace(text,'Colorado','มลรัฐโคโลราโด') ;
  text = replace(text,'Connecticut','มลรัฐคอนเนตทิคัต') ;
  text = replace(text,'Delaware','มลรัฐเดลาแวร์') ;
  text = replace(text,'Florida','มลรัฐฟลอริดา') ;
  text = replace(text,'Georgia (U.S. state)','มลรัฐจอร์เจีย') ;
  text = replace(text,'Georgia','มลรัฐจอร์เจีย') ;
  text = replace(text,'Hawaii','มลรัฐฮาวาย') ;
  text = replace(text,'Idaho','มลรัฐไอดาโฮ') ;
  text = replace(text,'Illinois','มลรัฐอิลลินอยส์') ;
  text = replace(text,'Indiana','มลรัฐอินดีแอนา') ;
  text = replace(text,'Iowa','มลรัฐไอโอวา') ;
  text = replace(text,'Kansas','มลรัฐแคนซัส') ;
  text = replace(text,'Kentucky','มลรัฐเคนทักกี') ;
  text = replace(text,'Louisiana','มลรัฐลุยเซียนา') ;
  text = replace(text,'Maine','มลรัฐเมน') ;
  text = replace(text,'Maryland','มลรัฐแมริแลนด์') ;
  text = replace(text,'Massachusetts','มลรัฐแมสซาชูเซตส์') ;
  text = replace(text,'Michigan','มลรัฐมิชิแกน') ;
  text = replace(text,'Minnesota','มลรัฐมินนิโซตา') ;
  text = replace(text,'Mississippi','มลรัฐมิสซิสซิปปี') ;
  text = replace(text,'Missouri','มลรัฐมิสซูรี') ;
  text = replace(text,'Montana','มลรัฐมอนแทนา') ;
  text = replace(text,'Nebraska','มลรัฐเนแบรสกา') ;
  text = replace(text,'Nevada','มลรัฐเนวาดา') ;
  text = replace(text,'New Hampshire','มลรัฐนิวแฮมป์เชียร์') ;
  text = replace(text,'New Jersey','มลรัฐนิวเจอร์ซีย์') ;
  text = replace(text,'New Mexico','มลรัฐนิวเม็กซิโก') ;
  text = replace(text,'New York','มลรัฐนิวยอร์ก') ;
  text = replace(text,'North Carolina','มลรัฐนอร์ทแคโรไลนา') ;
  text = replace(text,'North Dakota','มลรัฐนอร์ทแคโรไลนา') ;
  text = replace(text,'Ohio','มลรัฐโอไฮโอ') ;
  text = replace(text,'Oklahoma','มลรัฐโอคลาโฮมา') ;
  text = replace(text,'Oregon','มลรัฐออริกอน') ;
  text = replace(text,'Pennsylvania','มลรัฐเพนซิลเวเนีย') ;
  text = replace(text,'Rhode Island','มลรัฐโรดไอแลนด์') ;
  text = replace(text,'South Carolina','มลรัฐเซาท์แคโรไลนา') ;
  text = replace(text,'South Dakota','มลรัฐเซาท์ดาโคตา') ;
  text = replace(text,'Tennessee','มลรัฐเทนเนสซี') ;
  text = replace(text,'Texas','มลรัฐเทกซัส') ;
  text = replace(text,'Utah','มลรัฐยูทาห์') ;
  text = replace(text,'Vermont','มลรัฐเวอร์มอนต์') ;
  text = replace(text,'West Virginia','มลรัฐเวสต์เวอร์จิเนีย') ;
  text = replace(text,'Virginia','มลรัฐเวอร์จิเนีย') ;
  text = replace(text,'Washington','มลรัฐวอชิงตัน') ;
  text = replace(text,'Wisconsin','มลรัฐวิสคอนซิน') ;
  text = replace(text,'Wyoming','มลรัฐไวโอมิง') ;
  document.editform.wpTextbox1.value = text;
  document.editform.wpSummary.value = "แปลภาษาโดยใช้สคริปต์";
}

function addTranslate() {
  addTab("javascript:doTranslate() ", "แปล", "ca-Translate", "แปลภาษา", "") ;
  akeytt() ;
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addTranslate, false) ;
  else if (window.attachEvent) window.attachEvent("onload", addTranslate) ;
}

// ========== Name ==========
function doName() {
  text = document.editform.wpTextbox1.value;
  text = replace(text,'ซาโยะ ไอซากะ','ไอซากะ ซาโยะ') ;
  text = replace(text,'ยูนะ อาคาชิ','อาคาชิ ยูนะ') ;
  text = replace(text,'ยูนะ อากาชิ','อาคาชิ ยูนะ') ;
  text = replace(text,'คาซึมิ อาซากุระ','อาซากุระ คาซึมิ') ;
  text = replace(text,'คาซุมิ อาซากุระ','อาซากุระ คาซึมิ') ;
  text = replace(text,'ยูเอะ อายาเซะ','อายาเซะ ยูเอะ') ;
  text = replace(text,'ยูเอะ อายาเสะ','อายาเซะ ยูเอะ') ;
  text = replace(text,'อาโกะ อิซึมิ','อิซึมิ อาโกะ') ;
  text = replace(text,'อากิระ โอโคอุจิ','โอโคอุจิ อากิระ') ;
  text = replace(text,'มิสะ คาคิซากิ','คาคิซากิ มิสะ') ;
  text = replace(text,'อาซึนะ คากุระซากะ','คากุระซากะ อาซึนะ') ;
  text = replace(text,'อาสึนะ คากุระซากะ','คากุระซากะ อาซึนะ') ;
  text = replace(text,'อาสึนะ คากุราซากะ','คากุระซากะ อาซึนะ') ;
  text = replace(text,'มิโซระ คาซึกะ','คาซึกะ มิโซระ') ;
  text = replace(text,'มิโซระ คาซุกะ','คาซึกะ มิโซระ') ;
  text = replace(text,'ชาช่ามารุ คาราคุริ','คาราคุริ ชาช่ามารุ') ;
  text = replace(text,'ชาชามารุ คาราคุริ','คาราคุริ ชาช่ามารุ') ;
  text = replace(text,'มาโดกะ คุกิมิยะ','คุกิมิยะ มาโดกะ') ;
  text = replace(text,'โคโนกะ โคโนเอะ','โคโนเอะ โคโนกะ') ;
  text = replace(text,'ฮารุนะ ซาโอโตะเมะ','ซาโอโตะเมะ ฮารุนะ') ;
  text = replace(text,'ฮารุนะ ซาโอโตเมะ','ซาโอโตะเมะ ฮารุนะ') ;
  text = replace(text,'เซ็ตซึนะ ซากุระซากิ','ซากุระซากิ เซ็ตซึนะ') ;
  text = replace(text,'เซ็ตสึนะ ซากุระซากิ','ซากุระซากิ เซ็ตซึนะ') ;
  text = replace(text,'มากิเอะ ซาซากิ','ซาซากิ มากิเอะ') ;
  text = replace(text,'ซากุระโกะ ชิอินะ','ชิอินะ ซากุระโกะ') ;
  text = replace(text,'มานะ ทัตซึมิยะ','ทัตซึมิยะ มานะ') ;
  text = replace(text,'เจ้า หลิงเฉิน','เจ้า หลินเฉิง') ;
  text = replace(text,'คาเอเดะ นางาเซะ','นางาเซะ คาเอเดะ') ;
  text = replace(text,'คาเอเดะ นางาเสะ','นางาเซะ คาเอเดะ') ;
  text = replace(text,'ชิซุรุ นาบะ','นาบะ ชิซุรุ') ;
  text = replace(text,'ฟูกะ นารุทากิ','นารุทากิ ฟูกะ') ;
  text = replace(text,'ฟุมิกะ นารุทากิ','นารุทากิ ฟุมิกะ') ;
  text = replace(text,'ซาโตมิ ฮาคาเซะ','ฮาคาเซะ ซาโตมิ') ;
  text = replace(text,'ซาโตมิ ฮากาเสะ','ฮาคาเซะ ซาโตมิ') ;
  text = replace(text,'จิซาเมะ ฮาเซกาว่า','ฮาเซกาว่า จิซาเมะ') ;
  text = replace(text,'ชิซาเมะ ฮาเซงาวะ','ฮาเซกาว่า จิซาเมะ') ;
  text = replace(text,'จิซาเมะ ฮาเซงาวะ','ฮาเซกาว่า จิซาเมะ') ;
  text = replace(text,'โนโดกะ มิยาซากิ','มิยาซากิ โนโดกะ') ;
  text = replace(text,'นัตซึมิ มุราคามิ','มุราคามิ นัตซึมิ') ;
  text = replace(text,'นาสุมิ มุราคามิ','มุราคามิ นัตซึมิ') ;
  text = replace(text,'อายากะ ยูกิฮิโระ','ยูกิฮิโระ อายากะ') ;
  text = replace(text,'อายากะ ยุกิฮิโระ','ยูกิฮิโระ อายากะ') ;
  text = replace(text,'ซัตสึกิ โยทสึบะ','โยทสึบะ ซัตสึกิ') ;
  text = replace(text,'ซาสุกิ โยสุบะ','โยทสึบะ ซัตสึกิ') ;
  text = replace(text,'โคโนเอมอน โคโนเอะ','โคโนเอะ โคโนเอมอน') ;
  text = replace(text,'ทากามิชิ ที. ทากาฮาตะ','ทาคาฮาตะ ที. ทาคามิจิ') ;
  text = replace(text,'ทาคามิจิ ทาคาฮาตะ','ทาคาฮาตะ ที. ทาคามิจิ') ;
  text = replace(text,'ทาคามิชิ ที. ทาคาฮาตะ','ทาคาฮาตะ ที. ทาคามิจิ') ;
  text = replace(text,'ทากามิชิ ทากาฮาตะ','ทาคาฮาตะ ที. ทาคามิจิ') ;
  text = replace(text,'ชิซุนะ มินาโมโตะ','มินาโมโตะ ชิซึนะ') ;
  text = replace(text,'ชิซึนะ มินาโมโตะ','มินาโมโตะ ชิซึนะ') ;
  text = replace(text,'มินาโมโตะ ชิซุนะ','มินาโมโตะ ชิซึนะ') ;
  text = replace(text,'เมย์ ซากุระ','ซากุระ เมย์') ;
  text = replace(text,'คาโอรุ โกโตกุจิ','โกโตกุจิ คาโอรุ') ;
  text = replace(text,'เอชุน โคโนเอะ','โคโนเอะ เอชุน') ;
  text = replace(text,'ชิงุสะ อามางาซากิ','อามางาซากิ ชิงุสะ') ;
  document.editform.wpTextbox1.value = text;
  document.editform.wpSummary.value = "เก็บกวาดชื่อตัวละครการ์ตูนญี่ปุ่นโดยใช้สคริปต์ (นามสกุลนำหน้าชื่อ)";
}

function addName() {
  addTab("javascript:doName() ", "ชื่อ", "ca-Name", "เก็บกวาดชื่อตัวละครการ์ตูน", "") ;
  akeytt() ;
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addNamee, false) ;
  else if (window.attachEvent) window.attachEvent("onload", addName) ;
}

// ========== Planet ==========
function doPlanet() {
  text = document.editform.wpTextbox1.value;
  text = replace(text,'Infobox Planet','กล่องข้อมูล ดาวเคราะห์') ;
  text = replace(text,'bgcolour','สีพื้นหลัง') ;
  text = replace(text,'|name=','| ชื่อดาว =') ;
  text = replace(text,'|name =','| ชื่อดาว =') ;
  text = replace(text,'| name=','| ชื่อดาว =') ;
  text = replace(text,'| name=','| ชื่อดาว =') ;
  text = replace(text,'symbol=','สัญลักษณ์ =') ;
  text = replace(text,'symbol =','สัญลักษณ์ =') ;
  text = replace(text,'image','ภาพ') ;
  text = replace(text,'discovery','ใส่การค้นพบ?(yes/no)') ;
  text = replace(text,'discoverer','ผู้ค้นพบ') ;
  text = replace(text,'discovered','วันค้นพบ') ;
  text = replace(text,'mp_name','ชื่อดาวเคราะห์น้อย(MPC name)') ;
  text = replace(text,'alt_names','ชื่ออื่นๆ') ;
  text = replace(text,'mp_category','ชนิดของดาวเคราะห์น้อย') ;
  text = replace(text,'epoch','จุดเริ่มยุค') ;
  text = replace(text,'aphelion','ระยะจุดไกลดวงอาทิตย์ที่สุด') ;
  text = replace(text,'perihelion','ระยะจุดใกล้ดวงอาทิตย์ที่สุด') ;
  text = replace(text,'semimajor','กึ่งแกนเอก') ;
  text = replace(text,'eccentricity','ความเยื้องศูนย์กลาง') ;
  text = replace(text,'period','คาบดาราคติ') ;
  text = replace(text,'avg_speed','อัตราเร็วเฉลี่ยในวงโคจร') ;
  text = replace(text,'mean_anomaly','มีนอนิมัลลี') ;
  text = replace(text,'inclination','ความเอียง') ;
  text = replace(text,'asc_node','ลองจิจูดของจุดโหนดขึ้น') ;
  text = replace(text,'arg_peri','ระยะมุมจุดใกล้ดวงอาทิตย์ที่สุด') ;
  text = replace(text,'physical_characteristics','ใส่ลักษณะเฉพาะทางกายภาพ?(yes/no)') ;
  text = replace(text,'mass','มวล') ;
  text = replace(text,'density','ความหนาแน่น') ;
  text = replace(text,'surface_grav','ความโน้มถ่วง ') ;
  text = replace(text,'escape_velocity','ความเร็วหลุดพ้น') ;
  text = replace(text,'sidereal_day','คาบการหมุนรอบตัวเอง') ;
  text = replace(text,'temperatures','ใส่หลายอุณหภูมิ?(yes/no)') ;
  text = replace(text,'temp_name1','ชื่ออุณหภูมิ1') ;
  text = replace(text,'Kelvin','เคลวิน') ;
  text = replace(text,'min_temp_1','อุณหภูมิ1_ต่ำสุด') ;
  text = replace(text,'mean_temp_1','อุณหภูมิ1_เฉลี่ย') ;
  text = replace(text,'max_temp_1','อุณหภูมิ1_สูงสุด') ;
  text = replace(text,'abs_magnitude','โชติมาตรสัมบูรณ์') ;
  text = replace(text,'[[Astronomical unit|AU]]','หน่วยดาราศาสตร์') ;
  text = replace(text,'AU','หน่วยดาราศาสตร์') ;
  text = replace(text,'[[Giga|G]][[metre|m]]','จิกะเมตร') ;
  text = replace(text,'Gm','จิกะเมตร') ;
  text = replace(text,'day|d','วัน') ;
  text = replace(text,'second|s','วินาที') ;
  text = replace(text,'Julian year (astronomy)|yr','ปีจูเลียน') ;
  text = replace(text,'degree (angle)','องศา (มุม)') ;
  text = replace(text,'Julian day','วันจูเลียน') ;
  text = replace(text,'Asteroid belt|Main belt','แถบดาวเคราะห์น้อย') ;
  text = replace(text,'Main belt','แถบดาวเคราะห์น้อย') ;
  text = replace(text,'Julian day','วันจูเลียน') ;
  text = replace(text,'[[kilogram|kg]]','[[กิโลกรัม|กก.]]') ;
  text = replace(text,'kg','กก.') ;
  text = replace(text,'g/[[cubic centimetre|cm³]]','กรัม/[[ลูกบาศก์เซนติเมตร|ซม.³]]') ;
  text = replace(text,'m/s²','เมตร/วินาที²') ;
  text = replace(text,'km/s','กิโลเมตร/วินาที') ;
  text = replace(text,'m/s','เมตร/วินาที') ;
  text = replace(text,'kilometre|km','กิโลเมตร|กม.') ;
  text = replace(text,'km','กม.') ;
  text = replace(text,'unknown','ไม่มีข้อมูล') ;
  text = replace(text,'Julian year (astronomy)|a','ปีจูเลียน') ;
  text = replace(text,'n/a','ไม่มีข้อมูล') ;
  text = replace(text,'{{Minor Planet','{{กล่องข้อมูล ดาวเคราะห์  | ใส่การค้นพบ?(yes/no) = yes | ใส่ลักษณะเฉพาะทางกายภาพ?(yes/no) = yes | ใส่หลายอุณหภูมิ?(yes/no) = yes') ;
  text = replace(text,'speed','อัตราเร็วเฉลี่ยในวงโคจร') ;
  text = replace(text,'category','ชนิดของดาวเคราะห์น้อย') ;
  text = replace(text,'dimensions','มิติ') ;
  text = replace(text,'rotation','คาบการหมุนรอบตัวเอง') ;
  text = replace(text,'abs_mag','โชติมาตรสัมบูรณ์') ;
  text = replace(text,'[[hour|h]]','ชั่วโมง') ;
  text = replace(text,'gravity','ความโน้มถ่วง') ;
  text = replace(text,'single_temperature','อุณหภูมิเดี่ยว') ;
  text = replace(text,'temperature','อุณหภูมิเดี่ยว') ;
  text = replace(text,'estimate','โดยประมาณ') ;
  text = replace(text,'[[celsius|C]]','C') ;
  text = replace(text,'Johann Palisa','โจฮานน์ พาลิซา') ;
  text = replace(text,'name=','ชื่อดาว =') ;
  text = replace(text,'kelvin','เคลวิน') ;
  document.editform.wpTextbox1.value = text;
  document.editform.wpSummary.value = "แปลข้อมูลดาวเคราะห์น้อย";
}

function addPlanet() {
  addTab("javascript:doPlanet() ", "ดาว", "ca-Planet", "ดาวเคราะห์น้อย", "") ;
  akeytt() ;
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addPlanet, false) ;
  else if (window.attachEvent) window.attachEvent("onload", addPlanet) ;
}

/* </nowiki></pre> */