Drop cap/doc

From Eating Asturias, the Encyclopedia of Asturian Gastronomy
en>Jonesey95
m (Jonesey95 moved page Template:Drop/doc to Template:Drop cap/doc: finish incomplete move)
en>Jonesey95
(copy from template page)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
{{Uses TemplateStyles|Template:Drop cap/styles.css}}
==Use and Options==
{{tl|Drop cap}} allows you to create a large [[drop cap]].
===Use===
==Usage==
Makes a drop capital for any letter(s) used for the single parameter.
This template may be added to any page where you replace the blank field with the desired letter you want.
Example:<br>
<br>
<code> <nowiki>{{drop|T}}he drop-capital looks like this {{lorem ipsum}}.
To use the template replace the blank field with any letter, for example, {{code|<nowiki>{{Drop cap|A}}</nowiki>}} produces:
</nowiki> </code><br>
<br>
{{Drop cap|A}}
<br>
<br>
==Examples==
<syntaxhighlight lang="html" style="overflow:auto; line-height:1.2em;">
{{Drop cap|L}}{{Lorem ipsum}}
</syntaxhighlight> ''Produces:''
{{Drop cap|L}}{{Lorem ipsum|2}}
==See also==
{{tl|Drop}} is very similar to Drop cap.


Gives:<br>
{{drop|T}}he drop-capital looks like this.  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.{{Template:Main other|[[Category:Wikipedia articles containing placeholders]]}}
===Options===
# fs:  font size for the capital, (default 400%), (pt,em,cm,ins,px, etc.)
# lh:  line height for the capital, (default 75%)
# ff:  font family for the capital, (default serif)
===Issues===
While previewing edit through the ''Preview'' tab of [[mw:Extension:WikiEditor | Extension:WikiEditor]], if the drop letter is used as the first character on a page, the drop letter's base might not appear inline with the second line of text. In such a case, the drop letter would appear a little elevated from the base. However, this is just a preview bug, and the text will render correctly.
<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
[[Category:Layout templates]]
[[Category:Layout templates]]


}}</includeonly>
}}</includeonly>

Revision as of 18:38, 15 February 2022

Use and Options

Use

Makes a drop capital for any letter(s) used for the single parameter. Example:
{{drop|T}}he drop-capital looks like this {{lorem ipsum}}.

Gives:

T

he drop-capital looks like this. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Options

  1. fs: font size for the capital, (default 400%), (pt,em,cm,ins,px, etc.)
  2. lh: line height for the capital, (default 75%)
  3. ff: font family for the capital, (default serif)

Issues

While previewing edit through the Preview tab of Extension:WikiEditor, if the drop letter is used as the first character on a page, the drop letter's base might not appear inline with the second line of text. In such a case, the drop letter would appear a little elevated from the base. However, this is just a preview bug, and the text will render correctly.