Jump to content

Help:Contributing/citations

From Wikibase
Revision as of 16:11, 23 November 2026 by SeedBot (talk | contribs) (Legal citations v2: court decisions, constitutional texts, reference conventions (via update-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Languages: English · français · Esperanto

RonzzWikiBase has a custom citation mechanism. It is different from those on vanilla wikibase instances, such as Wikipedia.

Why a custom citation mechanism?

On a vanilla wikibase, citation is cubersome: You need to write citation text manually or generate it via a 3rd-party app, then paste it between <ref></ref> tags to create a citation item. Therefore, if you cite the same source on multiple pages, the way to go is to copy and paste the citation text multiple times.

The most scary part comes when you later updates the citation (e.g., because you made a typo). You will need to manually update each one, unless you have a bot account setup and know MediaWiki APIs well enough to do some batch text-op scripting.

To eliminate all the complexity, we purpose-built our custom entity-based citation mechanism.

A citation starts with a citable entity

To create a citation on ronzz-wikibase, you first need a citable entity, which can be a book, a newspaper article, or whatever source you would like to cite.

First search via Special:ItemDisambiguation page by title if the source you would like to cite exists already as an entity on ronzz-wikibase. If so, note its entity number (the number starting with "Q"). If it does not yet exist, you can create it. The entity number will be shown at the end of the guided creation process. Note it. This magic number represents the citable entity across ronzz-wikibase

A citation is declared with <ref>{{#cite:Qxx}}</ref>

You type You get
Ada was first.<ref>{{#cite:Q96}}</ref>
Ada was first.[1]

That's it. The ronzz-wikibase render engine takes care of everything.

If you ever need to cite multiple sources in one place, simply repeat the entire syntax multiple times. Each source needs its own <ref></ref> wrapping.

The same source cited several times renders ONE footnote. Repeat <ref>{{#cite:Qxx}}</ref> as often as you need — the render engine recognises duplicate sources and merges the footnotes into a single entry with one ↑ backlink per usage (identical to what a named <ref name="..."> would give you). No manual de-duplication needed.

Create bibliography with <references/>

This part is exactly the same as on vanilla wikibase instances such as wikipedia. You simply type at the end of your article:

<references/>

and everything you have cited in the article will be automatically included:

  1. ↑ Lovelace, A. (1843). The Analytical Engine has no pretensions whatever to originate anything. In Notes by the Translator. R. & J. E. Taylor. https://doi.org/10.1000/notes

Each footnote links to its source's page. When the cited source has a human-facing page (a Source: page, e.g. Source:Ada Lovelace (Book)), the footnote text is rendered as a hyperlink to that page, so a reader can jump from the citation straight to the source. A source without a page (an API-created item, or a book excerpt, which is part of a book and never gets its own page) renders as plain text.

Copy a formatted citation from the item page

Every item page (/wiki/Item:Q1) carries a small toolbar under the title. The Copy citation button opens a small popup:

  • a format dropdown — APA is preselected;
  • a live preview of the formatted citation for the chosen format;
  • a Copy button that copies the preview text.

The four formats:

  • APA (the default) — author–date style, e.g. Lovelace, A. (1843). Notes by the Translator.
  • Vancouver — numbered style.
  • BibTeX — a @book{...} entry for LaTeX bibliographies.
  • RIS — a tagged record for reference managers (Zotero, EndNote, …).

All authors recorded on the item are used; the style decides how many are displayed (APA 7 keeps the first 19 + "…" + the last for 21 or more authors, Vancouver keeps the first 6 + "et al.", and BibTeX/RIS list them all). The citation text is generated from the item's statements at copy time, so the same source can be copied in any of the four formats. For a webpage or website source the citation follows the webpage guideline — its URL appears in the citation text, and the year is the year of its last edition (the most recent date recorded on the source item). The toolbar also carries Copy embed code (for quotable content items) and, when the item can be edited with a form, Update basic information — see Help:Contributing/import#Re-editing an imported item.

Copy the citation of a classic page

The toolbar under the title of a classic content page — a Main-namespace article, a Help: page, a cheatsheet … — carries a Copy citation button too. Unlike the item-page button, it cites the page itself: its title, its canonical URL and the date of its last revision (the page's "last edition"), with no author. The same popup (format dropdown / preview / Copy) applies.

This is the button to use when you want to cite a wiki article (e.g. Orthonormality); to cite a source (a book, an article, a webpage), use the item page or the source's page instead.

Copy an internal mention of a page

The same toolbar carries a Copy internal mention button. It copies a plain internal link to the page, e.g. [[Main Page]] (in the Main namespace the first letter is lower-cased unless the title is a proper name, so e.g. [[classical mechanics]]), ready to paste anywhere on the wiki.

On the classic per-kind pages (Source:, Person:, Collective:, FOSS:, Software:) the button copies a piped link to the entity's page with its display name, e.g. [[Source:Beloved (Book)|Beloved]] (italic on Source: pages).

Copy the internal citation from a Source: page

The human-facing page of a source — the Source: page (e.g. Source:Ada Lovelace (Book)) — carries a Copy internal citation button under its title. Clicking it copies the wikitext snippet

<ref>{{#cite:Q42}}</ref>

with the right Q-number for that source, ready to paste into the article you are writing — exactly the hand-typed syntax described above. The button appears on every Source: page that is linked to its item, and also on the Item page of any source item (/wiki/Item:Q1 — the same toolbar row as Copy citation / Copy embed code). Items of source type therefore offer the internal-citation snippet from both surfaces; this matters most for sources without a Source: page at all (a book excerpt is part of a book and never gets its own page — its Item page is where you copy its internal citation from).

The Item-page toolbar's Copy embed code button (for quotable content items — quotations, code snippets, mathematical expressions) offers a choice when clicked: Internal (on-wiki) copies the {{#content:Q42}} parser-function wikitext to show the content inline on any wiki page, External (iframe) copies the <iframe> of Special:Embed for third-party sites. Pick a flavour and it is copied to the clipboard.

Legal sources are entity items, not Source: pages. The law corpus is the offline, versioned Special:Law view built from the official DILA open data:

  • FR legislation: LEGI codes, plus the constitutional bloc (Constitution du 4 octobre 1958, DDHC 1789, Preamble 1946, Charte de l'environnement law).
  • FR case law: Conseil constitutionnel decisions (CONSTIT), Cour de cassation + Tribunal des conflits (CASS), published Conseil d'État / CAA / TA decisions (JADE publie).
  • The EU corpus is not imported yet.
  • Browse or search: Special:Law; one law/decision at Special:Law/<law_key>; one unit at Special:Law/<law_key>/<article>.
  • Cite a unit exactly like any other source: <ref>{{#cite:Qxx}}</ref>. The footnote links to Special:Law, not to a Source: page.
  • Special:AddSource/law redirects to Special:Law. The citable item is created on first citation (the Cite button, law-cite); no Source: page is created.
  • Legislation provisions carry part of the law, the reference code and the clause text; the law item carries legislation number. APA/Vancouver render Article <n>, in <law>, <official id>.
  • Court decisions are cited as their legal case item (there is no provision child). The item carries court, case number, the decision date and legal identifier; APA/Vancouver render the French case citation (e.g. « Conseil constitutionnel, décision n° 85-197 DC du 23 août 1985. »). law-cite accepts no article for a decision.
  • Existing manual legal items are reused (e.g. Q2021 Code de l'éducation, Q2074 for L111-1); their footnotes resolve to Special:Law too.

Reference codes

Corpus law-get article
Codes / constitutional texts 24, L111-1 (the Article prefix and spaces/underscores are normalized)
Conseil constitutionnel considérant 1…N, or visas / dispositif
Cour de cassation / Tribunal des conflits arrêt, avis, ordonnance or décision
JADE décision

Finding a source

law-search matches a title prefix first (searching Constitution returns the 1958 and 1946 texts, not the decisions whose short title contains the word), then falls back to the official number, the law key, the short title and the NOR. Use the official number (85-197), the key (LEGITEXT…, CONSTEXT…, JURITEXT…, CETATEXT…) or the title. law-get accepts the human form (Article 24) and the stored code (24).

Known gaps: the EU corpus is deferred (EU Login / full EUR-Lex dump); JADE inedit is not imported; the 1946 full text and the Charte's 10 articles are not separate article rows. The EU and inedit sources therefore still return « not verified ».

See also

Author-year mentions

Write a Source link with the literal label name-author:

[[Source:Q123|name-author]]

The page renders the source's current authors and year as an italic caption, e.g. Lovelace (1843). The author count bounds the caption: one author renders Family (Year), two or three render Family1-Family2[-Family3] (Year), and four or more render Family1 et al. (Year) (so a long author list does not flood the page). The caption is derived from the Source item's attributed to authors and date at render time, so correcting the item updates every mention without editing the pages. If the item has no author or date, the link falls back to the italic page title.

This is the internal-mention form; it is not a citation and does not create a footnote. Use <ref>{{#cite:Q123}}</ref> for a reference, and the internal citation copy when a Source-page citation is wanted.