Template:Dropcap: Difference between revisions

From Shifti
Jump to navigation Jump to search
m add serif as a fallback
actually, take fantasy out. Too much variability depending on what people have installed on their computers, I suspect.
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:100px; line-height:70px; padding-top:2px; padding-right:5px; 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:100px; line-height:70px; padding-top:2px; padding-right:5px; 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:

Revision as of 19:11, 7 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.