抽象维基百科/测试版教程
这是文档的副本Beta 维基功能网站。 |
本页不完整地介绍了如何浏览早期测试版维基。
我如何找到一个模板?
搜索功能还不能使用。要了解存在哪些函数以及查找函数的最佳方法是进入功能列表,然后选择想要的函数。
如何运行函数?
进入函数页面(例如,这里是 Boolean And function 的函数页面)。右侧有一个标题 "Details(详细信息)",下面有一个副标题 "Evaluate Function(评估函数)",再下面有一个灰色框,可以输入函数所需的参数。输入参数后,点击 "调用函数 "按钮。结果将显示在下方。
如何创建函数?
First you need to create the function itself. Go to the page to create a function. Enter a name, the input types, the output type, and then publish the function.
How do I create a function implementation?
在要创建实现的函数页面上,切换到 "详细信息 "选项卡,点击 "创建新实现 "链接。现在,您可以选择是输入代码,还是输入组合。
代码
For now, you need to enter a name for the implementation or you won’t be able to publish the implementation.
For entering an implementation in code follow of the existing examples for entering code:
Composition
For entering an implementation as a composition, follow the following recipe:
- Select the functions you want to call
- If you need an argument, first try selecting the option “arg” from the mode drop down
- In case that doesn’t work, select “argument reference” as the type
- Select the argument you need in the drop down
Check out this short video for guidance.
Ignore the buttons “Create Function” and “Create Type” at the bottom of the screen. If the “Publish” button is grayed out, check if you entered a name for the implementation. If you just did, the button sometimes does not update properly. In that case click somewhere else to change focus and update the button.
How to connect the implementation with the function?
Once the implementation is created, you need to connect the function with the implementation. For that, go to the function page, click on “Edit source”, click on the button “Fallback editor”, and then, under the heading “Implementation list’, click on the big plus, and choose the just created implementation. Click on “Publish”. Now you should be able to call the function from the function page.