Wikipédia Abstrata/Componentes

This page is a translated version of the page Abstract Wikipedia/Components and the translation is 59% complete.
Outdated translations are marked like this.

Isso faz parte do plano de desenvolvimento para a Wikipédia abstrata.
Continua de arquitetura da Wikipédia abstrata.

Precisamos estender os projetos da Wikimedia em três lugares:

  1. nas Wikipédias locais e outros projetos usando os novos recursos oferecidos,
  2. no Wikidata para a criação de conteúdo (Wikipédia abstrata), e
  3. em um novo projeto, Wikifunções, teve como objetivo criar uma biblioteca de funções.

Extensões para Wikipédias locais

Cada Wikipédia local pode escolher, de acordo com a comunidade local, entre uma das três opções a seguir:

  1. integração implícita com a Wikipédia abstrata;
  2. integração explícita com a Wikipédia abstrata;
  3. 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: Nova página especial: Abstract

Uma nova página especial estará disponível em cada Wikipédia local, que é usada com um Q-ID ou o nome do artigo local e um idioma opcional (o padrão é o idioma da Wikipédia local). Exemplos de URLs de páginas especiais:

https://en.wikipedia.org/wiki/Special:Abstract/Q62
https://en.wikipedia.org/wiki/Special:Abstract/Q62/de
https://en.wikipedia.org/wiki/Special:Abstract/San_Francisco
https://en.wikipedia.org/wiki/Special:Abstract/San_Francisco/de

Se a página especial for chamada sem parâmetros, é exibido um formulário que permite selecionar um Q-ID e um idioma (pré-preenchido no idioma local).

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: Criação explícita de artigo

Se a Wikipédia local optar pela opção de integração com a Wikipédia abstrata por meio da criação explícita de artigos, é assim que eles fazem.

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.

https://en.wikipedia.org/wiki/San_Francisco

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.

Se um usuário clicar em editar o artigo, ele pode escolher ir para o Wikidata e editar o resumo (de preferência) ou começar um novo artigo no idioma local do zero, ou materializar a tradução atual como texto e começar a editá-la localmente.

Se um artigo local existente com um sitelink for excluído, um artigo virtual será criado automaticamente (já que sabemos o nome e podemos manter os links).

Para excluir um artigo virtual, o sitelink no Wikidata precisa ser excluído.

Todas as alterações na Wikipédia local devem ser feitas explicitamente, por isso chamamos isso de criação explícita de artigo. Esperamos tornar esta a opção padrão para as Wikipédias locais, a menos que eles escolham a criação implícita do artigo ou nenhuma integração.

Veja também a discussão sobre a integração aqui.

F3: Criação implícita de artigo

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: Nova palavra mágica: 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: Nova palavra mágica: 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: Nova palavra mágica: 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 and 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.

Extensões para 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: Novo namespace: Content

New namespace with a lot of complex interactive editing features. Provides UX to create and maintain Content, as well as features to evaluate the Content (e.g. display how much of it is being displayed per language, etc.) This is mostly a subset of the functionality of the F11 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.

Extensões para outros projetos da Wikimedia

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.

Extensões para o novo wiki de funções

Wikifunctions será um novo projeto da Wikimedia em um novo domínio. O principal namespace do Wikifunctions será o novo namespace Function. O resto da Wikifunctions será um wiki tradicional da Wikimedia.

F11: Novo namespace:

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 Wikifunctions.

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: Novas páginas especiais e módulos API

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 Wikifunções.


Ver também