ಟೆಂಪ್ಲೇಟು:Broken ref
This template is used in system messages, and on approximately ೫೦,೦೦೦ 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. |
Usage
[ಬದಲಾಯಿಸಿ]Cite.php is the software extension for the footnotes system. Cite.php includes error checking for <ref>...</ref>
tags and generates error messages using MediaWiki messages. This template is used to control the namespaces and categories where those messages show.
This template causes error messages to show only on main (article), template, category, help and file pages; the page that triggers the error is placed into a category.
It is possible to extend this template so that each namespace has a custom version of the message that may include a different or no category.
See Help:Cite errors for a full list of the MediaWiki messages.
Parameters
[ಬದಲಾಯಿಸಿ]Error messages use:
|msg=text of the error message
|lang=language using ISO code
|help=name of help page, main title only
|cat=category
|nocat=set to 'true' to suppress the category; 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}}
.
Transluding 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.
Markup | Renders as |
---|---|
{{MediaWiki:Cite error refs without references|nocat=true}} |
|
To style the text in red to more closely simulate the message, use the {{Font}}
template.
Markup | Renders as |
---|---|
{{font|color=red|{{MediaWiki:Cite error refs without references|nocat=true}}}} |
|
Showing cite errors on other pages
[ಬದಲಾಯಿಸಿ]Errors on talk and other pages do not show by default but can be enabled by adding a rule to your CSS:
span.brokenref {
display: inline;
}
This does not add the page to a maintenance category.
Languages
[ಬದಲಾಯಿಸಿ]These languages are supported. The list of languages is selected from the top uses at Wikipedia:Database reports/User preferences.
- 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.
Categories
[ಬದಲಾಯಿಸಿ]- ವರ್ಗ:Pages with citation errors: main category.
- ವರ್ಗ:Pages with incorrect ref formatting: default category.
- ವರ್ಗ:Pages with broken reference names
Interface pages
[ಬದಲಾಯಿಸಿ]Complete list of interface pages by language:
Extended content
|
---|
en: English
nomes inválidos, por exemplo, muito extenso
refs sem nome devem possuir conteúdo
não foi fornecido texto para as refs chamadas
o nome não pode ser um número inteiro. Utilize um título descritivo
Defina mais na mensagem MediaWiki:Cite references link many format backlink labels.
элемент без имени должен иметь содержание
имя не может быть целым числом. Используйте описательное название
referensi tanpa nama harus memiliki isi
tidak ditemukan teks untuk ref bernama
nama tidak boleh integer sederhana. Gunakan nama deskriptif
|