Help:Contributing/quotation: Difference between revisions
Document quotation wikitext / rich media support (via update-page on MediaWiki MCP Server) |
Document the internal {{#content:}} embed + Special:QuotationsOf listing (via update-page on MediaWiki MCP Server) |
||
| Line 42: | Line 42: | ||
== Embedding a quotation == | == Embedding a quotation == | ||
Open the quotation's item page and click '''Copy embed code''' — | Open the quotation's item page and click '''Copy embed code''' — it offers two flavours: | ||
<syntaxhighlight lang="html" inline><iframe src="https://wikibase.ronzz.org/wiki/Special:Embed/Q100" loading="lazy" style="width:100%;border:0;min-height:120px"></iframe></syntaxhighlight> | * '''Internal (on-wiki)''' — <syntaxhighlight lang="wikitext" inline>{{#content:Q100}}</syntaxhighlight>, which renders the quotation inline on any page of this wiki (the page language is negotiated automatically). The quotation's rich media and links render here too. | ||
* '''External (iframe)''' — an <syntaxhighlight lang="html" inline><iframe src="https://wikibase.ronzz.org/wiki/Special:Embed/Q100" loading="lazy" style="width:100%;border:0;min-height:120px"></iframe></syntaxhighlight> snippet for a third-party site. | |||
Multi-language quotations show a language selector next to the embed button: '''Auto''' (the server negotiates), '''All languages''', or one specific language (it applies to the iframe flavour; the internal one negotiates from the embedding page). | |||
== Listing a source's quotations == | |||
All quotations citing a source are listed at [[Special:QuotationsOf]] with the source's id (e.g. <code>Special:QuotationsOf/Q1134</code>), each with its rich content. Source pages show the quotation count automatically and link to the list. | |||
== See also == | == See also == | ||
Revision as of 13:12, 1 October 2026
Quotations are stored as items on this instance and embedded on pages with the embed snippet. Creating one is a two-step flow: add the quotation item, then embed it.
Adding a quotation
Open Special:AddQuotation and fill the form:
| Field | What it is |
|---|---|
| Label | A short title for the quotation (e.g. its first words or a topic). |
| Quotation text | The quotation itself. It is full wikitext — links, emphasis, [[File:…]] media and $…$ math all render. Pick the language of the text in the Language combobox (any of the 500+ Wikibase languages).
|
| Attributed to | The person who said or wrote it — search and pick the entity, or type the item id directly (e.g. Q94).
|
| Source URL | Optional: the page or document the quotation comes from. |
| Source | Optional: the book or article the quotation is cited from (a source item created via Special:AddSource). |
| Date | Optional: when the quotation was made (format YYYY-MM-DD).
|
Saving creates the item and redirects to it.
Rich content (wikitext)
The quotation text is parsed as wikitext, so a quotation can carry the same markup as a page — a link to the author or the work, emphasis, an image that illustrates it, or math:
''Cogito, ergo sum.'' — see [[Item:Q94|René Descartes]]
An image ([[File:Example.png|thumb]]) and inline math ($e^{i\pi}+1=0$) work too. Rich media renders both on Special:QuotationsOf and wherever the quotation is embedded with {{#content:…}}.
Editing a quotation
Open the quotation's item page and click Edit content under the title — or go straight to Special:UpdateQuotation with the item's id (e.g. Special:UpdateQuotation/Q100). The form is the same as adding, prefilled from the item:
- the Quotation text appears exactly as it was entered — multi-line text keeps its line breaks;
- the language, attribution and source fields carry the current values.
Change what you need and click Update item. Fields you leave blank keep their existing values — the item's class never changes.
Embedding a quotation
Open the quotation's item page and click Copy embed code — it offers two flavours:
- Internal (on-wiki) —
{{#content:Q100}}, which renders the quotation inline on any page of this wiki (the page language is negotiated automatically). The quotation's rich media and links render here too. - External (iframe) — an
<iframe src="https://wikibase.ronzz.org/wiki/Special:Embed/Q100" loading="lazy" style="width:100%;border:0;min-height:120px"></iframe>snippet for a third-party site.
Multi-language quotations show a language selector next to the embed button: Auto (the server negotiates), All languages, or one specific language (it applies to the iframe flavour; the internal one negotiates from the embedding page).
Listing a source's quotations
All quotations citing a source are listed at Special:QuotationsOf with the source's id (e.g. Special:QuotationsOf/Q1134), each with its rich content. Source pages show the quotation count automatically and link to the list.
See also
- Help:Contributing/math — adding and editing mathematical expressions
- Help:Contributing/code — code blocks, syntax highlighting, and editing code snippets
- Help:Contributing — the hub