User:Danny Benjafield (WMDE)/sandbox

This page contains changes which are not marked for translation.

This is a sandbox page for Magic Words 12.2024 December, Today's Date is the 26 of Dec., 2024 Today, Thursday is the 4 day of the Week -- Signature, Thursday, the 26 of December, 2024, 05:41 UTC Meta: //meta.wikimedia.orgsitename, server
12401248/en


12,552,046 - no. of pages
151,042 - no. of articles
User:Danny Benjafield (WMDE)/sandbox

Sitelinks

edit

Other links to (semi-)relevant places that may also require updating, or just handy to refer to:


Language-independent general principles

edit

Wiktionary

edit

Wiktionary uses a mix of Wikidata-powered sitelinks and a separate extension called Cognate. Within the article or main namespace, Cognate links the page to other language Wiktionaries when the page title is an exact match.
On the Wiktionary project, all language forms of a word can be described on every instance of a Wiktionary.

Wikidata sitelinks are still active in non-article namespaces such as Template:, Special:, Help:, Project (/wiki/Wiktionary/page_title).

Languages

edit
  • Show Workflow / process in images of adding a language.

Q. Is the process the same regardless of

  • source language?
  • Wikimedia project?
  • Skin / UI?
  • accessibility? - RTL, gadgets for visually-impaired
edit
edit

{{noexternallanglinks}} is a magic word that can be invoked in the wikitext to suppress interlanguage links sourced from Wikidata.

When invoked with parameters, such as "{{noexternallanglinks:es|fr|it}}", only the specific languages (here being Spanish [es], French [fr] and Italian [it]) from Wikidata will be 'hidden'.

The magic word does not disconnect or remove the sitelinks from the Wikidata item, but rather disables the Wikibase extension that controls the Sitelink connection.
Manual interlanguage links within the wikitext, such as [en][ar][pt][ru] will still be active.

edit

At it's default setting, the Wikimedia projects and Wikidata will not automatically connect article content with the relevant Wikidata item.

  • If the article is a new concept, it might not exist on Wikidata yet, requiring a new Wikidata item to be described before a sitelink can be made.
  • A Wikidata item may exist but if it was created in another source language first without a relevant translated label, you may not be able to find it easily with the search function.
  • The Wikidata item may exist but the the label and/or description may be explained differently that a search does not return it as a result.

There are various gadgets that have been created to help facilitate sitelinking.

Is actually a series of games to facilitate easy on-rails editing, sitelinking and item enrichment of Wikidata and various Wikimedia projects.


Official description: Match new Wikiquote pages with Wikidata items, and add the sitelink to Wikidata.


Official description: Match new Wikipedia articles and categories with Wikidata items, and add the sitelink to Wikidata.


Official description: Match Commons categories with Wikidata items, and add the commons sitelink to Wikidata.


Official description: Decide if a Wikipedia article and a Wikidata item describe the same entity. Using data from the duplicity tool.

QRpedia is a website where you can paste a Wikipedia URL and it will generate a QR code. This can be printed and displayed on matching objects or concepts to provide users the ability to scan the QR code and return a mobile-friendly Wikipedia article utilizing the sitelinking functionality from Wikidata.

This means the article is available in all of the languages that are connected to the Wikidata item, allowing multiple translations for the user and the additional possibility of generating a Google Translation if a preferred language is missing.

A common use for QRpedia is for museum displays that do not have the space or resources to provide translations in multiple languages for all exhibits.

Is a tool that will display random articles from a language Wikipedia that isn't linked to a Wikidata item (shown on the left column). It offers some possible matches of Wikidata items (displayed in the middle column), so you can add it to an existing item, or create a new one.

Not sure about the suggested matches? There is a Skip button to move on to the next random article.

There are a variety of buttons along the top-menu such as Music Sport Misc that indicate they might categorise the kind of articles that are presented, but testing seems to show this is not currently functional.

Is a gadget that when installed, after changes to an article are published, will run a search of Wikidata for similar-matching page titles. It will return the Item QID, Label and Description of suggestions in a pop-up box on the current article page. From here you can:

  • Click the Q-ID to navigate to the Wikidata item if you wish to research further if the item is an appropriate match.
  • Click the radio button of the suggestion, and then click "Submit" to connect the current article page with the selected Wikidata item.
  • If no suggestions are returned or they are not appropriate matches, you can click the "Create new item" button. This will open the Item creation page on Wikidata with some pre-filled fields based on the source articles' location and page title.

Table code snippet for Behaviour switches? or Parser function?

Formatted for behaviour switches...if to Parser function, requires amendment! MediaWiki/Help:Magic_Words is currently missing noexternallanglinks. There seems to be no consensus on the appropriate table to place it in as Behaviour switches is ALLCAPS.

Extension Word Description Versions
From Extensions
Wikibase (client) noexternallanglinks Is a magic word and a parser function which when invoked, will disable the Wikibase extension for a specific page, or used with parameters can suppress specific interlanguage links produced by the extension. When active, only interlanguage links present in the wikitext are used.
MediaWiki version: ?.?.? and after