Description
Steps to reproduce:
- Go to https://wikifunctions.beta.wmflabs.org/w/index.php?title=Special:CreateObject&zid=Z46 to create a converter
- Select code and a programming language
Observed behavior:
- The code snippet is initialized to "undefined()"
- This is because the code component assumes it's code of an implementation, and takes the function name from the implementation function Zid
- The function name should be the newly created object ID, so probably initialized to "Z0( Z0K1 )"
- When hardcoding the function definition with Z0s, once saved, these Z0s are not replaced with the newly assigned Zid
Expected behavior (Acceptance criteria):
- Anyone can create converters comfortably using solely the UI
- All known fields should be pre-assigned
- Function code scaffolding should be correctly created
- Once saved, the Z0 should be replaced with the newly created Zid
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist