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

ಟೆಂಪ್ಲೇಟು: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.

MarkupRenders 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.

MarkupRenders 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: