เมทา:AddMe

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Meta:AddMe and the translation is 100% complete.

AddMe เป็นหน้า แกดเจ็ต ที่อนุญาตให้ผู้ใช้เข้าร่วมข้อเสนอ โครงการ หรือแนวคิด

ภาพรวม

  • รับรองการให้ทุนด้วยความคิดเห็น
  • เข้าร่วมทุนโดยการรับงานที่เสนอจากผู้สร้าง

การพัฒนา

หมายเหตุ: แกดเจ็ตนี้ได้รับการกำหนดค่าให้ทำงาน เท่านั้น ในเนมสเปซ Grants และ User บน Meta.wikimedia.org

สถานะ

ปรับใช้ (เบต้า) รวมอยู่ใน Probox บนพอร์ทัล Grantmaking

ผู้เข้าร่วม

การปรับใช้

ที่มา

เครื่องมือนี้ได้รับการพัฒนาโดยเป็นส่วนหนึ่งของ IdeaLab April August 2014 sprint

ใช้

Addme & Probox

แกดเจ็ตจะทำงานเมื่อคลิกปุ่ม 'เข้าร่วม' หรือ 'รับรอง' ใน Probox (กล่องข้อมูลการให้สิทธิ์) แกดเจ็ตค้นหาคลาสปุ่ม 'wp-join-button', 'wp-endorse-button' เพื่อแสดงหน้าจอเข้าร่วมและรับรองตามลำดับ คลาสของปุ่มเหล่านี้ถูกรวมไว้ในโค้ดของ Probox

รับรองโครงการ

หน้าจอรับรอง AddMe

ผู้ใช้สามารถรับรองการให้สิทธิ์และเพิ่มความคิดเห็นได้ ปุ่ม "รับรอง" อยู่ในกล่องข้อมูล เมื่อคลิก ป๊อปอัปจะเปิดขึ้น และสามารถป้อนความคิดเห็นได้ ความคิดเห็นจะถูกบันทึกไว้ในส่วนที่กำหนดใน Meta:AddMe/Config เมื่อคลิกปุ่มบันทึก/รับรองในป๊อปอัป เพจจะรีเฟรชและความคิดเห็นถูกเลื่อนเข้ามาดู สตริงในแกดเจ็ตสามารถกำหนดค่าได้ที่ Meta:AddMe/InterfaceText

เข้าร่วมโครงการ

หน้าจอเข้าร่วม AddMe

ผู้สร้างทุนสามารถเพิ่มบทบาทที่เปิดอยู่ในกล่องข้อมูล จากนั้นผู้อื่นสามารถเข้าร่วมทุนในบทบาทใดบทบาทหนึ่งได้ เมื่อคลิกปุ่ม "เข้าร่วม" ในกล่องข้อมูล ป๊อปอัปจะเปิดขึ้น ป๊อปอัปมีเมนูแบบเลื่อนลงซึ่งสามารถเลือกบทบาทได้ นอกจากนี้ยังมีกล่องข้อความที่ต้องป้อนความคิดเห็น เมื่อคลิกปุ่มเข้าร่วมในป๊อปอัป ผู้ใช้จะถูกเพิ่มไปยังบทบาทที่เลือกในกล่องข้อมูล และความคิดเห็นจะแสดงขึ้นในส่วนที่กำหนดไว้ใน Meta:AddMe/Config ต้องเพิ่มบทบาทในส่วนบทบาทใน Meta:AddMe/Config เพื่อให้ปรากฏในดรอปดาวน์ สตริงในแกดเจ็ตสามารถกำหนดค่าได้ที่ Meta:AddMe/InterfaceText

การกำหนดค่า

มีไฟล์การกำหนดค่าสองไฟล์ ได้แก่ Meta:AddMe/InterfaceText ซึ่งมีข้อความอินเทอร์เฟซ และ Meta:AddMe/Config ซึ่งมีการกำหนดค่าสำหรับเครื่องมือ

ในตัวอย่างด้านล่าง หากเราเปลี่ยนสตริงที่ระบุว่า 'รับรองแนวคิดนี้' เป็น 'สนับสนุนแนวคิดนี้' ชื่อของแกดเจ็ตในเวอร์ชันรับรองจะแสดงถึงการเปลี่ยนแปลง

{
    "endorse": {
        "IEG": {
            "title": "Endorse this idea",
            "description": "Why do you support this idea?",
            "placeholder": "Click here to add your comment",
            "button-submit": "Endorse",
            "button-cancel": "Cancel",
            "feedback": "Thank you for adding your endorsement!",
            "message-1": "Your signature will be automatically added to your comment.",
            "error": "There was an error, please try again"
        }
    }
}

ข้อความอินเทอร์เฟซที่กำหนดเองสำหรับการอนุญาตประเภทอื่น ๆ สามารถเปิดใช้งานได้โดยการคัดลอกพจนานุกรมด้านบนทั้งหมดและแก้ไขค่าที่จะเปลี่ยนแปลง คีย์ต้องเป็นชื่อของชุดของเพจในเนมสเปซ Grants: เช่น: https://meta.wikimedia.org/wiki/Grants:IdeaLab/Build/Tools ในที่นี้จะเป็น 'Idealab' หรือในกรณีของ meta.wikimedia.org/wiki/Grants:IEG ก็จะเป็น 'IEG'

สมมติว่า dict เป็นแบบนี้

{
    "endorse": {
        "IEG": {
            "title": "Endorse this project", 
            "message-description": "Why do you support this project?", 
            "placeholder-comment": "Click here to add your comment", 
            "button-submit": "Endorse",
            "button-cancel": "Cancel", 
            "message-feedback": "Thank you for adding your endorsement!", 
            "section-header": "Endorsements", 
            "message-signature": "Your signature will be automatically added to your comment.", 
            "error-save": "There was an error, please try again", 
            "error-login":"You are not logged in"
        }
    }
}

ดังนั้นเมื่อเพิ่ม Idealab ก็จะมีลักษณะดังนี้

{
    "endorse": {
        "IEG": {
            "title": "Endorse this project", 
            "message-description": "Why do you support this project?", 
            "placeholder-comment": "Click here to add your comment", 
            "button-submit": "Endorse",
            "button-cancel": "Cancel", 
            "message-feedback": "Thank you for adding your endorsement!", 
            "section-header": "Endorsements", 
            "message-signature": "Your signature will be automatically added to your comment.", 
            "error-save": "There was an error, please try again", 
            "error-login": "You are not logged in"
        },
        "IdeaLab": {
            "title": "Endorse this idea", 
            "message-description": "Why do you support this idea?", 
            "placeholder-comment": "Click here to add your comment", 
            "button-submit": "Endorse",
            "button-cancel": "Cancel", 
            "message-feedback": "Thank you for endorsing!", 
            "section-header": "Endorsements", 
            "message-signature": "Your signature will be automatically added to your comment.", 
            "error-save": "Oops there was an error", 
            "error-login": "You are not logged in"
        }
    }
}

ในทำนองเดียวกัน ข้อความอินเทอร์เฟซสำหรับแกดเจ็ตการเข้าร่วมจะถูกจัดเก็บไว้ใน var joinInterfaceMessages ในไฟล์เดียวกัน ในการเพิ่มบทบาทใหม่ลงในรายการดร็อปดาวน์ จะต้องเพิ่มบทบาทลงในกล่องข้อมูลและใน joinInterfaceMessages ด้วย เช่น สมมุติว่าหน้าตาเป็นแบบนี้

 
{
    "join": { 
        "default": { 
            "title": " Join this project", 
            "placeholder-role": " Please select a role", 
            "placeholder-comment": " Click here to add your comment about how you'd like to participate", 
            "button-join": " Join", 
            "button-cancel": " Cancel", 
            "error-save": " There was an error, please try again", 
            "error-login": "You are not logged in", 
            "message-signature": " Your signature will be automatically added to your comment.", 
            "message-feedback": " Thank you for joining this project!", 
            "message-description": "How would you like to help this project?"
        "roles": { 
            "researcher": " Researcher", 
            "developer": " Developer", 
            "volunteer": " Volunteer", 
            "designer": " Designer", 
            "advisor": " Advisor", 
            "project_manager": " Project Manager", 
            "community_organizer": " Community Organizer"
        }
    }
}

ในการเพิ่มบทบาทใหม่ที่เรียกว่านักสถิติ เราจะเพิ่มรายการใหม่ภายใต้ "บทบาท" โดยมีนักสถิติเป็นคีย์และนักสถิติเป็นค่า รหัสต้องตรงกับรายการที่เปิดอยู่ในกล่องข้อมูล

 
        "default": { 
            "title" :" Join this project", 
            "placeholder-role": " Please select a role", 
            "placeholder-comment": " Click here to add your comment about how you'd like to participate", 
            "button-join": " Join", 
            "button-cancel": " Cancel", 
            "error-save": " There was an error, please try again", 
            "error-login": "You are not logged in", 
            "message-signature": " Your signature will be automatically added to your comment.", 
            "message-feedback": " Thank you for joining this project!", 
            "message-description": "How would you like to help this project?", 
            "roles": {
                "researcher": " Researcher", 
                "developer": " Developer", 
                "volunteer": " Volunteer", 
                "designer": " Designer", 
                "advisor": " Advisor", 
                "project_manager": " Project Manager", 
                "community_organizer": " Community Organizer", 
                "statistician": "Statistician"
            }
        }