Drop cap
en>VarunFEB2003 No edit summary |
en>Berrely (Listed for merging with Template:Drop cap; see Wikipedia:Templates for discussion/Log/2020 March 9. (Done with Twinkle)) |
||
| Line 1: | Line 1: | ||
<includeonly><div style="font-size: {{{fs|400%}}};line-height:{{{lh|75%}}}; float: left; font-family:{{{ff|serif}}}">{{{Capital|{{{1}}}}}}</div> | {{Tfm/dated|page=Drop|otherpage=Drop cap|link=Wikipedia:Templates for discussion/Log/2020 March 9#Template:Drop|type=inline|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}<includeonly><div style="font-size: {{{fs|400%}}};line-height:{{{lh|75%}}}; float: left; font-family:{{{ff|serif}}}">{{{Capital|{{{1}}}}}}</div> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Revision as of 10:34, 9 March 2020
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:
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
- 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 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.