ข้ามไปเนื้อหา

แม่แบบ:กล่องข้อมูล เหตุการณ์สภาพอากาศ/doc/adoption

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

22.2% การนำกล่องข้อมูลเหตุการณ์สภาพอากาศ (14 / 63) as of 00:45, 24 กรกฎาคม พ.ศ. 2567 (UTC)

   

Documentation icon คู่มือการใช้งานแม่แบบ

ข้อมูลจาก 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())
})();