Content deleted Content added
→Under the hood: too much trouble to copy the template source code every time it's modified |
BrightSunMan (talk | contribs) m I am sorry if I damage something |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1:
{{
{{Uses TemplateStyles|Template:Script/styles runic.css}}
=== Usage ===
Line 27 ⟶ 24:
: {{script|Runr|ᚠᚢᚦᚨᚱᚲ}}
: Another example with {{script|Runr|ᚠᚢᚦᚨᚱᚲ}} displayed inline.
: ᚠᚢᚦᚨᚱᚲ▼
Please mark all Runic text with {{tlx|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:
{{tlx|script|Runr|ᚠᚢᚦᚨᚱᚲ|rtl}}
Result is that the runic script should display reading from right
: {{script|Runr|ᚠᚢᚦᚨᚱᚲ|rtl}}
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 [http://www.babelstone.co.uk/Fonts/AngloSaxon.html#Mirroring 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.
{{tlx|script|Runr|ᚠᚢᚦᚨᚱᚲ|rtl|mirrorY}}
Result is that the runic script should be mirrored :
▲: {{Script/Runic|ᚠᚢᚦᚨᚱᚲ|rtl|mirrorY}}
<code>mirrorX</code> turns runes upside-down.
<code>mirrorY</code> turns runes horizontally.
If a rune sequence has only certain characters mirrored, this template has to be used numerous times.
==Template data==
{{Template data header}}
{{cot|title=Template data|bg=#ddd}}
<templatedata>
{
"params": {
"1": {}
}
}
</templatedata>
{{cob}}
==See also==
*{{tl|MUFI}}
<includeonly>{{Sandbox other||
[[Category:
}}</includeonly>▼
▲</includeonly>
|