Wikipedia:Advanced footnote formatting: Difference between revisions

Content deleted Content added
updated for 2018, as ~10 years after essay was begun
Indenting and line-splitting: re-split examples of {cite book} & ref-tag to fit smaller screens
Line 77:
<source lang="xml+jinja">
In [[digital imaging]], a '''pixel'''<ref>{{Cite book
| author=Rudolf F. Graf | date=1999 | publisher=Newnes
| title=Modern Dictionary of Electronics
| publisher=Newnes | ___location=Oxford
| isbn=0-7506-43315 | page=page 569
| url=http://books.google.com/books?id=o2I1JWPpdusC&<!--
-->id=o2I1JWPpdusC&pg=PA569&dq=pixel<!--
-->+intitle:%22Modern+Dictionary<!--
-->+of+Electronics%22+inauthor:graf&<!--
-->lr=&as_brr=0&ei=5ygASM3qHoSgiwH45-GIDA&<!--
-->GIDA&sig=7tg-LuGdu6Njypaawi2bbkeq8pw}}</ref>
(or picture element) is the smallest part of an image.
</source>
Note the above line-splitting of the 56-line URL (for the webpage in Google Books) uses the [[HTML]] comment tokens "&lt;!--" 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 "&lt;!--" 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.
 
Similar indentation has been used for many decades, as in coding for [[computer programming]], to visually separate sections of text. The indented lines typically reflect a lower-level of details (or lower-level of ''"[[abstraction]]"'' ) than the level of the outer lines. Indenting the footnote coding can help clarify sections of text that contain several footnotes, as is typical in large articles.
Line 98 ⟶ 100:
<source lang="xml">
In [[digital imaging]], a pixel<ref><!--
-->Rudolf F. Graf, ''Modern Dictionary of Electronics'',<!--
-->1999, NewnesElectronics'', Oxford1999, page 569, ISBN 0-7506-43315,Newnes.<!--
-->Googlepage Books569, (''seeISBN below:'' References)0-7506-43315.</ref>!--
-->Google Books (''see:'' References).</ref>
(or picture element) is the smallest part of an image.
</source>