Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Drop initial

Template page
Template documentation

Usage

This template is for creating the "drop initial" effect that is common in both modern and antiquated typography:

Used with the following parameters {{dropinitial|L|2.4em|0em|.05em}}

{{drop initial| ''content'' | ''font-size'' | ''margin-top'' | ''margin-right'' | ''margin-bottom'' | ''margin-left'' | z-index=''#''}}.

Note that positional parameters 2 through 6, also have corresponding named parameters aligning with their function as shown in the above example.

The font-size parameter and margin value parameters should be specified with relative units, i.e. as a percent or in 'em' units.

The only necessary parameter is the first one (the initial). If no others are set, the defaults are:

  • font-size = 3em
  • margin-right = .1em

Which should produce a drop initial approximately the height of two lines in the current Wikisource default font:

{{drop initial|L}}orem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis 
natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium 
quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, 
rhoncus ut, imperdiet a, venenatis vitae, justo.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.

Notes:

  • Dropped initials are typically used with small capitals for the other letters of the word starting with this initial. See {{Small-caps}}.
  • Fonts can be rendered slightly differently in different browsers and on different operating systems. You may wish to check your work in Mozilla Firefox, Apple Safari, Opera, Windows Internet Explorer or other web browsers on different computers to ensure that the text wraps around the initial in the way you expect it to if you are not using the default values.
The above documentation is transcluded from Template:Drop initial/doc.


Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.