Wikipedia:Advanced footnote formatting: Difference between revisions
Content deleted Content added
m <source> |
|||
Line 8:
__TOC__
Also, indentation and line-splitting can be used, such as for long URL webpage names, when coding footnotes in an article. For example:
<source lang="moin">
▲<pre> In [[digital imaging]], a pixel<ref>
Rudolf F. Graf, ''Modern Dictionary of Electronics'',
1999, Newnes, Oxford, page 569, ISBN 0-7506-43315,
Google Books (''see below:'' References).
(or picture element) is the smallest part of an image.
</
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 ⟶ 26:
The footnote's superscript <small>"[p]"</small> can be coded by just a short wikilink: <nowiki>[[#Notes|<sup>[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:
<source lang="html">
<div style="font-size:89%">
: <small>[p]</small> - ''Dilation'' is pronounced "dy-LAY-shun".
</div>
<references/><!--Show numbered footnotes from <ref> tags. -->
</
Since the actual footnote text (of a remote footnote) is written at the bottom of an article, there is ample space to also compare formal versus local pronunciations of town names, without cluttering an article's top text.
Line 76 ⟶ 74:
A very long footnote can be indented and line-split, as in the following example that uses [[Template:Cite_book]], showing a long URL for a webpage from [[Google Books]]:
<source lang="xml">
| author=Rudolf F. Graf | date=1999 | publisher=Newnes
| title=Modern Dictionary of Electronics | ___location=Oxford
| isbn=0-7506-43315 | page=page 569
| url=http://books.google.com/books?id=o2I1JWPpdusC&
-->pg=PA569&dq=pixel+intitle:%22Modern+Dictionary
-->+of+Electronics%22+inauthor:graf&
-->lr=&as_brr=0&ei=5ygASM3qHoSgiwH45-GIDA&
-->sig=7tg-LuGdu6Njypaawi2bbkeq8pw}}
(or picture element) is the smallest part of an image.
</
Note the above line-splitting of the 5-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.
|