Abstract Wikipedia/Components/pt-br: Difference between revisions
Created page with "Isso faz parte do plano de desenvolvimento para a Wikipédia abstrata." |
Created page with "Continua de arquitetura da Wikipédia abstrata." |
||
| Line 3: | Line 3: | ||
{{TNT|Abstract Wikipedia navbox}} |
{{TNT|Abstract Wikipedia navbox}} |
||
: ''Isso faz parte do [[Special:MyLanguage/Abstract Wikipedia/Plan|plano de desenvolvimento para a Wikipédia abstrata]].'' |
: ''Isso faz parte do [[Special:MyLanguage/Abstract Wikipedia/Plan|plano de desenvolvimento para a Wikipédia abstrata]].'' |
||
: '' |
: ''Continua de [[Special:MyLanguage/Abstract Wikipedia/Architecture|arquitetura da Wikipédia abstrata]].'' |
||
</noinclude> |
</noinclude> |
||
<span lang="en" dir="ltr" class="mw-content-ltr">We need to extend the Wikimedia projects in three places:</span> |
<span lang="en" dir="ltr" class="mw-content-ltr">We need to extend the Wikimedia projects in three places:</span> |
||
Revision as of 16:44, 16 November 2020
| Wikipédia abstrata |
|---|
| (Discussão) |
| Geral |
| Plano de desenvolvimento |
|
| Notas, rascunhos, discussões |
|
| Exemplos e maquetes |
| Ferramentas de dados |
| Histórico |
- Isso faz parte do plano de desenvolvimento para a Wikipédia abstrata.
- Continua de arquitetura da Wikipédia abstrata.
We need to extend the Wikimedia projects in three places:
- in the local Wikipedias and other client projects using the new capabilities offered,
- in Wikidata for creating Content (Abstract Wikipedia), and
- in a new project, Wikilambda, aimed to create a library of functions.
Extensions to local Wikipedias
Cada Wikipédia local pode escolher, de acordo com a comunidade local, entre uma das três opções a seguir:
- integração implícita com a Wikipédia abstrata;
- integração explícita com a Wikipédia abstrata;
- nenhuma integração com a Wikipédia abstrata.
A extensão para Wikipédias locais tem as seguintes funcionalidades: uma nova página especial, dois novos recursos e três novas palavras mágicas.
F1: New special page: Abstract
A new special page will be available on each local Wikipedia, that is used with a Q ID or the local article name and an optional language (which defaults to the language of the local Wikipedia). Example special page URLs look like the following:
https://en.wikipedia.org/wiki/Special:Abstract/Q62https://en.wikipedia.org/wiki/Special:Abstract/Q62/dehttps://en.wikipedia.org/wiki/Special:Abstract/San_Franciscohttps://en.wikipedia.org/wiki/Special:Abstract/San_Francisco/de
If the special page is called without parameters, then a form is displayed that allows for selecting a Q ID and a language (pre-filled to the local language).
The special page displays the Content from the selected Q-ID or the Q-ID sitelinked to the respective article rendered in the selected language.
F2: Explicit article creation
If the local Wikipedia chooses to go for the option of integrating with Abstract Wikipedia through explicit article creation, this is how they do it.
The contributor goes to an Item on Wikidata that does not have a sitelink in the target local Wikipedia yet. They add a sitelink to a page that does not exist yet. This way they specify the name of the article. For example, if Q62 in English would not have an article yet, and thus also no Sitelink, they may add the sitelink San_Francisco for en.wikipedia.
On the local Wikipedia, this creates a virtual article in the main namespace. That article has the same content as the special page described above, but it is to be found under the usual URL, i.e.
Links to that article, using the newly specified name, look just like any other links, i.e. a link to [[San Francisco]] will point to the virtual article, be blue, etc. Such articles are indexed for search in the given Wikipedia and for external search too.
If a user clicks on editing the article, they can choose to either go to Wikidata and edit the abstract Content (preferred), or start a new article in the local language from scratch, or materialize the current translation as text and start editing that locally.
If an existing local article with a sitelink is deleted, a virtual article is automatically created (since we know the name and can retain the links).
In order to delete a virtual article, the sitelink in Wikidata needs to be deleted.
All changes to the local Wikipedia have to be done explicitly, which is why we call this the explicit article creation option. We expect to make this the default option for the local Wikipedias, unless they choose either implicit article creation or no integration.
See also the discussion on the integration here.
F3: Implicit article creation
If a local Wikipedia opts in to the Implicit article creation from Wikidata, then the result of calling the Abstract special page on all Wikidata Items that do not have a sitelink to the given Wikidata but would Render content in the given language, is indexed as if it were in the Main namespace, and made available in search as if it were in the Main namespace.
A new magic word is introduced to link to virtual articles from normal articles, see F6 LINK_TO_Q. This can be integrated invisibly into the visual editor.
This is by far the least work for the community to gain a lot of articles, and might be a good option for small communities.
F4: Links or tabs
Every article on a local Wikipedia that is connected to a Wikidata item receives a new link, either as a tab on the top or a link in the sidebar. That link displays the Content for the connected Wikidata item rendered in the local language. Virtual articles don’t have this tab, but their Edit button links directly to editing the Content in Abstract Wikipedia.
F5: New magic word: ABSTRACT_WIKIPEDIA
The magic word is replaced with the wikitext resulting from Rendering the Content on the Wikidata item that is connected to this page through sitelinks.
The magic word can be used with two optional parameters, one being a Q ID, the other a language. If no Q ID is given, the Q ID defaults to the Item this page is linked to per Sitelink. If no language is given, the language defaults to the language of the given wiki.
Exemplos:
{{ABSTRACT_WIKIPEDIA}}{{ABSTRACT_WIKIPEDIA:Q62}}{{ABSTRACT_WIKIPEDIA:Q62/de}}
If no Q ID is given or chosen by default, an error message appears.
Later this will allow to select named sections from the Content.
Wikipédia que optam por não ter integração com a Wikipédia abstrata ainda podem usar essa nova palavra mágica.
Note that the introduction of a new magic word is a preliminary plan. Task 2.3 will investigate whether we can achieve their functionalities without doing so.
F6: New magic word: LINK_TO_Q
This magic word turns into a link to either the local article that is sitelinked to the given Q ID or, if none exists, to the Abstract Special page with the given Q ID. This allows to write articles with links to virtual articles, which get replaced automatically once local content is created.
Exemplo:
{{LINK_TO_Q:Q62}}
vai resultar em
[[San Francisco]]
se o artigo existe, caso contrário, em
[[Special:Abstract/Q62|San Francisco]]
Note that the introduction of a new magic word is a preliminary plan. Task 2.3 will investigate whether we can achieve their functionalities without doing so.
F7: New magic word: LAMBDA
This calls a function specified in Wikidata, together with its parameters, and renders the output on the page.
For example, the following call:
{{LAMBDA:capitalize(“san francisco”)}}
will result in ”San Francisco” being outputted on the page (assuming that there is a function that has the local key add with the expected definition and implementation). It uses the language of the local wiki to parse the call.
Considere também a opção de chamar uma versão específica de uma função para reduzir interrupções posteriores.
Note that the introduction of a new magic word is a preliminary plan. Task 2.3 will investigate whether we can achieve their functionalities without doing so.
Extensions to Wikidata
Adicionamos um novo namespace auxiliar ao namespace principal do Wikidata. Ou seja, cada página de item www.wikidata.org/wiki/Q62 também receberá uma página de conteúdo www.wikidata.org/wiki/Content:Q62 de acompanhamento. Essa página contém o conteúdo abstrato independente do idioma e permite sua edição e manutenção.
Páginas especiais adicionais podem ser necessárias. Isso será estendido na segunda parte do projeto. Requer a concordância da comunidade Wikidata que o projeto será usado para armazenar o conteúdo abstrato, e outro será escolhido se discordar.
F8: New namespace: Content
New namespace with a lot of complex interactive editing features. Provides UX to create and maintain Contents, as well as features to evaluate the Contents (e.g. display how much of it is being displayed per language, etc.) This is mostly a subset of the functionality of the F9 Function namespace.
F9: New data type: Content
A new datatype that contains a (short) Content. The main use case is for the Descriptions in Items and for Glosses in the Senses of Lexemes.
F10: Index and use Descriptions in Items and Glosses in Senses
Index and surface the linearizations of Description fields for Items and Glosses in Senses, and also make sure that for Description fields in Items there are no duplicate Label / Description pairs. Allow for overwriting these both by manual edits.
Extensions to other Wikimedia projects
Outros projetos da Wikimedia também receberão palavras mágicas F7 LAMBDA e F5 ABSTRACT_WIKIPEDIA, mas nenhuma das outras funcionalidades, já que estas não parecem particularmente úteis para eles. Isso pode mudar com base nas solicitações das comunidades.
Extensions for the new wiki of functions
O wiki de funções (temporariamente chamado de Wikilambda) será um novo projeto da Wikimedia em um novo domínio. O principal namespace do Wikilambda será o novo namespace Function. O resto da Wikilambda será um wiki tradicional da Wikimedia.
F11: New namespace: Function
Allowing for the storage of functions, types, interfaces, values, tests, etc. There is a single namespace that contains constants (such as types or single values), function interfaces, function implementations, and thus also Constructors and Renderers. The entities in this namespace are named by Z-IDs, similar to Q-IDs of Wikidata items, but starting with a Z and followed by a number.
There are many different types of entities in the Z namespace. These include types and other constants (which are basically functions of zero arity), as well as classical functions with a positive arity.
Os contribuidores podem criar novos tipos de funções no namespace Function e depois usá-las.
As funções podem ter argumentos. Funções com seus argumentos fornecidos podem ser executadas e resultar em um valor cujo tipo é fornecido pela definição da função.
The Function namespace is complex, and will have very different views depending on the type of the function, i.e. for interfaces, implementations, tests, types, values, etc. there will be different UX on top of them, although they are internally all stored as Z-Objects. Eventually, the different views are all generated by functions in Wikilambda.
Será possível congelar e descongelar entidades no namespace Function. Isso é semelhante a uma página protegida, mas restringe apenas a edição do valor da entidade, não o rótulo, a descrição, etc.
F12: New special pages and API modules
Novas páginas especiais e módulos de API serão criados para suportar o novo namespace Function. Isso incluirá, em particular, uma página especial e um módulo API que permite avaliar funções. Além disso, incluirá inúmeras páginas especiais e APIs que apoiarão a manutenção do conteúdo (como pesquisas por número e tipos de parâmetros, páginas com estatísticas de quantas vezes certas implementações são chamadas, páginas de teste, etc.). O objetivo é implementar o máximo possível deles dentro do Wikilambda.
- Continued in Abstract Wikipedia tasks.