ವಿಷಯಕ್ಕೆ ಹೋಗು

ಟೆಂಪ್ಲೇಟು:Broken ref/doc

ವಿಕಿಪೀಡಿಯದಿಂದ, ಇದು ಮುಕ್ತ ಹಾಗೂ ಸ್ವತಂತ್ರ ವಿಶ್ವಕೋಶ

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.

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

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.

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.
MediaWiki:Cite error references no text
MediaWiki: Cite error refs without references
MediaWiki: Cite error group refs without references
MediaWiki: Cite error references invalid parameters group

Interface pages

[ಬದಲಾಯಿಸಿ]

Complete list of interface pages by language:

Extended content

en: English


en-gb: British English


en-ca: Canadian English


es: Spanish


fr: French


pt-br: Brazilian Portuguese

  • edit: Erro de citação: $1
  • edit: Marca <ref> inválida;

nomes inválidos, por exemplo, muito extenso

  • edit: </ref> de fechamento ausente para a marca <ref>
  • edit: Marca <ref> inválida;

refs sem nome devem possuir conteúdo

  • edit: A tag de abertura <ref> está mal formada ou tem um nome ruim
  • edit: Marca <ref> inválida;

não foi fornecido texto para as refs chamadas $1

  • edit: Marca <ref> inválida;

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.


ru: Russian

  • edit: Ошибка цитирования $1
  • edit: Неверный параметр в теге <ref>
  • edit: Отсутствует закрывающий тег </ref>
  • edit: Неправильный тег <ref>;

элемент без имени должен иметь содержание

  • edit: Открывающий тег <ref> — неправильный или содержит некорректное имя.
  • edit: Неверный тег <ref>; для сносок $1 не указан текст
  • edit: Неправильный тег <ref>;

имя не может быть целым числом. Используйте описательное название


de: German


id: Indonesian

  • edit: Kesalahan pengutipan: $1
  • edit: Parameter dalam tag <ref> tidak sah;
  • edit: Tag <ref> harus ditutup oleh </ref>
  • edit: Tag <ref> tidak sah;

referensi tanpa nama harus memiliki isi

  • edit: Tag <ref> tidak sah atau memiliki nama yang salah.
  • edit: Tag <ref> tidak sah;

tidak ditemukan teks untuk ref bernama $1

  • edit: Tag <ref> tidak sah;

nama tidak boleh integer sederhana. Gunakan nama deskriptif


ar: Arabic


nl: Dutch


zh-cn: Chinese (China)


ro: Romanian


it: Italian


tr: Turkish