Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Under the hood  





3 Example  





4 RTL example  





5 Mirror example  





6 Template data  





7 See also  














Template:Script/Runic






Alemannisch
العربية

 / Bân-lâm-gú
Deutsch
فارسی
Galego
/Hak-kâ-ngî

Íslenska

 / Mìng-dĕ̤ng-nḡ



Norsk nynorsk
ି
Polski
Scots
Simple English
Українська
Tiếng Vit



 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Script

{{{1}}}

Usage[edit]

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[edit]

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[edit]

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[edit]

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[edit]

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[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Script in articles based on its TemplateData.

TemplateData for Script

Template data

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

no description

Unknownoptional

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Script/Runic&oldid=1165372185"

Categories: 
Templates using TemplateStyles
Scriptfont templates
Hidden category: 
Templates using TemplateData
 



This page was last edited on 14 July 2023, at 19:15 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki