แม่แบบ:กล่องข้อมูล เหตุการณ์สภาพอากาศ/doc/adoption
หน้าตา
22.2% การนำกล่องข้อมูลเหตุการณ์สภาพอากาศ (14 / 63) as of 00:45, 24 กรกฎาคม พ.ศ. 2567 (UTC)
คู่มือการใช้งานแม่แบบ
ข้อมูลจาก quarry:query/73404 การคำนวณดำเนินการดังต่อไปนี้:
(async () => {
const run = await fetch("https://quarry.wmcloud.org/query/73404/result/latest/0/json")
.then(r => r.json());
const ibxWE = run.rows.find(r => r[0] === "Infobox_weather_event")[1];
const ibxOther = run.rows.filter(r => r[0] !== "Infobox_weather_event").reduce((p, n) => p + n[1], 0);
const ibxTotal = ibxWE + ibxOther;
console.log(`
{{Progress bar|${ibxWE}|total=${ibxTotal}|text=Infobox weather event adoption (${ibxWE}/${ibxTotal}) as of ~~~~~|height=6}}
`.trim())
})();
ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ หน้าย่อยของแม่แบบนี้ |