Template:Script/Runic
{{{1}}}
| This template uses TemplateStyles: |
Usage
This template marks a string as Runic script. It is transcluded by {{script}} or, alternatively, by {{runic}}. Do not include this template directly, but instead use: {{script|Runr|‹Runic script string›}}.
Under the hood
The template contains class="script-runic", which allows users to specify their own style for Runic script. Proper display of the characters is achieved by explicit font declarations, with the font Junicode automatically provided by the Universal Language Selector.
The |rtl= parameter changes the direction of the text to right-to-left.
Registered Wikipedia users can specify their own style for Runic script text by including a custom font declaration for .script-runic in their user CSS, see Help:User style.
Example
Placing a Runic string in {{script}}:
{{script|Runr|ᚠᚢᚦᚨᚱᚲ}}
The result will be a span with a class attribute, like this:
<span title="runes" lang="gem-Runr" class="script-runic">ᚠᚢᚦᚨᚱᚲ</span>
Which appears in your browser as:
- ᚠᚢᚦᚨᚱᚲ
- Another example with ᚠᚢᚦᚨᚱᚲ displayed inline.
Please mark all Runic text with {{script|Runr}}. This will allow users to format all examples of Runic text consistently, with their choice of fonts, colours, etc.
RTL example
In order to display runic text with right-to-left directionality add an "rtl" parameter after the runic script:
{{script|Runr|ᚠᚢᚦᚨᚱᚲ|rtl}}
Result is that the runic script should display reading from right to left :
- ᚠᚢᚦᚨᚱᚲ
Note that runic letters should be mirrored in right-to-left (RTL) layout, but glyph mirroring is done at the font level using OpenType technology (rtlm feature), and very few fonts support glyph mirroring in RTL contexts. Even if using a runic font that supports mirrored glyphs in RTL contexts, some browsers (e.g. IE and Edge) do not apply the rtlm feature so mirroring does not happen in RTL text. With fonts that support the rtlm feature, runic text is correctly displayed with mirrored glyphs in RTL layout in the latest versions of the Firefox and Chrome browsers (see here for details).
Mirror example
Runes that are subsequently inverted either horizontally or vertically can be added by a third parameter which has better chances to mirror the runes. Here, the example is given along with the rtl parameter.
{{script|Runr|ᚠᚢᚦᚨᚱᚲ|rtl|mirrorY}}
Result is that the runic script should be mirrored :
- ᚠᚢᚦᚨᚱᚲ
mirrorX turns runes upside-down.
mirrorY turns runes horizontally.
If a rune sequence has only certain characters mirrored, this template has to be used numerous times.
Template data
TemplateData for Script
Template data
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
No description.
| ||||||||||
See also
- {{MUFI}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.