위키함수:소개
Functions make calculations on the data you provide.
위키함수는 누구나 함수를 만들어 다른 사람들이 사용, 수정, 테스트하고 배울 수 있도록 공유할 수 있도록 하는 오픈소스 프로젝트입니다.
다음 사용 설명서를 참고하여 위키함수의 기본 함수를 사용해 보세요. 여러분의 피드백과 기여를 기대하고 있습니다!
함수 평가
커뮤니티가 제공한 함수를 위키함수에서 직접 사용해 보세요! 함수 라이브러리에서 하나를 선택하여 입력 값을 입력하면 출력을 찾을 수 있습니다.
단계:
- 대문에서 함수를 찾으세요.
- 함수 문서로 이동하세요.
- 입력 값을 입력하세요.
- 함수를 실행하세요.
결과:
- 예상했던 결과가 나왔나요?
- 보고서에 대한 수정 사항이나 피드백이 있습니까?
Share a Function call
After you run a function, use the 'Copy result link' button beneath the result panel to copy a shareable URL. When someone opens that link, Wikifunctions preloads the same function call and runs it automatically, so they see the inputs and result exactly as you did. This is a quick way to demonstrate reproducible examples or ask others for help with a specific function input/output.
Steps (continue from "Evaluate a Function"):
- After the result loads, click 'Copy result link' under the result panel.
- Share the URL with others!
Note: the shared link preloads your exact inputs and runs them again, so recipients see the same result unless the underlying implementation has changed since you generated the link.
함수 만들기
당신은 자신의 함수를 위키함수에 추가할 수 있습니다! 자신의 구현에서 사용할 수 있는 새로운 함수를 만들고 다른 사람들도 이 함수를 사용할 수 있도록 하세요. 새로운 함수는 원하는 언어로 작성할 수 있습니다.
단계:
- 함수 생성 문서로 이동하세요.
- 함수 이름을 입력하세요.
- 함수의 입력 값을 정의하세요:
- 입력 필드를 추가/제거하세요.
- 각 입력 유형을 정의하세요.
- 각 입력 이름을 입력하세요.
- 함수 출력 유형을 정의하세요.
- 필요에 따라 다음 필드에 다국어 값을 제공합니다:
- 함수 이름, 함수 다른 이름, 입력 레이블
- 함수를 게시하세요.
결과:
- 함수가 성공적으로 게시되었나요?
- 보고서에 대한 수정 사항이나 피드백이 있습니까?
함수 편집
위키함수 라이브러리를 편집함으로써 위키함수에 기여할 수 있습니다. 함수에 다국어 정보를 추가하거나 편집하여 함수의 정의를 확장하고 변경할 수 있습니다.
단계:
- 대문에서 함수를 찾으세요.
- 함수 문서로 이동하세요.
- 해당 함수의 편집 옵션을 보려면 소스 편집을 클릭하세요.
- 필요에 따라 다음 값을 변경할 수 있습니다:
- 함수 이름,
- 함수 다른 이름
- 입력 목록
- 입력 필드 추가/제거
- 입력 유형 편집
- 입력 레이블 편집
- 출력 유형.
- 필요에 따라 다음 필드에 다국어 값을 제공합니다:
- 함수 이름
- 함수 다른 이름
- 입력 레이블.
- 업데이트를 게시하세요.
결과:
- 편집한 내용이 성공적으로 게시되었나요?
- 보고서에 대한 수정 사항이나 피드백이 있습니까?
테스트 만들기
위키함수에서 함수 구현을 위한 테스트를 생성하여 제대로 작동하는지 확인할 수 있습니다.
단계:
- 대문 또는 이전 워크플로에서 생성한 함수를 찾으세요.
- 함수 문서로 이동하세요.
- 테스트 테이블에서 "+" 링크를 클릭하세요.
- "Call" 아래에 있는 "$select_function"을 클릭하세요.
- "함수" 아래 칸에서 테스트할 함수 이름을 입력하고, 표시된 함수를 선택하세요.
- 각 필드에 입력 값을 추가하세요.
- The "Result Validation" section should automatically be expanded.
- In the field under "Function", type in the name of the function you want to use to check the result.
- For a function whose output is String, this will be "String equality", for a function whose output is Boolean, this will be "Boolean equality".
- Add the expected value in the given field (either "Second String" or "Second Boolean").
- 업데이트를 게시하세요.
결과:
- 테스트가 성공적으로 게시되었나요?
- 보고서에 대한 수정 사항이나 피드백이 있습니까?
구현 만들기
Functions are brought to life in implementations created to suit your needs. Run, remix, and combine functions via implementations in Wikifunctions. See the section below to learn how to connect your implementation to functions. We recommend creating and connecting a test before creating an implementation. A more comprehensive guide to creating implementations is available at Wikifunctions:How to create implementations.
단계:
- 대문에서 함수를 찾으세요.
- 함수 문서로 이동하세요.
- 구현 테이블에서 "+" 링크를 클릭하세요.
- 아래 두 가지 중 하나의 방법으로 새 구현을 만들 수 있습니다:
- 코드
- Select the required programming language to write the function code.
- Input your code.
- 구성:
- Create a composition using existing functions.
- 코드
- Publish your updates (after running a test by clicking the round arrow on the right of the box titled 테스트).
결과:
- 구현이 성공적으로 게시되었나요?
- 보고서에 대한 수정 사항이나 피드백이 있습니까?
구현 또는 테스트를 함수에 연결
- 참고: 해당 함수는 함수 편집자만 사용 가능합니다.
테스트와 구현을 함수에 연결하여 실제 구현을 확인하세요.
단계:
- 대문에서 함수를 찾으세요.
- 함수 문서로 이동하세요.
- 하나 이상의 테스트 또는 구현을 선택하세요.
- "연결" 버튼을 클릭하세요.
결과:
- 연결됨/연결이 끊어짐이(가) 성공적으로 변경되었나요?
- 보고서에 대한 수정 사항이나 피드백이 있습니까?
위키백과 문서에 함수 만들기
이제 위키백과 문서에 함수를 생성하고 마법이 펼쳐지는 것을 볼 차례입니다.
단계:
- 함수를 추가하려는 문서를 찾으세요.
- 편집 탭으로 이동하여 시각적 편집기를 여세요.
- Click on the “Insert” menu at the top of the visual editor. Scroll down and click on “Function”. A dialog box will open.
- Search for the function you want to insert and click on it. Or, try one of the Suggested Functions below the search bar.
- Enter the necessary inputs and click on the “Insert” button at the top right to insert the function into the article.
- You can now see the output of your function in the article. You can proceed to publish the changes.
- If you want to edit the function, click on it. A tooltip will appear with the function name and description. Click on the “Edit” button.
- Then you can make changes to the inputs and click on “Apply changes” when you are done editing.
결과:
- 예상했던 결과가 나왔나요?
- 보고서에 대한 수정 사항이나 피드백이 있습니까?
























