Help:Contributing: Difference between revisions
Appearance
Document the Category:Proper name case rule and automatic section anchors (via update-page on MediaWiki MCP Server) |
Add section: note the post-save scroll to the new section (Oct 2026 Add* UX batch) (via update-page on MediaWiki MCP Server) |
||
| Line 13: | Line 13: | ||
* '''Copy internal mention''' (content pages) — every ordinary content page shows a '''Copy internal mention''' button next to its title; it copies <code>[[Page name]]</code> to the clipboard, ready to paste as a link to the page anywhere on the wiki. In the Main namespace the first letter is lower-cased (sentence case) unless the page is in <code>[[:Category:Proper name|Category:Proper name]]</code> — add that hidden category when the title is a proper name (<code>[[Main Page]]</code> stays capitalised; <code>[[Permutation]]</code> becomes <code>[[permutation]]</code>). (File pages have their own "Copy internal embed code" button for <code>[[File:…]]</code>.) | * '''Copy internal mention''' (content pages) — every ordinary content page shows a '''Copy internal mention''' button next to its title; it copies <code>[[Page name]]</code> to the clipboard, ready to paste as a link to the page anywhere on the wiki. In the Main namespace the first letter is lower-cased (sentence case) unless the page is in <code>[[:Category:Proper name|Category:Proper name]]</code> — add that hidden category when the title is a proper name (<code>[[Main Page]]</code> stays capitalised; <code>[[Permutation]]</code> becomes <code>[[permutation]]</code>). (File pages have their own "Copy internal embed code" button for <code>[[File:…]]</code>.) | ||
* '''Per-section actions''' — next to every heading's <code>[edit]</code> link sit four further controls, each in its own pair of brackets: <code>[Copy internal mention]</code> (copies <code>[[Page#section|</code> — add your own display text after the final pipe), <code>[Copy URL]</code> (the section's absolute web address), <code>[Add section below]</code> (opens the append editor for that section) and <code>[Delete section]</code> (confirms, then removes the section and everything in it). The mention and URL use the heading's automatic anchor: a heading containing math stays linkable because the <code>$…$</code> math is dropped from the anchor (a math-only heading keeps it), and fragment-illegal characters become <code>_</code>. An explicit <syntaxhighlight lang="text" inline>{{anchor|Name}}</syntaxhighlight> overrides it. See [[Help:Contributing/links#Links to sections|Links to sections]]. | * '''Per-section actions''' — next to every heading's <code>[edit]</code> link sit four further controls, each in its own pair of brackets: <code>[Copy internal mention]</code> (copies <code>[[Page#section|</code> — add your own display text after the final pipe), <code>[Copy URL]</code> (the section's absolute web address), <code>[Add section below]</code> (opens the append editor for that section) and <code>[Delete section]</code> (confirms, then removes the section and everything in it). The mention and URL use the heading's automatic anchor: a heading containing math stays linkable because the <code>$…$</code> math is dropped from the anchor (a math-only heading keeps it), and fragment-illegal characters become <code>_</code>. An explicit <syntaxhighlight lang="text" inline>{{anchor|Name}}</syntaxhighlight> overrides it. See [[Help:Contributing/links#Links to sections|Links to sections]]. | ||
* '''Add section / Add section below''' — the page-wide '''Add section''' action (next to '''Edit'''), and each section's <code>[Add section below]</code>, 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. | * '''Add section / Add section below''' — the page-wide '''Add section''' action (next to '''Edit'''), and each section's <code>[Add section below]</code>, 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. On save, the page opens at the section you just added — your block's first heading, or the target section's heading when the block has no heading of its own. | ||
* '''Copy internal mention''' (entity pages) — the per-entity pages (<code>Source:</code>, <code>Person:</code>, <code>Collective:</code>, <code>FOSS:</code>, <code>Software:</code>) 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 — <code>[[Page name|Label]]</code>, italic on Source: pages, e.g. <code>''[[Source:Beloved (Book)|Beloved]]''</code>. | * '''Copy internal mention''' (entity pages) — the per-entity pages (<code>Source:</code>, <code>Person:</code>, <code>Collective:</code>, <code>FOSS:</code>, <code>Software:</code>) 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 — <code>[[Page name|Label]]</code>, italic on Source: pages, e.g. <code>''[[Source:Beloved (Book)|Beloved]]''</code>. | ||
* '''Userspace page titles''' — a page under <code>User:</code>, such as <code>User:Rongzhou/Pretty good Linux</code>, displays as '''Pretty good Linux by @Rongzhou''', with <code>@Rongzhou</code> linking to [[User:Rongzhou]]. The real title is unchanged for links, history and '''Copy internal mention''' (<code>[[User:Rongzhou/Pretty good Linux]]</code>); the root <code>User:Rongzhou</code> page keeps its normal title. | * '''Userspace page titles''' — a page under <code>User:</code>, such as <code>User:Rongzhou/Pretty good Linux</code>, displays as '''Pretty good Linux by @Rongzhou''', with <code>@Rongzhou</code> linking to [[User:Rongzhou]]. The real title is unchanged for links, history and '''Copy internal mention''' (<code>[[User:Rongzhou/Pretty good Linux]]</code>); the root <code>User:Rongzhou</code> page keeps its normal title. | ||
Revision as of 10:14, 31 October 2026
Access and accounts
- Who can do what — logging in, getting an account
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 nameto the clipboard, ready to paste as a link to the page anywhere on the wiki. In the Main namespace the first letter is lower-cased (sentence case) unless the page is inCategory:Proper name— add that hidden category when the title is a proper name (Main Pagestays capitalised;Permutationbecomespermutation). (File pages have their own "Copy internal embed code" button forFile:….) - 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). The mention and URL use the heading's automatic anchor: a heading containing math stays linkable because the$…$math is dropped from the anchor (a math-only heading keeps it), and fragment-illegal characters become_. An explicit{{anchor|Name}}overrides it. See Links to sections. - Add section / Add section below — the page-wide Add section action (next to Edit), 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. On save, the page opens at the section you just added — your block's first heading, or the target section's heading when the block has no heading of its own. - 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. - Userspace page titles — a page under
User:, such asUser:Rongzhou/Pretty good Linux, displays as Pretty good Linux by @Rongzhou, with@Rongzhoulinking to User:Rongzhou. The real title is unchanged for links, history and Copy internal mention (User:Rongzhou/Pretty good Linux); the rootUser:Rongzhoupage keeps its normal title. - Subpages — a
/in a title creates a hierarchy, with a breadcrumb back to the parent. Subpages are enabled in every namespace, including the main one:Matrix/Practice/Matrix_multiplicationis a subpage ofMatrix/Practice, itself a subpage ofMatrix. Create the parent page if it does not exist yet — the breadcrumb only links ancestors that exist (example: Cheatsheet: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/ReportsuggestsRongzhou_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
- Help:Contributing/quotation — adding and embedding quotations
Add diagrams
- Help:Contributing/diagrams — PlantUML, GraphViz, Mscgen and Mermaid diagrams, written in the page text
Create dynamic content based on semantic data
Cite sources
Create templates to reduce content duplication
Working with semantic data
- Items and properties — the data model, creating and editing entities, statements, merging and deleting
- Importing from external authorities — fetch authors, sources and collectives from public services
- Querying with SPARQL — analyse the data with the query service
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
- API and bulk editing — scripting and batch tools
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
Ringfinds2.2: Rings (Webpage)(Q2204) even though the label starts with2.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
Itemkeeps only that namespace's results. - The entity comboboxes on the Add\*/Update\*/Special:Upload forms use the same full-text matching, so
AGPLfindsGNU AGPL-3.0andEinsteinfindsAlbert 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.