Template:Dropcap: Difference between revisions

From Shifti
Jump to navigation Jump to search
m add serif as a fallback
m Fiddling a little with the formatting. Obviously I can't fine-tune this perfectly since display details are up to individual browsers, but if this looks way off for anyone please contact me
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span style="float:left; font-size:100px; line-height:70px; padding-top:2px; padding-right:5px; font-family:fantasy, serif;">{{{1|}}}</span><noinclude>
<span style="float:left; font-size:90px; line-height:70px; padding-top:3px; padding-right:2px; font-family: serif;">{{{1|}}}</span><noinclude>


<span style="float:left; font-size:100px; line-height:70px; padding-top:2px; padding-right:5px; font-family:fantasy, serif;">T</span>his template is used to format the first letter of a paragraph (or first word, should you choose to use more than one letter as a parameter) so that it's a "drop cap", ie, an extra-large letter that hangs down so that the rest of the text flows around it. This is a popular decoration for the first paragraph of a story, or the first paragraph of a chapter in the case of very long stories. The template doesn't work so well if you use it in the middle of a paragraph. It's very simple to use, the main reason why this documentation is so long is to provide an example of what the template looks like using a lengthy paragraph to ensure that there are enough lines.
<span style="float:left; font-size:90px; line-height:70px; padding-top:3px; padding-right:2px; font-family: serif;">T</span>his template is used to format the first letter of a paragraph (or first word, should you choose to use more than one letter as a parameter) so that it's a "drop cap", ie, an extra-large letter that hangs down so that the rest of the text flows around it. This is a popular decoration for the first paragraph of a story, or the first paragraph of a chapter in the case of very long stories. The template doesn't work so well if you use it in the middle of a paragraph. It's very simple to use, the main reason why this documentation is so long is to provide an example of what the template looks like using a lengthy paragraph to ensure that there are enough lines.


To use this template, do the following:
To use this template, do the following:

Latest revision as of 02:29, 8 August 2007

This template is used to format the first letter of a paragraph (or first word, should you choose to use more than one letter as a parameter) so that it's a "drop cap", ie, an extra-large letter that hangs down so that the rest of the text flows around it. This is a popular decoration for the first paragraph of a story, or the first paragraph of a chapter in the case of very long stories. The template doesn't work so well if you use it in the middle of a paragraph. It's very simple to use, the main reason why this documentation is so long is to provide an example of what the template looks like using a lengthy paragraph to ensure that there are enough lines.

To use this template, do the following:

{{dropcap|F}}irst line of the story.

Don't put a space between the end of the template and the rest of the word.