Wikipedia:Advanced footnote formatting: Difference between revisions
Content deleted Content added
m change source to syntaxhighlight |
|||
Line 27:
The footnote's superscript <small>"[p]"</small> can be coded by just a short wikilink: <nowiki><sup>[[#Notes|[p] ]]</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:
<
==Notes==
<div style="font-size:89%">
Line 33:
</div>
<references/><!--Show numbered footnotes from <ref> tags. -->
</syntaxhighlight>
Since the actual footnote text (of a remote footnote) is written at the bottom of an article page, there is ample space to also compare formal versus local pronunciations of town names, without cluttering an article's top text.
Line 76:
<div style="width:auto; overflow:scroll">
<
In [[digital imaging]], a '''pixel'''<ref>{{Cite book
| author=Rudolf Graf | date=1999
Line 89:
-->GIDA&sig=7tg-LuGdu6Njypaawi2bbkeq8pw }}</ref>
(or picture element) is the smallest part of an image.
</
Note the above line-splitting of the 6-line URL (for the webpage in Google Books) uses the [[HTML]] comment tokens "<!--" and "-->". Each part of the footnote coding is placed on a separate line, thereby allowing each part to be indented from the lefthand side. There must be no spaces added to the URL (which is a single string of characters where spaces are coded "%20"). Do not add spaces before "<!--" or after "-->" within the URL. However, when splitting an ''italicized phrase'' or long wikilink ("<nowiki>[[xx xx xx]]</nowiki>"), consider putting a space after "-->" on the 2nd line.
Line 99:
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 <ref>....</ref>:
<
In digital imaging, a pixel<ref><!--
-->R. Graf, ''Modern Dictionary of<!--
Line 106:
-->Google Books (see: References).</ref>
(or picture element) is the smallest part of an image.
</syntaxhighlight>
The above line-splitting of the entire footnote text, into 4 lines, allows it to be coded as the first footnote of a page. Note that the first footnote might be in an infobox, appearing at the top of a page.
Line 121:
==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:
<
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
Line 133:
Disco Dave Citizen, ''Disco Electronics Dictionary'',
1978, page 340 (''see below:'' External links).</ref>
</syntaxhighlight>
In the above example, the 3 footnotes are reduced to just short ref-name tags at first, then later expanded to show more details. However, they defer the extreme details for publisher, ISBN, and webpage-URL links to be contained as entries under "External links". Using that advanced method, no publisher names, ISBN numbers or long URL names appear in the upper article text for those 3 footnotes.
|