Template:Initial/doc

From Wikisource
Jump to navigation Jump to search

Usage

[edit]

Initial simplifies the reproduction of typical formatting found at the beginning of a chapter: A dropped capital, with the remainder of the word uppercased. While this can be reproduced relatively simply, ex. {{di|T}}HE, or more correctly {{uc|{{di|T}}he}}, if the first paragraph is part of a bulleted list, and letter-spacing is applied, the formatting becomes more complicated, ex. {{di|1.|1em}}{{uc|{{di|T}}{{sp|he|.2em}}}}. Initial replaces this with {{initial|T|he}} in the simple case, and {{initial|T|he|0.2em|num=1.}} in the more complex case:

Example

{{block center|width=67%|
{{initial|T|he|0.2em|num=1.}} grand Truth which we are now to be imployed about and to prove, is, ''That there is a God:'' And I made choice of this Subject as very seasonable for the Times we are in, and are coming on, wherein Divine Providence more universally loosening the minds of men from the awe and tyranny of mere accustomary Superstition, and permitting a freer perusal of matters of Religion then in former Ages, the Tempter would take advantage, where he may, to carry men captive out of one dark prison into another, out of ''Superstition'' into ''Atheism'' it self.
}}

1. The grand Truth which we are now to be imployed about and to prove, is, That there is a God: And I made choice of this Subject as very seasonable for the Times we are in, and are coming on, wherein Divine Providence more universally loosening the minds of men from the awe and tyranny of mere accustomary Superstition, and permitting a freer perusal of matters of Religion then in former Ages, the Tempter would take advantage, where he may, to carry men captive out of one dark prison into another, out of Superstition into Atheism it self.

Parameters
Parameter Mandatory Definition Notes
1 no Dropped capital Default value is "A".
2 no Uppercase text There is no space between the dropped capital and the uppercase text. To add one, use   or  .
3 no Letter spacing Default value is "0" (no spacing).
4 no Font size of dropped capital Default value is "3em" (300% of the overall text size, which is "1em").
num no Number If part of numbered list. Usually "1."; any value can be used. Appears as a superscript before the dropped capital.

See also

[edit]
  • {{Dropinitial}}
  • {{Largeinitial}}, for large initials that sit on the same baseline as surrounding text and extend upwards
  • {{Initial}}, to simplify drop initials, small caps, numbering etc. from the start of paragraphs into a single template
  • Template:Img float#Polygon shape outlines, for a large initial a with polygonal outline; needed when the image has a non-rectangular shape around which the surrounding text flows.
This is the TemplateData documentation for this template used by VisualEditor and other tools.

Initial

No description.

Template parameters

ParameterDescriptionTypeStatus
Dropped capital1

no description

Default
A
Stringoptional
Uppercase text2

There is no space between the dropped capital and the uppercase text.

Contentoptional
Letter spacing3

Default value is "0" (no spacing).

Default
0
Lineoptional
Font size of dropped capital4

Default value is "3em" (300% of the overall text size, which is "1em").

Default
3em
Lineoptional
Numbernum

If part of numbered list. Usually "1."; any value can be used. Appears as a superscript before the dropped capital.

Example
1.
Contentoptional