Jump to content

Template:Blackletter/doc

From Wikisource

Usage

[edit]

This template renders text in a blackletter ("fraktur" or "gothic") typeface using webfonts.

{{blackletter|Text}}

Alphabet: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z

Typeface

[edit]

This template uses the UnifrakturMaguntia font, which is released under the SIL Open Font License.

By default, this template uses optional modern glyphs for certain letters rather than the standard glyphs for this font. See "Modes" for details.

Examples

[edit]
{{blackletter|Hello, world}}

Hello, world

{{blackletter|{{lorem ipsum}}}}

Lorem ipsum dolor sit amet, consectetur adipisicing 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.

{{blackletter|{{xx-larger|'''Hello''', {{red|world!}}}}}}

{{blackletter|This {{green|template}} is fully '''''compatible''''' with:}}
* {{blackletter|{{larger|Other}} {{smaller|formatting}} templates.}}
* {{blackletter|Wikicode formatting like ''italic'', '''bold''' and '''''bold italics'''''.}}

Hello, world!

This template is fully compatible with:

  • Other formatting templates.
  • Wikicode formatting like italic, bold and bold italics.

Modes

[edit]

Optionally certain glyphs can be altered, via different modes, to use a more modern version than is standard for this font. Mode 0 is the default; mode 1 uses the standard glyphs for the font.

{{blackletter|Text|mode=}}
Modes for Template:Blackletter
Mode Glyph(s) Example
0 A, S, V, Y, k, s, x, y Your Very Mixed Snakes Are Sneaking South
1 n/a Your Very Mixed Snakes Are Sneaking South
2 S Your Very Mixed Snakes Are Sneaking South
3 k Your Very Mixed Snakes Are Sneaking South
4 S, k Your Very Mixed Snakes Are Sneaking South
5 A, S, k Your Very Mixed Snakes Are Sneaking South

Inline variant

[edit]

The template {{Blackletter/inline}} (or convenience abbreviation {{Bl/il}}) takes the same parameters, but has an artificially short line height to integrate it in a paragraph's text without creating a potentially taller line for some users. This is best used in passages which have a book's normal typeface with only a little bit of blackletter.

The following example paragraph begins with this inline version, then has a simulated exaggeration of the problem it is intended to avoid. The second paragraph is a demonstration that a longer passage likely appears unobjectionable in standards-compliant browsers (see {{Line-height}} for the technical reason); however, since this doesn't respect the font's recommended spacing, avoid this unless similarity to nearby text is the required effect.

{{blackletter/inline|Even}} {{lorem ipsum}} <span style="vertical-align: text-top;">{{blackletter/inline|line-height=200%|Uneven}}</span> {{lorem ipsum}}

{{blackletter/inline|{{lorem ipsum}}}}

Even Lorem ipsum dolor sit amet, consectetur adipisicing 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. Uneven Lorem ipsum dolor sit amet, consectetur adipisicing 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.

Lorem ipsum dolor sit amet, consectetur adipisicing 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.

Inline parameter

[edit]

Defaults to true, but can be set to false to get a div instead of a span.

Redirects

[edit]

See also

[edit]


No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
11

Text to be rendered in blackletter.

Contentrequired
langlang

Language of text

Contentsuggested
modemode 2

Style of blackletter rendering to apply.

Numberoptional
inlineinline

Determines if a span or block is generated.

Booleanoptional