(Go: >> BACK << -|- >> HOME <<)

Jump to content

Wikifunctions:FAQ: Difference between revisions

From Wikifunctions
Content deleted Content added
preparing for translation
Marked this version for translation
Line 1: Line 1:
<languages/>
<languages/>
<translate>This is a dedicated page for the Frequently Asked Questions about Wikifunctions. Please, feel free to ask your own question in the [[<tvar|talkpage>Wikifunctions talk:FAQ</>|talk page]], if your question is not listed here!</translate>
<translate><!--T:1--> This is a dedicated page for the Frequently Asked Questions about Wikifunctions. Please, feel free to ask your own question in the [[<tvar|talkpage>Wikifunctions talk:FAQ</>|talk page]], if your question is not listed here!</translate>
__TOC__
__TOC__
== <translate>Introduction</translate> ==
== <translate><!--T:2--> Introduction</translate> ==
=== <translate>What is this project about?</translate> ===
=== <translate><!--T:3--> What is this project about?</translate> ===
<translate>Wikifunctions is a new Wikimedia project that provides a catalog of all kinds of functions that anyone can call, write, maintain, and use. It also provides the underlying technology that will eventually enable the translation of language-independent articles from Abstract Wikipedia into the language of any Wikipedia. This will allow everyone to contribute and read articles in their preferred languages.</translate>
<translate><!--T:4--> Wikifunctions is a new Wikimedia project that provides a catalog of all kinds of functions that anyone can call, write, maintain, and use. It also provides the underlying technology that will eventually enable the translation of language-independent articles from Abstract Wikipedia into the language of any Wikipedia. This will allow everyone to contribute and read articles in their preferred languages.</translate>


=== <translate>What is a function?</translate> ===
=== <translate><!--T:5--> What is a function?</translate> ===
<translate>Functions are a form of knowledge that can answer questions, such as how many days have passed between two dates or the distance between two cities. More complicated functions can answer more complicated questions, such as the volume of a three dimensional shape, the distance between Mars and Venus on a certain date, or whether two species were alive at the same time.</translate>
<translate><!--T:6--> Functions are a form of knowledge that can answer questions, such as how many days have passed between two dates or the distance between two cities. More complicated functions can answer more complicated questions, such as the volume of a three dimensional shape, the distance between Mars and Venus on a certain date, or whether two species were alive at the same time.</translate>


<translate>We already use functions in many types of knowledge inquiries, such as asking a question to a search engine. The templates, such as [[<tvar|convert>:w:en:Template:Convert</>|Template:Convert]] and [[<tvar|age>:w:en:Template:Age</>|Template:Age]] on English Wikipedia, are also examples of functionalities that are already used in many Wikipedias, written in wikitext and Lua and manually copied to each wiki where it's wanted.</translate>
<translate><!--T:7--> We already use functions in many types of knowledge inquiries, such as asking a question to a search engine. The templates, such as [[<tvar|convert>:w:en:Template:Convert</>|Template:Convert]] and [[<tvar|age>:w:en:Template:Age</>|Template:Age]] on English Wikipedia, are also examples of functionalities that are already used in many Wikipedias, written in wikitext and Lua and manually copied to each wiki where it's wanted.</translate>


=== <translate>What is an implementation?</translate> ===
=== <translate><!--T:8--> What is an implementation?</translate> ===
<translate>An implementation is a particular way to execute a function. An implementation is a recipe that lists the steps that are needed to run the function. It may be a piece of code in a programming language, or a combination of calls to other functions. A function may have many implementations, which should all be equivalent.</translate>
<translate><!--T:9--> An implementation is a particular way to execute a function. An implementation is a recipe that lists the steps that are needed to run the function. It may be a piece of code in a programming language, or a combination of calls to other functions. A function may have many implementations, which should all be equivalent.</translate>


=== <translate>What is a test?</translate> ===
=== <translate><!--T:10--> What is a test?</translate> ===
<translate>A test is a way to determine if a given function is doing the right thing. A function will typically have multiple testers, each specifying some input to the function and the conditions the output for the given input must fulfill.</translate>
<translate><!--T:11--> A test is a way to determine if a given function is doing the right thing. A function will typically have multiple testers, each specifying some input to the function and the conditions the output for the given input must fulfill.</translate>


<translate>For example, testers for a “title case” function might include: “<tvar|1>abc</>” should become “<tvar|2>Abc</>”; “<tvar|3>war and peace</>” should become “<tvar|4>War and Peace</>”; “<tvar|5>война и мир</>” should become “<tvar|6>Война и мир</>”; and “<tvar|7>123</>” should remain “<tvar|8>123</>”.</translate>
<translate><!--T:12--> For example, testers for a “title case” function might include: “<tvar|1>abc</>” should become “<tvar|2>Abc</>”; “<tvar|3>war and peace</>” should become “<tvar|4>War and Peace</>”; “<tvar|5>война и мир</>” should become “<tvar|6>Война и мир</>”; and “<tvar|7>123</>” should remain “<tvar|8>123</>”.</translate>


=== <translate>Which features are available now, which will be soon available, and which are further away?</translate> ===
=== <translate><!--T:13--> Which features are available now, which will be soon available, and which are further away?</translate> ===
* <translate>At launch:</translate>
* <translate><!--T:14--> At launch:</translate>
** <translate>We have the ability to have functions that work with Strings and Booleans.</translate>
** <translate><!--T:15--> We have the ability to have functions that work with Strings and Booleans.</translate>
** <translate>Wikifunctions will be fully internationalized from the beginning. It can be used in any language.</translate>
** <translate><!--T:16--> Wikifunctions will be fully internationalized from the beginning. It can be used in any language.</translate>
* <translate>Ongoing development:</translate>
* <translate><!--T:17--> Ongoing development:</translate>
** <translate>generic types and generic functions are not fully supported.</translate>
** <translate><!--T:18--> generic types and generic functions are not fully supported.</translate>
** <translate>Adding types will, for now, be something that is limited to the development team. In the future, the community will be able to add more types themselves. There is a lot of work in the future to make types behave much smoother.</translate>
** <translate><!--T:19--> Adding types will, for now, be something that is limited to the development team. In the future, the community will be able to add more types themselves. There is a lot of work in the future to make types behave much smoother.</translate>
*** <translate>One particularly interesting type will be binary data, and particularly files.</translate>
*** <translate><!--T:20--> One particularly interesting type will be binary data, and particularly files.</translate>
** <translate>We currently support two programming languages for implementations, JavaScript and Python. In the future, we want to support many more.</translate>
** <translate><!--T:21--> We currently support two programming languages for implementations, JavaScript and Python. In the future, we want to support many more.</translate>
** <translate>It currently is ''not'' possible to call other functions from implementations written in another programming language.</translate>
** <translate><!--T:22--> It currently is ''not'' possible to call other functions from implementations written in another programming language.</translate>
* <translate>In the future:</translate>
* <translate><!--T:23--> In the future:</translate>
** <translate>It will be possible to call Wikifunctions functions from other Wikimedia projects, and integrate their results in the output of the page.</translate>
** <translate><!--T:24--> It will be possible to call Wikifunctions functions from other Wikimedia projects, and integrate their results in the output of the page.</translate>
** <translate>It will be possible to use data from Wikidata in functions.</translate>
** <translate><!--T:25--> It will be possible to use data from Wikidata in functions.</translate>
** <translate>It will be possible to call data sets from Commons Data namespace.</translate>
** <translate><!--T:26--> It will be possible to call data sets from Commons Data namespace.</translate>


=== <translate>How will Wikifunctions be integrated into other projects?</translate> ===
=== <translate><!--T:27--> How will Wikifunctions be integrated into other projects?</translate> ===
<translate>Wikifunctions is the first step towards building Abstract Wikipedia. Our near-term focus will be on supporting the community and making improvements based on feedback. Concurrently we will begin the process of integrating it with Wikipedia and Wikidata, which will enable broader real-life applications and get us closer to the vision of Abstract Wikipedia.</translate>
<translate><!--T:28--> Wikifunctions is the first step towards building Abstract Wikipedia. Our near-term focus will be on supporting the community and making improvements based on feedback. Concurrently we will begin the process of integrating it with Wikipedia and Wikidata, which will enable broader real-life applications and get us closer to the vision of Abstract Wikipedia.</translate>


<translate>Contributors will be able to call functions from Wikifunctions from within their wikis. For readers of the wiki, the result of the function call will be displayed. This can be used, for example, to calculate the age of a person, the population density based on population and area data from Wikidata, or to draw a graph and integrate it into a given article.</translate>
<translate><!--T:29--> Contributors will be able to call functions from Wikifunctions from within their wikis. For readers of the wiki, the result of the function call will be displayed. This can be used, for example, to calculate the age of a person, the population density based on population and area data from Wikidata, or to draw a graph and integrate it into a given article.</translate>


<translate>Another option to integrate Wikifunctions will be to integrate an interactive function call interface within their wiki. This could be used, for example, in a Wikipedia article to dynamically calculate the result of a physical equation based on reader-provided parameters, draw and interact with mathematical functions, etc.</translate>
<translate><!--T:30--> Another option to integrate Wikifunctions will be to integrate an interactive function call interface within their wiki. This could be used, for example, in a Wikipedia article to dynamically calculate the result of a physical equation based on reader-provided parameters, draw and interact with mathematical functions, etc.</translate>


=== <translate>What Wikifunctions is not?</translate> ===
=== <translate><!--T:31--> What Wikifunctions is not?</translate> ===
<translate>Please, see [[<tvar|isnot>Special:MyLanguage/Wikifunctions:What Wikifunctions is not</>|Wikifunctions:What Wikifunctions is not]] for more information on that.</translate>
<translate><!--T:32--> Please, see [[<tvar|isnot>Special:MyLanguage/Wikifunctions:What Wikifunctions is not</>|Wikifunctions:What Wikifunctions is not]] for more information on that.</translate>


=== <translate>What license will the functions and derived content be under?</translate> ===
=== <translate><!--T:33--> What license will the functions and derived content be under?</translate> ===
<translate>Per the discussion happened [[<tvar|licensingdisc>:m:Special:MyLanguage/Abstract Wikipedia/Licensing discussion</>|on Meta between November and December 2021]], all contributions to Wikifunctions and the wider Abstract Wikipedia projects will be published under free licenses. In particular:</translate>
<translate><!--T:34--> Per the discussion happened [[<tvar|licensingdisc>:m:Special:MyLanguage/Abstract Wikipedia/Licensing discussion</>|on Meta between November and December 2021]], all contributions to Wikifunctions and the wider Abstract Wikipedia projects will be published under free licenses. In particular:</translate>
* <translate>[[<tvar|textcontent>Special:MyLanguage/Glossary#Content</>|Textual content]] on Wikifunctions will be published under CC BY-SA 3.0.</translate>
* <translate><!--T:35--> [[<tvar|textcontent>Special:MyLanguage/Glossary#Content</>|Textual content]] on Wikifunctions will be published under CC BY-SA 3.0.</translate>
* <translate>[[<tvar|function>Special:MyLanguage/Glossary#Function</>|Function signatures]] and other structured content on Wikifunctions will be published under CC 0.</translate>
* <translate><!--T:36--> [[<tvar|function>Special:MyLanguage/Glossary#Function</>|Function signatures]] and other structured content on Wikifunctions will be published under CC 0.</translate>
* <translate>[[<tvar|implementation>Special:MyLanguage/Glossary#Implementation</>|Code implementations]] in Wikifunctions will be published under the Apache 2 license.</translate>
* <translate><!--T:37--> [[<tvar|implementation>Special:MyLanguage/Glossary#Implementation</>|Code implementations]] in Wikifunctions will be published under the Apache 2 license.</translate>
* <translate>[[<tvar|abstractcontent>Special:MyLanguage/Glossary#Content</>|Abstract Content]] for Abstract Wikipedia will be published under CC BY-SA 3.0.</translate>
* <translate><!--T:38--> [[<tvar|abstractcontent>Special:MyLanguage/Glossary#Content</>|Abstract Content]] for Abstract Wikipedia will be published under CC BY-SA 3.0.</translate>


<translate>There are still some points that will need to be addressed in the future, such as the license of the generated content from the abstract content. We plan on drafting a more comprehensive document with the Legal department about how people can re-use code from Wikifunctions as painlessly as possible, while adhering to the license.</translate>
<translate><!--T:39--> There are still some points that will need to be addressed in the future, such as the license of the generated content from the abstract content. We plan on drafting a more comprehensive document with the Legal department about how people can re-use code from Wikifunctions as painlessly as possible, while adhering to the license.</translate>


== <translate>Contributing</translate> ==
== <translate><!--T:40--> Contributing</translate> ==
=== <translate>I'm new here. What is there for me to do and how can I help?</translate> ===
=== <translate><!--T:41--> I'm new here. What is there for me to do and how can I help?</translate> ===
<translate>Welcome! We're very happy to have you here! There are many opportunities for contributing to Wikifunctions, from creating new functions to improving and translating documentation. If you are looking for ways to get involved, we recommend that you, depending on your level of comfort, maybe suggest a new function on a topic you are interested in. Or even create such a function. Provide some tests. Try your hand at an implementation. Help with translations. Read and improve our documentation. Help with organizing the community.</translate>
<translate><!--T:42--> Welcome! We're very happy to have you here! There are many opportunities for contributing to Wikifunctions, from creating new functions to improving and translating documentation. If you are looking for ways to get involved, we recommend that you, depending on your level of comfort, maybe suggest a new function on a topic you are interested in. Or even create such a function. Provide some tests. Try your hand at an implementation. Help with translations. Read and improve our documentation. Help with organizing the community.</translate>


=== <translate>How do I create a new function or implementation or test?</translate> ===
=== <translate><!--T:43--> How do I create a new function or implementation or test?</translate> ===
<translate>To see how to create a new function, implementation or test, see [[<tvar|intro>Special:MyLanguage/Wikifunctions:Introduction</>|Wikifunctions:Introduction]].</translate>
<translate><!--T:44--> To see how to create a new function, implementation or test, see [[<tvar|intro>Special:MyLanguage/Wikifunctions:Introduction</>|Wikifunctions:Introduction]].</translate>


<translate>To see in more details how to create an implementation, see [[<tvar|createimpl>Special:MyLanguage/Wikifunctions:How to create implementations</>|Wikifunctions:How to create implementations]].</translate>
<translate><!--T:45--> To see in more details how to create an implementation, see [[<tvar|createimpl>Special:MyLanguage/Wikifunctions:How to create implementations</>|Wikifunctions:How to create implementations]].</translate>


=== <translate>What should I edit first?</translate> ===
=== <translate><!--T:46--> What should I edit first?</translate> ===
<translate>If you speak several languages, find functions that don't have labels and descriptions in your languages yet, and help adding these.</translate>
<translate><!--T:47--> If you speak several languages, find functions that don't have labels and descriptions in your languages yet, and help adding these.</translate>


<translate>If you have some interest in a domain that could feature functions in Wikifunctions, but yet doesn't, or if you have more ideas for functions, go to the page for [[<tvar|suggest>Wikifunctions:Suggest a new function</>|suggesting new functions]], and present your ideas.</translate>
<translate><!--T:48--> If you have some interest in a domain that could feature functions in Wikifunctions, but yet doesn't, or if you have more ideas for functions, go to the page for [[<tvar|suggest>Wikifunctions:Suggest a new function</>|suggesting new functions]], and present your ideas.</translate>


<translate>If you are a coder in JavaScript or Python, maybe you want to check for functions that don't yet have implementations in JavaScript or Python, and try to write them.</translate>
<translate><!--T:49--> If you are a coder in JavaScript or Python, maybe you want to check for functions that don't yet have implementations in JavaScript or Python, and try to write them.</translate>


=== <translate>Where can I go for help?</translate> ===
=== <translate><!--T:50--> Where can I go for help?</translate> ===
<translate>Your first stop should be the [[<tvar|help>Help:Contents</>|Help portal]] where you'll find all the documentation related to using and editing Wikifunctions. If you're still stuck, post a message on [[<tvar|projectchat>Wikifunctions:Project chat</>|Project chat]], someone will answer your question.</translate>
<translate><!--T:51--> Your first stop should be the [[<tvar|help>Help:Contents</>|Help portal]] where you'll find all the documentation related to using and editing Wikifunctions. If you're still stuck, post a message on [[<tvar|projectchat>Wikifunctions:Project chat</>|Project chat]], someone will answer your question.</translate>


=== <translate>How do we sort or categorize functions?</translate> ===
=== <translate><!--T:52--> How do we sort or categorize functions?</translate> ===
<translate>This task on Phabricator: [[<tvar|phabtkt>:phab:T285424</>|phab:T285424]]</translate>
<translate><!--T:53--> This task on Phabricator: [[<tvar|phabtkt>:phab:T285424</>|phab:T285424]]</translate>


<translate>For now, the best way to sort or categorize functions is doing it by hand through pages in the Wikifunctions namespace. Another option would be through the talk page of the given function. We will monitor these efforts, and discuss with the community which changes to the system would be helpful for this task.</translate>
<translate><!--T:54--> For now, the best way to sort or categorize functions is doing it by hand through pages in the Wikifunctions namespace. Another option would be through the talk page of the given function. We will monitor these efforts, and discuss with the community which changes to the system would be helpful for this task.</translate>


[[Category:Help]]
[[Category:Help]]

Revision as of 16:38, 27 July 2023

This is a dedicated page for the Frequently Asked Questions about Wikifunctions. Please, feel free to ask your own question in the talk page, if your question is not listed here!

Introduction

What is this project about?

Wikifunctions is a new Wikimedia project that provides a catalog of all kinds of functions that anyone can call, write, maintain, and use. It also provides the underlying technology that will eventually enable the translation of language-independent articles from Abstract Wikipedia into the language of any Wikipedia. This will allow everyone to contribute and read articles in their preferred languages.

What is a function?

Functions are a form of knowledge that can answer questions, such as how many days have passed between two dates or the distance between two cities. More complicated functions can answer more complicated questions, such as the volume of a three dimensional shape, the distance between Mars and Venus on a certain date, or whether two species were alive at the same time.

We already use functions in many types of knowledge inquiries, such as asking a question to a search engine. The templates, such as Template:Convert and Template:Age on English Wikipedia, are also examples of functionalities that are already used in many Wikipedias, written in wikitext and Lua and manually copied to each wiki where it's wanted.

What is an implementation?

An implementation is a particular way to execute a function. An implementation is a recipe that lists the steps that are needed to run the function. It may be a piece of code in a programming language, or a combination of calls to other functions. A function may have many implementations, which should all be equivalent.

What is a test?

A test is a way to determine if a given function is doing the right thing. A function will typically have multiple testers, each specifying some input to the function and the conditions the output for the given input must fulfill.

For example, testers for a “title case” function might include: “abc” should become “Abc”; “war and peace” should become “War and Peace”; “война и мир” should become “Война и мир”; and “123” should remain “123”.

Which features are available now, which will be soon available, and which are further away?

  • At launch:
    • We have the ability to have functions that work with Strings and Booleans.
    • Wikifunctions will be fully internationalized from the beginning. It can be used in any language.
  • Ongoing development:
    • generic types and generic functions are not fully supported.
    • Adding types will, for now, be something that is limited to the development team. In the future, the community will be able to add more types themselves. There is a lot of work in the future to make types behave much smoother.
      • One particularly interesting type will be binary data, and particularly files.
    • We currently support two programming languages for implementations, JavaScript and Python. In the future, we want to support many more.
    • It currently is not possible to call other functions from implementations written in another programming language.
  • In the future:
    • It will be possible to call Wikifunctions functions from other Wikimedia projects, and integrate their results in the output of the page.
    • It will be possible to use data from Wikidata in functions.
    • It will be possible to call data sets from Commons Data namespace.

How will Wikifunctions be integrated into other projects?

Wikifunctions is the first step towards building Abstract Wikipedia. Our near-term focus will be on supporting the community and making improvements based on feedback. Concurrently we will begin the process of integrating it with Wikipedia and Wikidata, which will enable broader real-life applications and get us closer to the vision of Abstract Wikipedia.

Contributors will be able to call functions from Wikifunctions from within their wikis. For readers of the wiki, the result of the function call will be displayed. This can be used, for example, to calculate the age of a person, the population density based on population and area data from Wikidata, or to draw a graph and integrate it into a given article.

Another option to integrate Wikifunctions will be to integrate an interactive function call interface within their wiki. This could be used, for example, in a Wikipedia article to dynamically calculate the result of a physical equation based on reader-provided parameters, draw and interact with mathematical functions, etc.

What Wikifunctions is not?

Please, see Wikifunctions:What Wikifunctions is not for more information on that.

What license will the functions and derived content be under?

Per the discussion happened on Meta between November and December 2021, all contributions to Wikifunctions and the wider Abstract Wikipedia projects will be published under free licenses. In particular:

There are still some points that will need to be addressed in the future, such as the license of the generated content from the abstract content. We plan on drafting a more comprehensive document with the Legal department about how people can re-use code from Wikifunctions as painlessly as possible, while adhering to the license.

Contributing

I'm new here. What is there for me to do and how can I help?

Welcome! We're very happy to have you here! There are many opportunities for contributing to Wikifunctions, from creating new functions to improving and translating documentation. If you are looking for ways to get involved, we recommend that you, depending on your level of comfort, maybe suggest a new function on a topic you are interested in. Or even create such a function. Provide some tests. Try your hand at an implementation. Help with translations. Read and improve our documentation. Help with organizing the community.

How do I create a new function or implementation or test?

To see how to create a new function, implementation or test, see Wikifunctions:Introduction.

To see in more details how to create an implementation, see Wikifunctions:How to create implementations.

What should I edit first?

If you speak several languages, find functions that don't have labels and descriptions in your languages yet, and help adding these.

If you have some interest in a domain that could feature functions in Wikifunctions, but yet doesn't, or if you have more ideas for functions, go to the page for suggesting new functions, and present your ideas.

If you are a coder in JavaScript or Python, maybe you want to check for functions that don't yet have implementations in JavaScript or Python, and try to write them.

Where can I go for help?

Your first stop should be the Help portal where you'll find all the documentation related to using and editing Wikifunctions. If you're still stuck, post a message on Project chat, someone will answer your question.

How do we sort or categorize functions?

This task on Phabricator: phab:T285424

For now, the best way to sort or categorize functions is doing it by hand through pages in the Wikifunctions namespace. Another option would be through the talk page of the given function. We will monitor these efforts, and discuss with the community which changes to the system would be helpful for this task.