Template:Script/Hebrew
{{{1}}}
Usage
[change source]This template marks a string as Hebrew script. It is transcluded by {{script}} and by {{lang-he-n}}. Do not include it directly, but instead use: {{script|Hebr|‹Hebrew script string›}}.
This template only marks a string as Hebrew script, not as Hebrew language. Therefore, it is not appropriate for actual words in Hebrew. Hebrew words are marked instead like this: {{lang|he|‹Hebrew language string›}}. For entire paragraphs in Hebrew, use {{rtl-para|he|‹Hebrew language string›}}.
Under the hood
[change source]This defines font-families, font-size and a CSS class:
<span class="script-hebrew" style="font-size: {{{size|115%}}}; font-family: 'Ezra SIL', 'Ezra SIL SR', 'Keter Aram Tsova', 'Taamey Ashkenaz', 'Taamey David CLM', 'Taamey Frank CLM', 'Frenk Ruehl CLM', 'Keter YG', 'Shofar', 'David CLM', 'Hadasim CLM', 'Simple CLM', 'Nachlieli', 'SBL BibLit', 'SBL Hebrew', Cardo, Alef, 'Noto Serif Hebrew', 'Noto Sans Hebrew', 'David Libre', David, 'Times New Roman', Gisha, Arial, FreeSerif, FreeSans; {{{style|}}}" dir="rtl">{{{1}}}</span>
This template has two goals:
- The font-family definitions fix broken font display in Internet Explorer and in Mac OS X Firefox [1].
- The CSS class allows Wikipedia users to specify their own style for Hebrew script text by including a custom font declaration for
.script-hebrew
in their user CSS, see Help:User style.
Examples
[change source]Placing a Hebrew sign in {{script}}:
{{script|Hebr|א}}
The result will be a span with a class attribute, like this:
<span class="script-hebrew" style="font-size: {{{size|115%}}}; font-family: 'Ezra SIL', 'Ezra SIL SR', 'Keter Aram Tsova', 'Taamey Ashkenaz', 'Taamey David CLM', 'Taamey Frank CLM', 'Frenk Ruehl CLM', 'Keter YG', 'Shofar', 'David CLM', 'Hadasim CLM', 'Simple CLM', 'Nachlieli', 'SBL BibLit', 'SBL Hebrew', Cardo, Alef, 'Noto Serif Hebrew', 'Noto Sans Hebrew', 'David Libre', David, 'Times New Roman', Gisha, Arial, FreeSerif, FreeSans; {{{style|}}}" dir="rtl">א</span>
Which appears in your browser as:
- א
Without {{script}}:
- א
Please mark all Hebrew text with either {{script|Hebr}}
or {{lang|he}}
. This will allow users to format all examples of Hebrew text consistently, with their choice of fonts, colours, etc.