<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AReference_display_customization</id>
	<title>Help:Reference display customization - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AReference_display_customization"/>
	<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Help:Reference_display_customization&amp;action=history"/>
	<updated>2026-04-06T08:47:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://mindpowe.red/wiki/index.php?title=Help:Reference_display_customization&amp;diff=1295&amp;oldid=prev</id>
		<title>imported&gt;WOSlinker: change source to syntaxhighlight</title>
		<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Help:Reference_display_customization&amp;diff=1295&amp;oldid=prev"/>
		<updated>2020-05-25T20:31:50Z</updated>

		<summary type="html">&lt;p&gt;change source to syntaxhighlight&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wikipedia how to}}&lt;br /&gt;
You can customize how inline citations and reference lists appear to you when you are logged into your account by adding any of these rules to [[Special:MyPage/skin.css|your CSS]]. After editing, [[WP:BYPASS|bypass your cache]].&lt;br /&gt;
&lt;br /&gt;
==Reference list==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Set the font size for reference lists */&lt;br /&gt;
ol.references,&lt;br /&gt;
div.reflist,&lt;br /&gt;
div.refbegin {&lt;br /&gt;
  font-size: 90%;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:Change 90% to the desired size. See also [[Special:Preferences]] → Gadgets → Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Suppress display of the reference list */&lt;br /&gt;
ol.references {&lt;br /&gt;
  display: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Highlight clicked reference in blue to help navigation */&lt;br /&gt;
ol.references li:target,&lt;br /&gt;
sup.reference:target,&lt;br /&gt;
span.citation:target {&lt;br /&gt;
  background-color: #DEF;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:See [[web colors]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Reference list in a box with a scrollbar */&lt;br /&gt;
@media screen {&lt;br /&gt;
  div.reflist {&lt;br /&gt;
    overflow-x: hidden;&lt;br /&gt;
    overflow-y: auto;&lt;br /&gt;
    padding-right: 0.5em;&lt;br /&gt;
    max-height: 320px;&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Disable columns for {{reflist}} and {{refbegin}} */&lt;br /&gt;
.references-column-count, .references-column-width {&lt;br /&gt;
  column-count: 1 !important;&lt;br /&gt;
  column-width: auto !important;&lt;br /&gt;
  -moz-column-count: 1 !important;&lt;br /&gt;
  -moz-column-width: auto !important;&lt;br /&gt;
  -webkit-column-count: 1 !important;&lt;br /&gt;
  -webkit-column-width: auto !important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:To set a fixed number of columns, change &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; to the desired number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Add dividers (rules) between columns */&lt;br /&gt;
.references-column-count, .references-column-width {&lt;br /&gt;
  column-rule: 1px solid #aaa;&lt;br /&gt;
  -moz-column-rule: 1px solid #aaa;&lt;br /&gt;
  -webkit-column-rule: 1px solid #aaa;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:You can alter the appearance of the dividers by changing the values.&lt;br /&gt;
&lt;br /&gt;
To show the reference list in a collapsible box, see [[User:TheDJ/Folded references]].&lt;br /&gt;
&lt;br /&gt;
==In-text cites==&lt;br /&gt;
&lt;br /&gt;
Hide in-text footnote markers:&lt;br /&gt;
&lt;br /&gt;
Edit {{yourjs}} and add:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{subst:iusc|User:Zhaofeng Li/RefToggle.js}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Keep reference superscript and subscript text from breaking the line-spacing&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
#content sup.reference {&lt;br /&gt;
  vertical-align: baseline;&lt;br /&gt;
  _vertical-align: bottom;&lt;br /&gt;
  position: relative;&lt;br /&gt;
  bottom: 0.33em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#content sub.reference {&lt;br /&gt;
  vertical-align: baseline;&lt;br /&gt;
  _vertical-align: bottom;&lt;br /&gt;
  position: relative;&lt;br /&gt;
  bottom: -0.25em;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This fixes a cosmetic issue with Internet Explorer where a wikilink followed immediately by an in-text cite may cause the link and cite to be underlined together; not supported by IE6 and IE7&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Add a zero-width space before the in-text citation */&lt;br /&gt;
sup.reference:before {&lt;br /&gt;
  content: &amp;quot;\200B&amp;quot;; text-decoration: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will join the in-text cite to the preceding text, preventing it from wrapping; it does not add a space; does not work for Internet Explorer&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Add a zero-width joiner before the in-text citation */&lt;br /&gt;
sup.reference:before {&lt;br /&gt;
  content: &amp;quot;\200D&amp;quot;; text-decoration: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will join the in-text cite to the preceding text, preventing it from wrapping; a space will show between the text and the in-text cite; not supported by IE6 and IE7&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Add a non-breaking space before the in-text citation */&lt;br /&gt;
sup.reference:before {&lt;br /&gt;
  content: &amp;quot;\A0&amp;quot;; text-decoration: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hide the brackets for the inline cite&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Hide the brackets for the inline cite */&lt;br /&gt;
sup.reference a span {&lt;br /&gt;
  display: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hide in-text cites&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Hide in-text cites */&lt;br /&gt;
.reference {&lt;br /&gt;
  display: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Larger, bolder in-text citations&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Larger, bolder in-text citations */&lt;br /&gt;
p sup.reference a {&lt;br /&gt;
  font-weight: bold;&lt;br /&gt;
  font-size: 140% !important;&lt;br /&gt;
  color: #55C !important;&lt;br /&gt;
  background: #FFF !important;&lt;br /&gt;
}&lt;br /&gt;
hover sup.reference a {&lt;br /&gt;
  background: #FFFF00 !important;&lt;br /&gt;
  color: #1010FF !important;&lt;br /&gt;
}&lt;br /&gt;
hover sup.reference a:visited {&lt;br /&gt;
  color: #5A3696 !important;&lt;br /&gt;
}&lt;br /&gt;
hover sup.reference a:active {&lt;br /&gt;
  color: #FAA700 !important;&lt;br /&gt;
  background: #0808F8 !important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Inconspicuous in-text citations&lt;br /&gt;
&lt;br /&gt;
The :before and :after pseudo-elements are not supported by IE6 and IE7&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* inconspicuous in-text citations */&lt;br /&gt;
sup.reference {&lt;br /&gt;
  white-space: nowrap;&lt;br /&gt;
}&lt;br /&gt;
sup.reference a {&lt;br /&gt;
  font-size: 0.85em;&lt;br /&gt;
  font-weight: lighter&lt;br /&gt;
}&lt;br /&gt;
sup.reference:after {&lt;br /&gt;
  content: ' '; /* non-break space after cites */&lt;br /&gt;
  text-decoration: none;&lt;br /&gt;
}&lt;br /&gt;
sup.reference a span {&lt;br /&gt;
  display: none; /* hide the brackets */&lt;br /&gt;
}&lt;br /&gt;
p sup.reference a,&lt;br /&gt;
tr sup.reference a,&lt;br /&gt;
caption sup.reference a,&lt;br /&gt;
ol sup.reference a,&lt;br /&gt;
ul sup.reference a,&lt;br /&gt;
dl sup.reference a {&lt;br /&gt;
  color: black;&lt;br /&gt;
}&lt;br /&gt;
p:hover sup.reference a,&lt;br /&gt;
tr:hover sup.reference a,&lt;br /&gt;
caption:hover sup.reference a,&lt;br /&gt;
ol:hover sup.reference a,&lt;br /&gt;
ul:hover sup.reference a,&lt;br /&gt;
dl:hover sup.reference a {&lt;br /&gt;
  color: rgb(0, 43, 184);&lt;br /&gt;
  text-decoration: underline;&lt;br /&gt;
}&lt;br /&gt;
p:hover sup.reference a:visited,&lt;br /&gt;
tr:hover sup.reference a:visited,&lt;br /&gt;
caption:hover sup.reference a:visited,&lt;br /&gt;
ol:hover sup.reference a:visited,&lt;br /&gt;
ul:hover sup.reference a:visited,&lt;br /&gt;
dl:hover sup.reference a:visited {&lt;br /&gt;
  color: #5A3696;&lt;br /&gt;
}&lt;br /&gt;
p:hover sup.reference a:hover,&lt;br /&gt;
tr:hover sup.reference a:hover,&lt;br /&gt;
caption:hover sup.reference a:hover,&lt;br /&gt;
ol:hover sup.reference a:hover,&lt;br /&gt;
ul:hover sup.reference a:hover,&lt;br /&gt;
dl:hover sup.reference a:hover {&lt;br /&gt;
  color: #002BB8;&lt;br /&gt;
}&lt;br /&gt;
p:hover sup.reference a:active,&lt;br /&gt;
tr:hover sup.reference a:active,&lt;br /&gt;
caption:hover sup.reference a:active&lt;br /&gt;
ol:hover sup.reference a:active,&lt;br /&gt;
ul:hover sup.reference a:active,&lt;br /&gt;
dl:hover sup.reference a:active {&lt;br /&gt;
  color: #FAA700;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Popups==&lt;br /&gt;
To add popups for the in-text citation that show the full citation, see [[User:Blue-Haired Lawyer/Footnote popups]].&lt;br /&gt;
&lt;br /&gt;
Also, the Gadget at [[Special:Preferences#mw-prefsection-gadgets]]-&amp;gt;Browsing-&amp;gt;Reference Tooltips.&lt;br /&gt;
&lt;br /&gt;
==Error messages==&lt;br /&gt;
By default error messages only show for article, user, template, category, help and file pages. Errors do not show on talk, wikipedia, mediawiki, portal and book unless enabled:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/*show cite errors on all pages*/&lt;br /&gt;
span.brokenref {&lt;br /&gt;
  display: inline;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additionally, in the Article namespace citation templates suppress non-fatal errors by default. These messages can be made visible using:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
.mw-parser-output span.cs1-hidden-error { display: inline; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Wikipedia referencing}}&lt;/div&gt;</summary>
		<author><name>imported&gt;WOSlinker</name></author>
		
	</entry>
</feed>