Template:Broken ref
().
This template is used in many system messages, and on approximately 51,000 pages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
This template uses TemplateStyles: |
Cite is the software extension for the footnotes system. Cite.php includes error checking and generates error messages using MediaWiki interface messages. When Cite.php encounters an error, it generates a message pulled from a MediaWiki interface page. The MediaWiki pages are customized to use {{Broken ref}} to control the display of the error message and to add a category. {{Broken ref}} uses namespace detection to choose whether pages are categorized or not and if error messages show or not.
Namespaces
This template causes error messages to show only in certain namespaces. Category sorting is set by a sortkey in the template.
Namespace | Sortkey | Uppercase |
---|---|---|
main (article) | alphabetic | |
category | γ | Γ |
template | τ | Τ |
file | ι | Ι |
help | ω | Ω |
portal | ρ | Ρ |
wikipedia | ψ | Ψ |
draft | δ | Δ |
Errors on talk and other pages do not show by default but can be enabled by adding a rule to your CSS:
.mw-parser-output span.brokenref {
display: inline;
}
Categories
The template causes pages that show and error to be placed in a maintenance category. Pages in these categories are then repaired by editors. Errors on talk and other pages do not add the category. Category management is done through {{broken ref/cat}}.
- Category:Pages with citation errors: main category.
Parameters
Error messages use:
|msg=
text of the error message|lang=
language using ISO code|help=
subpagename of help page. This parameter is also used to determine the category by Template:Broken ref/cat.|nocat=
set to 'true' to suppress the category and thebrokenref
class; use when transcluding the WikiMedia interface page for documentation purposes
Prefix interface pages use:
|prefix=
text that precedes the message|lang=
language using ISO code
Examples
Use the following example when editing MediaWiki error message pages:
{{broken ref |msg=The <code><ref></code> tag has too many names |lang=en |help=Cite error ref too many keys |nocat={{{nocat|}}} }}
By including |nocat={{{nocat|}}}
, the |nocat=
parameter can be passed to {{broken ref}}.
Transcluding error messages
When creating documentation, the error messages can be transcluded so that the messages are automatically updated. Add |nocat=true
to suppress the error category and the class that hides the error in some namespaces. The message transclusion always adds a hard line break at the end.
Markup | Renders as |
---|---|
{{int:Cite error ref too many keys|nocat=true}} |
Invalid |
To style the text in red to more closely simulate the message, use the {{red}} template.
Markup | Renders as |
---|---|
{{red|{{int:Cite error ref too many keys|nocat=true}}}} |
Invalid |
To style the text to exactly simulate the message, use the {{error}} template.
Markup | Renders as |
---|---|
{{error|{{int:Cite error ref too many keys|nocat=true}}}} |
Invalid |
Languages
These languages are supported. The list of languages is selected from the top uses at Wikipedia:Database reports/User preferences. Language management is done through {{broken ref/lang}}.
- en: English
- es: español
- fr: français
- pt-br: português do Brasil
- ru: русский
- de: Deutsch
- id: Bahasa Indonesia
- ar: العربية
- nl: Nederlands
- zh-cn: 中文(中国大陆)
- ro: română
- it: italiano
- tr: Türkçe
Plus the English variants:
- en-gb: British English
- en-ca: Canadian English
Originally these were transcluded, but not all MediaWiki pages support such transclusion.
Interface pages
Complete list of interface pages by language:
Extended content
|
---|
en: English
ошибочные имена; возможно, их слишком много
элемент без имени должен иметь содержание
имя не может быть целым числом. Используйте описательное название
nama tidak sah; misalnya, terlalu banyak
referensi tanpa nama harus memiliki isi
tidak ditemukan teks untuk ref bernama
nama tidak boleh integer sederhana. Gunakan nama deskriptif
للحصول على تعريف أكثر انظر هذه MediaWiki:$2 الرسالة.
Definiți mai multe etichete în cadrul mesajului MediaWiki:$2.
|