This page is a translated version of the page Meta:AddMe and the translation is 100% complete.

AddMe는 사용자가 제안, 프로젝트 또는 아이디어에 참여할 수 있는 페이지 소도구입니다.

개요

  • 댓글로 보조금을 승인하세요.
  • 크리에이터가 제안한 작업을 받아 보조금에 참여하세요.

개발

참고: 이 소도구는 현재 Meta.wikimedia.org의 "보조금" 및 "사용자" 이름공간에서만 작동하도록 구성되어 있습니다.

상태

배포됨(베타). 보조금조성 포털의 Probox에 통합되었습니다.

참가자

배포

연혁

이 도구는 아이디어랩 2014년 4월 스프린트의 일부로 개발되었습니다.

사용

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"
        }
    }
}

다른 승인 유형에 대한 사용자 정의 인터페이스 메시지는 위의 사전 전체를 복사하고 변경할 값을 편집하여 활성화할 수 있습니다. 키는 이름공간 보조금에 있는 페이지 집합의 이름이어야 합니다. 예: https://meta.wikimedia.org/wiki/Grants:IdeaLab/Build/Tools, 여기서는 그냥 '아이디어랩'이고 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"
        }
    }
}

따라서 아이디어랩을 추가하면 다음과 같이 보일 것입니다.

{
    "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"
        }
    }
}

statistician이라는 새 역할을 추가하려면 statistician을 키로, Statistician을 값으로 사용하여 "roles" 아래에 새 항목을 추가합니다. 키는 정보 상자의 열린 항목과 일치해야 합니다.

 
        "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"
            }
        }