Wikipedia:Advanced footnote formatting: Difference between revisions

Content deleted Content added
m lang="wikitext" for Pygments 2.15 upgrade
m <syntaxhighlight lang="wikitext">
 
Line 9:
__TOC__
Also, indentation and line-splitting can be used, such as for long URL webpage names, when coding footnotes in an article. For example:
<syntaxhighlight lang="wikitext">
<pre>
In [[digital imaging]], a pixel<ref>
Rudolf F. Graf, ''Modern Dictionary of Electronics'',
Line 15:
Google Books (''see below:'' References).</ref>
(or picture element) is the smallest part of an image.
</syntaxhighlight>
</pre>
In the above example, each part of the ref-tag footnote is indented (3 spaces) from the left margin. Due to a Wikipedia quirk, the first footnote on a page cannot be indented, because it is treated as a quotebox.
 
Line 27:
 
The footnote's superscript <small>"[p]"</small> can be coded by just a short wikilink: <nowiki><sup>[[#Notes|[p]&nbsp;]]</sup></nowiki>. The full, detailed content of that footnote text is not at the top of the article but, instead, is coded within the section named "Notes", thus shifting all that text into the Notes section, and deferring details away from the main text of an article. The ''Notes'' section could be coded as:
<syntaxhighlight lang="htmlwikitext">
==Notes==
<div style="font-size:89%">
Line 87:
Because of a Wikipedia formatting quirk, the first footnote on a page might be treated as a quotebox when indented (as during May 2009). However, the indentation can be simulated, by line-splitting with HTML comments, between all lines within &lt;ref>....&lt;/ref>:
 
<syntaxhighlight lang="xmlwikitext" style="text-size:70;">
In digital imaging, a pixel<ref><!--
-->R. Graf, ''Modern Dictionary of<!--
Line 109:
==Deferring details==
Another major technique for clarifying text, containing many footnotes, is to defer the footnote details to later parts of the article, such as using named ref-tags and putting "see: External links" for URLs. For example, listing 3 footnotes:
<syntaxhighlight lang="xmlwikitext">
In digital imaging, a pixel<ref name=MD/><ref name=AD/><ref name=DE/>
(or picture element) is the smallest part of an image. The word