![]() | This is a documentation subpage for Template:Script/Runic. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | 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
This template contains
<templatestyles src="Script/styles_runic.css" /><span title="runes" class="script-runic" lang="gem-Runr">{{#if:{{{rtl}}}|‮}}{{{1}}}{{#if:{{{rtl}}}|‬}}</span>
The class="script-runic"
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 would enabling right-to-left mode to Runic script.
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:
- ᚠᚢᚦᚨᚱᚲ
Without {{script}}:
- ᚠᚢᚦᚨᚱᚲ
The last two should only look different if you are using Internet Explorer 6 or lower on Windows, or if you have a custom style defined for class="script-runic"
.
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.
See also
- {{MUFI}}