<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://capipedia.cap.gov/index.php?action=history&amp;feed=atom&amp;title=Template%3ABroken_ref%2Fdoc</id>
	<title>Template:Broken ref/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://capipedia.cap.gov/index.php?action=history&amp;feed=atom&amp;title=Template%3ABroken_ref%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Broken_ref/doc&amp;action=history"/>
	<updated>2026-04-20T19:53:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Broken_ref/doc&amp;diff=6739&amp;oldid=prev</id>
		<title>NMcLarty27: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Broken_ref/doc&amp;diff=6739&amp;oldid=prev"/>
		<updated>2024-01-23T18:20:28Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:20, 23 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>NMcLarty27</name></author>
	</entry>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Broken_ref/doc&amp;diff=6738&amp;oldid=prev</id>
		<title>en&gt;Pfold: Stop corrupting this page!</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Broken_ref/doc&amp;diff=6738&amp;oldid=prev"/>
		<updated>2021-10-19T11:28:31Z</updated>

		<summary type="html">&lt;p&gt;Stop corrupting this page!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{about|incorrect &amp;amp;lt;ref&amp;gt; formatting|inaccessible external links|Template:Dead link}}&lt;br /&gt;
{{Documentation subpage}}&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&amp;gt;&lt;br /&gt;
{{Used in system|in many system messages}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Broken ref/styles.css}}&lt;br /&gt;
{{Cite.php}} 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 [[Help:MediaWiki namespace|MediaWiki interface page]]. The MediaWiki pages are customized to use {{tl|Broken ref}} to control the display of the error message and to add a category. {{tl|Broken ref}} uses namespace detection to choose whether pages are categorized or not and if error messages show or not.&lt;br /&gt;
&lt;br /&gt;
==Namespaces==&lt;br /&gt;
This template causes error messages to show only in certain namespaces. Category sorting is set by a sortkey in the template.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=sortkeys /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Namespace !! Sortkey !! Uppercase&lt;br /&gt;
|-&lt;br /&gt;
| main (article) || alphabetic ||&lt;br /&gt;
|-&lt;br /&gt;
| category || γ || {{uc:γ}}&lt;br /&gt;
|-&lt;br /&gt;
| template || τ || {{uc:τ}}&lt;br /&gt;
|-&lt;br /&gt;
| file || ι || {{uc:ι}}&lt;br /&gt;
|-&lt;br /&gt;
| help || ω || {{uc:ω}}&lt;br /&gt;
|-&lt;br /&gt;
| portal || ρ || {{uc:ρ}}&lt;br /&gt;
|-&lt;br /&gt;
| wikipedia || ψ || {{uc:ψ}}&lt;br /&gt;
|-&lt;br /&gt;
| draft || δ || {{uc:δ}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;section end=sortkeys /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{shortcut|H:SHOWCITEERROR}}&lt;br /&gt;
Errors on talk and other pages do not show by default but can be enabled by adding a rule to {{yourcss}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
.mw-parser-output span.brokenref {&lt;br /&gt;
  display: inline;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Categories==&lt;br /&gt;
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 {{tl|broken ref/cat}}.&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Pages with citation errors]]: main category.&lt;br /&gt;
** [[:Category:Pages with incorrect ref formatting]]: default category.&lt;br /&gt;
** [[:Category:Pages with broken reference names]]&lt;br /&gt;
*** [[MediaWiki:Cite error references no text]]&lt;br /&gt;
** [[:Category:Pages with missing references list]]&lt;br /&gt;
*** [[MediaWiki:Cite error group refs without references]]&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
Error messages use:&lt;br /&gt;
* {{para|msg}} text of the error message&lt;br /&gt;
* {{para|lang}} language using ISO code&lt;br /&gt;
* {{para|help}} subpagename of [[Special:PrefixIndex/Help:Cite errors/|help page]]. This parameter is also used to determine the category by [[Template:Broken ref/cat]].&lt;br /&gt;
* {{para|nocat}} set to &amp;#039;true&amp;#039; to suppress the category and the &amp;lt;code&amp;gt;brokenref&amp;lt;/code&amp;gt; class; use when transcluding the WikiMedia interface page for documentation purposes&lt;br /&gt;
&lt;br /&gt;
Prefix interface pages use:&lt;br /&gt;
* {{para|prefix}} text that precedes the message&lt;br /&gt;
* {{para|lang}} language using ISO code&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
Use the following example when editing MediaWiki error message pages:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{broken ref&lt;br /&gt;
|msg=The &amp;lt;code&amp;gt;&amp;amp;lt;ref&amp;amp;gt;&amp;lt;/code&amp;gt; tag has too many names&lt;br /&gt;
|lang=en&lt;br /&gt;
|help=Cite error ref too many keys&lt;br /&gt;
|nocat={{{nocat|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By including {{para|nocat|2=&amp;lt;nowiki&amp;gt;{{{nocat|}}}&amp;lt;/nowiki&amp;gt;}}, the {{para|nocat}} parameter can be passed to {{tl|broken ref}}.&lt;br /&gt;
&lt;br /&gt;
==Transcluding error messages==&lt;br /&gt;
&lt;br /&gt;
When creating documentation, the error messages can be transcluded so that the messages are automatically updated. Add {{para|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.&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{int:Cite error ref too many keys|nocat=true}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|2={{int:Cite error ref too many keys|nocat=true}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
To style the text in red to more closely simulate the message, use the {{tl|red}} template.&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{red|{{int:Cite error ref too many keys|nocat=true}}}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{red|{{int:Cite error ref too many keys|nocat=true}}}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
To style the text to exactly simulate the message, use the {{tl|error}} template.&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{error|{{int:Cite error ref too many keys|nocat=true}}}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{error|{{int:Cite error ref too many keys|nocat=true}}}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Languages==&lt;br /&gt;
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 {{tl|broken ref/lang}}.&lt;br /&gt;
&lt;br /&gt;
*en: {{#language:en}}&lt;br /&gt;
*es: {{#language:es}}&lt;br /&gt;
*fr: {{#language:fr}}&lt;br /&gt;
*pt-br: {{#language:pt-br}}&lt;br /&gt;
*ru: {{#language:ru}}&lt;br /&gt;
*de: {{#language:de}}&lt;br /&gt;
*id: {{#language:id}}&lt;br /&gt;
*ar: {{#language:ar}}&lt;br /&gt;
*nl: {{#language:nl}}&lt;br /&gt;
*zh-cn: {{#language:zh-cn}}&lt;br /&gt;
*ro: {{#language:ro}}&lt;br /&gt;
*it: {{#language:it}}&lt;br /&gt;
*tr: {{#language:tr}}&lt;br /&gt;
&lt;br /&gt;
Plus the English variants:&lt;br /&gt;
* en-gb: {{#language:en-gb}}&lt;br /&gt;
* en-ca: {{#language:en-ca}}&lt;br /&gt;
Originally these were transcluded, but not all MediaWiki pages support such transclusion.&lt;br /&gt;
&lt;br /&gt;
==Interface pages==&lt;br /&gt;
Complete list of interface pages by language:&lt;br /&gt;
{{collapse top}}&lt;br /&gt;
{{broken ref/cite error list|lang=en}}&lt;br /&gt;
{{broken ref/cite error list|lang=en-gb}}&lt;br /&gt;
{{broken ref/cite error list|lang=en-ca}}&lt;br /&gt;
{{broken ref/cite error list|lang=es}}&lt;br /&gt;
{{broken ref/cite error list|lang=fr}}&lt;br /&gt;
{{broken ref/cite error list|lang=pt-br}}&lt;br /&gt;
{{broken ref/cite error list|lang=ru}}&lt;br /&gt;
{{broken ref/cite error list|lang=de}}&lt;br /&gt;
{{broken ref/cite error list|lang=id}}&lt;br /&gt;
{{broken ref/cite error list|lang=ar}}&lt;br /&gt;
{{broken ref/cite error list|lang=nl}}&lt;br /&gt;
{{broken ref/cite error list|lang=zh-cn}}&lt;br /&gt;
{{broken ref/cite error list|lang=ro}}&lt;br /&gt;
{{broken ref/cite error list|lang=it}}&lt;br /&gt;
{{broken ref/cite error list|lang=tr}}&lt;br /&gt;
{{collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --&amp;gt;&lt;br /&gt;
[[Category:Citation and verifiability maintenance templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Pfold</name></author>
	</entry>
</feed>