Jump to content

Help:Contributing: Difference between revisions

From Wikibase
Document the section-only preview and the print PDF filename (via update-page on MediaWiki MCP Server)
Add a finding items/pages search section (via update-page on MediaWiki MCP Server)
Line 84: Line 84:


* [[Help:Contributing/api|API and bulk editing]] — scripting and batch tools
* [[Help:Contributing/api|API and bulk editing]] — scripting and batch tools
== Finding items and pages ==
The search box searches classic page text. '''Wikibase items are different''': an <code>Item:</code> page carries no page text, so its label cannot be found by a normal text search. The results page therefore adds an '''Items''' section below the page results.
* Type any fragment of an item label or alias — the match is '''case-insensitive and anywhere in the label''' (not prefix-only). Searching <code>Ring</code> finds <code>2.2: Rings (Webpage)</code> (Q2204) even though the label starts with <code>2.2:</code>.
* The section shows the item's label, description and a link to its item page. It appears for the default/all search and for the normal full-text results page; a search restricted to a namespace that does not include <code>Item</code> keeps only that namespace's results.
* The '''entity comboboxes''' on the Add\*/Update\*/[[Special:Upload]] forms use the same full-text matching, so <code>AGPL</code> finds <code>GNU AGPL-3.0</code> and <code>Einstein</code> finds <code>Albert Einstein</code>.
* Item labels are stored in the item's terms, not in page text; the local site has no CirrusSearch/Elasticsearch. The Items section reads the term store directly.

Revision as of 16:41, 17 October 2026

Languages: English · français · Esperanto

Access and accounts

Contributing to classic wiki pages

Page management: creating, moving, deleting pages

  • Creating a new page
  • Moving a page
  • Deleting/recovering a page
  • Copy internal mention (content pages) — every ordinary content page shows a Copy internal mention button next to its title; it copies Page name to the clipboard, ready to paste as a link to the page anywhere on the wiki. (File pages have their own "Copy internal embed code" button for File:….)
  • Per-section actions — next to every heading's [edit] link sit four further controls, each in its own pair of brackets: [Copy internal mention] (copies [[Page#section| — add your own display text after the final pipe), [Copy URL] (the section's absolute web address), [Add section below] (opens the append editor for that section) and [Delete section] (confirms, then removes the section and everything in it). See Links to sections.
  • Add section / Add section below — the page actions' Add section, and each section's [Add section below], open the ordinary wikitext editor (the same toolbar as Edit, plus a Preview button) with no subject field and no minor-edit checkbox. The save appends your wikitext — to the end of the page, or to the end of the chosen section — without creating a heading. Leave the Summary blank and it is filled in from the first heading of your content. Show preview renders only the typed block (the section being added), matching core's section editor; Show changes and Save use the whole assembled page.
  • Copy internal mention (entity pages) — the per-entity pages (Source:, Person:, Collective:, FOSS:, Software:) show a Copy internal mention button in their toolbar (to the right of Copy internal citation on Source: pages). It copies a piped link to the page — Label, italic on Source: pages, e.g. Beloved.
  • Subpages — a / in a title creates a hierarchy (e.g. Cheatsheets:LinuxCLI/ssh is a subpage of Cheatsheets:LinuxCLI), with a breadcrumb back to the parent. Subpages are enabled in every namespace except the main one. Create the parent page if it does not exist yet — the breadcrumb only links ancestors that exist (example: Cheatsheets:LinuxCLI).
  • Printing a page — the sidebar's Printable version link and the Print this page button — which now sits in the page's own toolbar row, beside the other page actions — open a print dialog where you can optionally add a cover page. The printed title drops the namespace and the subpage prefix (User:Rongzhou/Construction site visit report prints as Construction site visit report), the page's editors are printed centred below the title (by A, B, and C), and the site navigation is left out. The browser's Save as PDF filename is the namespace-stripped full title with spaces and slashes replaced by _ — e.g. User:Rongzhou/Report suggests Rongzhou_Report.pdf.

Creating content

Learning the MediaWiki syntax

The MediaWiki syntax is easy to learn. However, it is unique and can be confusing at first even for editors familiar with markdown and HTML.

To get started:

Write in style

Handle rich media content

Add math

  • Help:Contributing/math — adding and embedding math: inline LaTeX in page text (MathJax) and reusable snippets (KaTeX)

Add quotation

Add diagrams

Create dynamic content based on semantic data

Cite sources

Create templates to reduce content duplication

Working with semantic data

Per namespace guides

Each name space has its own templates, conventions, and good-to-knows. They live under {namespace}:Contributing. (e.g., FOSS:Contributing)

Discuss on the forum

  • Forum — multi-thread discussions for editorial and instance-dev plans

House rules

API and bulk editing

Finding items and pages

The search box searches classic page text. Wikibase items are different: an Item: page carries no page text, so its label cannot be found by a normal text search. The results page therefore adds an Items section below the page results.

  • Type any fragment of an item label or alias — the match is case-insensitive and anywhere in the label (not prefix-only). Searching Ring finds 2.2: Rings (Webpage) (Q2204) even though the label starts with 2.2:.
  • The section shows the item's label, description and a link to its item page. It appears for the default/all search and for the normal full-text results page; a search restricted to a namespace that does not include Item keeps only that namespace's results.
  • The entity comboboxes on the Add\*/Update\*/Special:Upload forms use the same full-text matching, so AGPL finds GNU AGPL-3.0 and Einstein finds Albert Einstein.
  • Item labels are stored in the item's terms, not in page text; the local site has no CirrusSearch/Elasticsearch. The Items section reads the term store directly.