Wikipedia:Advanced footnote formatting: Difference between revisions
Content deleted Content added
→Indenting and line-splitting: re-split examples of {cite book} & ref-tag to fit smaller screens |
narrow examples & auto-scroll the long example text to fit smaller handheld devices, by: <div style="width:auto; overflow:scroll"> |
||
Line 75:
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]]:
<div style="width:auto; overflow:scroll">
<source lang="xml+jinja">
</source></div>
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 98 ⟶ 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>:
<source lang="xml" style="text-size:70;">
</source>
The above line-splitting of the entire footnote text, into
==Page numbers==
|